From: Petr Oros Date: Thu, 22 May 2014 12:04:44 +0000 (+0200) Subject: doc: fix incorrect formula to calculate CommitLimit value X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=7a9e6da11c9478741947de3a37ac7de26abd23f0;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git 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 Acked-by: Randy Dunlap Signed-off-by: Jiri Kosina --- 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 if strict overcommit accounting is enabled (mode 2 in 'vm.overcommit_memory'). The CommitLimit is calculated with the following formula: - CommitLimit = ('vm.overcommit_ratio' * Physical RAM) + Swap + CommitLimit = ([total RAM pages] - [total huge TLB pages]) * + overcommit_ratio / 100 + [total swap pages] For example, on a system with 1G of physical RAM and 7G of swap with a `vm.overcommit_ratio` of 30 it would yield a CommitLimit of 7.3G.