I was wondering why it is so. All links (I've found) concerning the size of the file state that the size is about the same as the size of physical RAM, or the size processor can address. I'm on 32bit.
I sometimes use kcore when I need to string the RAM to look for deleted text.
/proc/kcore: 1.1GB
RAM: 2.6 GB
~ $ ll /proc/kcore
-r-------- 1 root root 1065349120 2011-12-05 09:42 /proc/kcore
~ $ sudo dd if=/proc/kcore of=/dev/null bs=1024
1040380+0 records in
1040380+0 records out
1065349120 bytes (1.1 GB) copied, 2.26191 s, 471 MB/s
~ $ free -m
total used free shared buffers cached
Mem: 2509 1742 766 0 132 1118
-/+ buffers/cache: 492 2016
Swap: 1051 0 1051
~ $ grep ^Mem /proc/meminfo
MemTotal: 2569640 kB
MemFree: 791548 kB
~ $ dmesg | grep Memory
[ 0.000000] Memory: 2554056k/2612412k available (4940k kernel code, 57908k reserved, 2333k data, 688k init, 1703108k highmem)
~ $ sudo lspci -v -s 00:02.0
00:02.0 VGA compatible controller: Intel Corporation 82915G/GV/910GL Integrated Graphics Controller (rev 04) (prog-if 00 [VGA controller])
Subsystem: Intel Corporation Device 4556
Flags: bus master, fast devsel, latency 0, IRQ 16
Memory at ffa00000 (32-bit, non-prefetchable) [size=512K]
I/O ports at ec00 [size=8]
Memory at c0000000 (32-bit, prefetchable) [size=256M]
Memory at ffa80000 (32-bit, non-prefetchable) [size=256K]
Expansion ROM at <unassigned> [disabled]
Capabilities: [d0] Power Management version 2
Kernel driver in use: i915
Kernel modules: i915
The full output of dmesg and lspci on Ubuntu pastebin.
Does anybody know why it is so
or - is anybody seeing the same behaviour (size(kcore) < size(RAM))?
lspcioutput, but the card uses too little memory to account for the difference I think. – arrange Dec 5 '11 at 9:28kcoreI can see it is actually mapping my RAM, but only 1GB of it... – arrange Dec 5 '11 at 10:06