New: Formula of CommitLimit is wrong
https://bugzilla.kernel.org/show_bug.cgi?id=60991
Bug ID: 60991
Summary: Formula of CommitLimit is wrong
Product: Documentation
Version: unspecified
Hardware: All
OS: Linux
Status: NEW
Severity: normal
Priority: P1
Component: man-pages
Assignee: documentation_man-pages-ztI5WcYan/[email protected]
Reporter: [email protected]
Regression: No
The documentation on
https://www.kernel.org/doc/Documentation/filesystems/proc.txt says: "The CommitLimit is calculated with the following formula:
CommitLimit = ('vm.overcommit_ratio' * Physical RAM) + Swap"
Variables on my system:
vm.overcommit_ratio = 50
Physical RAM = 16 GiB
SwapTotal = 16776188 KiB
/proc/meminfo says "CommitLimit: 24993316 kB". Now lets see if this is
correct: CommitLimit = (50 * 16777216 KiB) + 16776188 KiB; CommitLimit = 855636988 KiB. The result from the formula does not match with the value reported by the kernel.
It is more likely that 'vm.overcommit_ratio' must be devided by 100 and "Physical RAM" must be replaced by the available memory (reported on my system
as "MemTotal: 16434260 kB"). The new formula looks this: CommitLimit =
('vm.overcommit_ratio' / 100 * 'MemTotal') + 'SwapTotal'. The result will be:
CommitLimit = (50 / 100 * 16434260 KiB) + 16776188 KiB; CommitLimit = 24993318 KiB. There is a difference of 2 KiB to the reported value but maybe this comes from internal rounding.
Signature · 6 lines
You are receiving this mail because: You are watching the assignee of the bug. -- To unsubscribe from this list: send the line "unsubscribe linux-man" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
A message that is not in the archive (sent off-list or not yet received): bug-60991-11311-3bo0kxnWaOQUvHkbgXJLS5sdmw4N0Rt+2LY78lusg7I@public.gmane.org/
[Bug 60991] [TRIVIAL]Formula of CommitLimit is wrong
https://bugzilla.kernel.org/show_bug.cgi?id=60991
Alan <alan-qBU/[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |alan-qBU/[email protected] Summary|Formula of CommitLimit is |[TRIVIAL]Formula of |wrong |CommitLimit is wrong
Signature · 6 lines
You are receiving this mail because: You are watching the assignee of the bug. -- To unsubscribe from this list: send the line "unsubscribe linux-man" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
[Bug 60991] [TRIVIAL]Formula of CommitLimit is wrong
In reply to a message not in the archivehttps://bugzilla.kernel.org/show_bug.cgi?id=60991
Michael Kerrisk <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]
--- Comment #1 from Michael Kerrisk <[email protected]> --- You're right that the documentation is wrong. I've updated the proc(5) man page with the correct formula:
CommitLimit = ([total RAM pages] - [total huge TLB pages]) *
overcommit_ratio / 100 + [total swap pages]
(See the kernel source file fs/proc/meminfo.c.)
Signature · 6 lines
You are receiving this mail because: You are watching the assignee of the bug. -- To unsubscribe from this list: send the line "unsubscribe linux-man" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
[Bug 60991] [TRIVIAL]Formula of CommitLimit is wrong
In reply to a message not in the archivehttps://bugzilla.kernel.org/show_bug.cgi?id=60991
[email protected] changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]
--- Comment #2 from [email protected] --- Hello,
I am beginner and would like to fix this bug. Is it still open?
Signature · 6 lines
You are receiving this mail because: You are watching the assignee of the bug. -- To unsubscribe from this list: send the line "unsubscribe linux-man" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
[Bug 60991] [TRIVIAL]Formula of CommitLimit is wrong
In reply to a message not in the archivehttps://bugzilla.kernel.org/show_bug.cgi?id=60991
Michael Kerrisk <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |CODE_FIX--- Comment #3 from Michael Kerrisk <[email protected]> --- Resolved a while ago; should have been closed already.
Signature · 6 lines
You are receiving this mail because: You are watching the assignee of the bug. -- To unsubscribe from this list: send the line "unsubscribe linux-man" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
[Bug 60991] [TRIVIAL]Formula of CommitLimit is wrong
In reply to a message not in the archivehttps://bugzilla.kernel.org/show_bug.cgi?id=60991
--- Comment #4 from [email protected] --- The online documentation does still contain the old formula, does it maybe get always updated at a later time?
Signature · 6 lines
You are receiving this mail because: You are watching the assignee of the bug. -- To unsubscribe from this list: send the line "unsubscribe linux-man" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
[Bug 60991] [TRIVIAL]Formula of CommitLimit is wrong
In reply to a message not in the archivehttps://bugzilla.kernel.org/show_bug.cgi?id=60991
--- Comment #5 from Michael Kerrisk <[email protected]> --- Which online documentation? You can see the update at
http://man7.org/linux/man-pages/man5/proc.5.html
Signature · 6 lines
You are receiving this mail because: You are watching the assignee of the bug. -- To unsubscribe from this list: send the line "unsubscribe linux-man" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
[Bug 60991] [TRIVIAL]Formula of CommitLimit is wrong
In reply to a message not in the archivehttps://bugzilla.kernel.org/show_bug.cgi?id=60991
--- Comment #6 from [email protected] --- I was referring to the link I have posted in the startpost:
https://www.kernel.org/doc/Documentation/filesystems/proc.txt
I'm still seeing the old formula there.
Signature · 6 lines
You are receiving this mail because: You are watching the assignee of the bug. -- To unsubscribe from this list: send the line "unsubscribe linux-man" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
[Bug 60991] [TRIVIAL]Formula of CommitLimit is wrong
In reply to a message not in the archivehttps://bugzilla.kernel.org/show_bug.cgi?id=60991
Michael Kerrisk <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|CODE_FIX |------ Comment #7 from Michael Kerrisk <[email protected]> --- Okay -- sorry, that bug still remains then. Reopening.
Signature · 6 lines
You are receiving this mail because: You are watching the assignee of the bug. -- To unsubscribe from this list: send the line "unsubscribe linux-man" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
[Bug 60991] [TRIVIAL]Formula of CommitLimit is wrong
In reply to a message not in the archivehttps://bugzilla.kernel.org/show_bug.cgi?id=60991
--- Comment #8 from [email protected] --- I lookied into the man pages and the change has been updated there. So we need to make changes in the following file:
https://www.kernel.org/doc/Documentation/filesystems/proc.txt
Where can I get to download the code for that?
Signature · 6 lines
You are receiving this mail because: You are watching the assignee of the bug. -- To unsubscribe from this list: send the line "unsubscribe linux-man" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
[Bug 60991] [TRIVIAL]Formula of CommitLimit is wrong
In reply to a message not in the archivehttps://bugzilla.kernel.org/show_bug.cgi?id=60991
--- Comment #9 from [email protected] --- I lookied into the man pages and the change has been updated there. So we need to make changes in the following file:
https://www.kernel.org/doc/Documentation/filesystems/proc.txt
Where can I get to download the code for that?
Signature · 6 lines
You are receiving this mail because: You are watching the assignee of the bug. -- To unsubscribe from this list: send the line "unsubscribe linux-man" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
[Bug 60991] [TRIVIAL]Formula of CommitLimit is wrong
In reply to a message not in the archivehttps://bugzilla.kernel.org/show_bug.cgi?id=60991
Martin Kepplinger <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]
--- Comment #10 from Martin Kepplinger <[email protected]> --- should be closed as I see it.
Signature · 6 lines
You are receiving this mail because: You are watching the assignee of the bug. -- To unsubscribe from this list: send the line "unsubscribe linux-man" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
[Bug 60991] [TRIVIAL]Formula of CommitLimit is wrong
In reply to a message not in the archivehttps://bugzilla.kernel.org/show_bug.cgi?id=60991
[email protected] changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|REOPENED |RESOLVED
Resolution|--- |CODE_FIXSignature · 6 lines
You are receiving this mail because: You are watching the assignee of the bug. -- To unsubscribe from this list: send the line "unsubscribe linux-man" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html