diff options
author | Petr Oros <poros@redhat.com> | 2014-05-22 08:04:44 -0400 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2014-05-22 17:01:55 -0400 |
commit | 7a9e6da11c9478741947de3a37ac7de26abd23f0 (patch) | |
tree | e80b0918bec7a76b4262e76900000d83e4cb4304 | |
parent | 221069bed0c73e876e1df1f6cd0140cb353fcd32 (diff) |
doc: fix incorrect formula to calculate CommitLimit value
The formula to calculate "CommitLimit" value mentioned in kernel documentation is incorrect.
Right formula is: CommitLimit = ([total RAM pages] - [total huge TLB pages]) * overcommit_ratio / 100 + [total swap pages]
Signed-off-by: Petr Oros <poros@redhat.com>
Acked-by: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
-rw-r--r-- | Documentation/filesystems/proc.txt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Documentation/filesystems/proc.txt b/Documentation/filesystems/proc.txt index d4fa7f52034e..324328d18464 100644 --- a/Documentation/filesystems/proc.txt +++ b/Documentation/filesystems/proc.txt | |||
@@ -854,7 +854,8 @@ WritebackTmp: Memory used by FUSE for temporary writeback buffers | |||
854 | if strict overcommit accounting is enabled (mode 2 in | 854 | if strict overcommit accounting is enabled (mode 2 in |
855 | 'vm.overcommit_memory'). | 855 | 'vm.overcommit_memory'). |
856 | The CommitLimit is calculated with the following formula: | 856 | The CommitLimit is calculated with the following formula: |
857 | CommitLimit = ('vm.overcommit_ratio' * Physical RAM) + Swap | 857 | CommitLimit = ([total RAM pages] - [total huge TLB pages]) * |
858 | overcommit_ratio / 100 + [total swap pages] | ||
858 | For example, on a system with 1G of physical RAM and 7G | 859 | For example, on a system with 1G of physical RAM and 7G |
859 | of swap with a `vm.overcommit_ratio` of 30 it would | 860 | of swap with a `vm.overcommit_ratio` of 30 it would |
860 | yield a CommitLimit of 7.3G. | 861 | yield a CommitLimit of 7.3G. |