> [root@matrix /root]# cat /proc/meminfo
> total: used: free: shared: buffers: cached:
> Mem: 15040512 13811712 1228800 4845568 655360 8978432
>
> MemTotal: 14688 kB
>
> [root@matrix /root]# ls -l /proc/kcore | awk '{print $5}'
> 16781312
>
> [root@matrix /root]# cat /dev/mem | wc -c
> 16777216
>
I tried on my both machines 32mb and 16 mb got these results
ls -l /proc/kcore | awk '{print $5}'
33558528
cat /proc/meminfo
total: used: free: shared: buffers: cached:
Mem: 31264768 27926528 3338240 8388608 1867776 18890752
cat /dev/mem | wc -c ;; shows installed mem
33554432
echo "1024*1024*32" | bc ;; real installed mem
33554432
echo "33558528 - 33554432" | bc ;; kcore - installed mem
4096
echo "33554432 - 31264768" | bc ;; installed mem - reported mem
2289664
ls /proc/kcore -l | awk '{print $5}'
16781312
cat /proc/meminfo
total: used: free: shared: buffers: cached:
Mem: 14807040 14434304 372736 4976640 741376 5091328
MemTotal: 14460 kB
cat /dev/mem | wc -c ;; shows exact installed ram
16777216
echo "16781312 - 16777216" | bc ;; kcore - installed mem
4096
see the difference between kcore size and installed mem
is always 4096, is it something to do with shadow ram
or video memory ?
i will run a series of tests with all sort of configs and
post the results to some place, in a week
-----------------------------------------------------------------------
Check out the 'What to do before posting to the list' site
for a list of things to try before posting. The site is
at http://botsie.tripod.com/beforeposting/