RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1285709 - Entries in /proc/meminfo explained incorrectly
Summary: Entries in /proc/meminfo explained incorrectly
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: doc-Deployment_Guide
Version: 6.8
Hardware: Unspecified
OS: Unspecified
high
unspecified
Target Milestone: rc
: ---
Assignee: Maxim Svistunov
QA Contact: ecs-bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-11-26 10:29 UTC by Jana Heves
Modified: 2016-05-30 08:57 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-05-30 08:57:10 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Jana Heves 2015-11-26 10:29:26 UTC
Document URL: https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/6/html-single/Deployment_Guide/

Section Number and Name: E.2.18. /proc/meminfo
https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/6/html-single/Deployment_Guide/index.html#s2-proc-meminfo

Describe the issue: 
The guide states that High Memory and Low Memory are "the kernel memory space".
Namely, the following lines in the guide are incorrect:

HighTotal and HighFree — The total and free amount of memory, in kilobytes, that is not directly mapped into kernel space. The HighTotal value can vary based on the type of kernel used. 

LowTotal and LowFree — The total and free amount of memory, in kilobytes, that is directly mapped into kernel space. The LowTotal value can vary based on the type of kernel used. 

Suggestions for improvement: 
rephrase the lines as follows:

HighTotal:  The total amount of memory in the high memory region.
HighFree: The amount of free memory of the high memory region.
High memory areas are for use by userspace programs, or for the pagecache. Highmem is all memory above (approx) 860MB of physical RAM, usually including data cache. The kernel can access the high memory region. 

LowTotal: The total amount of memory in the low memory region.
LowFree: The amount of free memory of the low memory region. 
The low memory region can be accessed by the kernel directly. All kernel datastructures need to go into low memory.

Additional information: 
Ask politely Sumanto Chakraborty <schakraborty> to help review the suggestions for improvement and update the section accordingly.

Comment 2 Jana Heves 2015-11-26 10:32:50 UTC
Dear Sumanto,

Thank you very much for drawing our attention to incorrect documentation of entries in /proc/meminfo.

Could you please review my suggestions for improvement? I tried to provide new definitions for the four entries.

Any help is much appreciated.
Thanks,
jana

Comment 8 Alex Juncu 2016-04-08 12:39:20 UTC
Hi!

From the kernel code, it looks like the values are not in kB (kilobytes) but in kibibytes (KiB) because they are multiples of pages (which is usually 4096B = 4KiB).

Getting the correct definitions of the values might be a little tricky, but the starting point should be:

http://git.app.eng.bos.redhat.com/git/rhel6.git/tree/Documentation/filesystems/proc.txt

If that documentation is not accurate, you should get in touch with Kernel Engineers (devs) to provide more details.

Thanks!

Comment 10 Alex Juncu 2016-04-11 07:27:55 UTC
Following the discussion with Maxim, I submitted an RFC to kernel upstream about the kB/KiB.

I think we should document this thing: the values are in fact kibibytes.
So even if the output is 'kB', it should be considered to be 'KiB'.

It would probably be useful to:
1) do a mention that the output is technically incorrect. Explain that due to legacy issues the hardcoded 'kB' cannot be changed the meaning of 'kB' is actually 1024 bytes which is KiB (kibibyte).

2) Use the correct terms in our documentation (I am working to push some update to upstream documentation about this). When explaining each term instead of 'kilobyes' used the correct term of 'kibibytes'.

Thanks!

Comment 16 Rik van Riel 2016-05-23 14:01:41 UTC
The Linux developers (including me) have written some documentation on /proc/meminfo already.

Please start reading here:

https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/Documentation/filesystems/proc.txt#n831

Comment 23 Maxim Svistunov 2016-05-30 08:57:10 UTC
The extensively changed appendix section /proc/meminfo is now available at:

https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Deployment_Guide/s2-proc-meminfo.html

Thanks everybody for help!


Note You need to log in before you can comment on or make changes to this bug.