@oldfred:
> My system just shows a small amount less than total RAM for me. I have 1.5GB.
> DirectMap2M: 1505280 kB
Hmmm. Do you have 3 GB total SIMMs installed?
I just installed another Dual-channel 4 GB for a total of 8 GB:
Code:
~-> sudo cat /proc/meminfo
MemTotal: 4040108 kB
MemFree: 2530356 kB
[..snip...]
DirectMap4k: 122304 kB
DirectMap2M: 4063232 kB
~-> free
total used free shared buffers cached
Mem: 4040108 1443960 2596148 0 60268 717384
-/+ buffers/cache: 666308 3373800
Swap: 2103292 0 2103292
As you can see, and comparing with my initial post, missing 4 GB are not for kernelspace, but since it increased from 2 GB to 4 GB without adding anything else, it must be some proportional 50% memory reduction for buffers, caches, etc. Very poor reporting, since free lists all userspace buffers and are subtracted from total available reported RAM.
> sudo lshw | grep -m 1 -A 25 "*-memory"
Darn, I was looking for that command. Coming from a SuSe background i was looking for "hwinfo" and coudln't find it:
Code:
-> sudo lshw > out
-> cat out
*-memory
description: System Memory
physical id: 11
slot: System board or motherboard
size: 8GiB
*-bank:0
description: DIMM SDRAM Synchronous
product: ModulePartNumber00
vendor: Manufacturer00
physical id: 0
serial: SerNum00
slot: DIMM0
size: 2GiB
width: 64 bits
*-bank:1
description: DIMM SDRAM Synchronous
product: ModulePartNumber01
vendor: Manufacturer01
physical id: 1
serial: SerNum01
slot: DIMM1
size: 2GiB
width: 64 bits
*-bank:2
description: DIMM SDRAM Synchronous
product: ModulePartNumber02
vendor: Manufacturer02
physical id: 2
serial: SerNum02
slot: DIMM2
size: 2GiB
width: 64 bits
*-bank:3
description: DIMM SDRAM Synchronous
product: ModulePartNumber03
vendor: Manufacturer03
physical id: 3
serial: SerNum03
slot: DIMM3
size: 2GiB
width: 64 bits
This single command solves the whole issue. It is not a kernel problem, just a reporting problem. 50% of the total installed memory is reserved for unknown reasons - not userspace buffers, kernelspace buffers maybe?
Thanks a lot,
Nikos
Bookmarks