Bug 170025 - /proc/kcore size not equal to installed memory
Summary: /proc/kcore size not equal to installed memory
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 3
Classification: Red Hat
Component: kernel
Version: 3.0
Hardware: i686
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Ernie Petrides
QA Contact: Brian Brock
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2005-10-06 16:55 UTC by strovato
Modified: 2007-11-30 22:07 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2005-10-06 20:40:48 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description strovato 2005-10-06 16:55:49 UTC
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 20:40:48 UTC
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.