Bug 170025 - /proc/kcore size not equal to installed memory
/proc/kcore size not equal to installed memory
Status: CLOSED NOTABUG
Product: Red Hat Enterprise Linux 3
Classification: Red Hat
Component: kernel (Show other bugs)
3.0
i686 Linux
medium Severity medium
: ---
: ---
Assigned To: Ernie Petrides
Brian Brock
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2005-10-06 12:55 EDT by strovato
Modified: 2007-11-30 17:07 EST (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2005-10-06 16:40:48 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description strovato 2005-10-06 12:55:49 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; SunOS sun4u; en-US; rv:1.7.12) Gecko/20050928 Firefox/1.0.7

Description of problem:
Size of /proc/kcore does not match installed RAM.

# ls -l /proc/kcore
-r--------    1 root     root     939528192 Oct  6 12:54 /proc/kcore

# free
             total       used       free     shared    buffers     cached
Mem:       2055312    2037452      17860          0       9168    1377076
-/+ buffers/cache:     651208    1404104
Swap:       755044          0     755044


Version-Release number of selected component (if applicable):
kernel-smp-2.4.21-37.EL

How reproducible:
Always

Steps to Reproduce:
1. compare memory size as reported by free and the size of /proc/kcore
2.
3.
  

Actual Results:  Amount of physical memory reported differs.

Expected Results:  Amount of physical memory reported should be the same.

Additional info:

The machine is a Dell Poweredge 2600 w/2 Xeon CPUs
Comment 1 Ernie Petrides 2005-10-06 16:40:48 EDT
The size shown for "ls -l /proc/kcore" is not supposed to be the size
of memory, but rather it is total amount of address space used by the
kernel plus various pseudo-device headers.

The total memory size reported by /proc/meminfo is more relevant,
although that doesn't include the amount occupied by the BIOS and
certain reserved regions (e.g., static kernel text and data).

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