rootで
cat /proc/meminfo
でメモリの確認が可能。
以下、表示例。
MemTotal: 4060584 kB
MemFree: 1731460 kB
Buffers: 355684 kB
Cached: 910732 kB
SwapCached: 0 kB
Active: 1593368 kB
Inactive: 581480 kB
Active(anon): 918676 kB
Inactive(anon): 9820 kB
Active(file): 674692 kB
Inactive(file): 571660 kB
Unevictable: 0 kB
Mlocked: 0 kB
SwapTotal: 9764784 kB
SwapFree: 9764784 kB
Dirty: 0 kB
Writeback: 0 kB
AnonPages: 907480 kB
Mapped: 100208 kB
Shmem: 21016 kB
Slab: 95464 kB
SReclaimable: 82648 kB
SUnreclaim: 12816 kB
KernelStack: 1976 kB
PageTables: 22864 kB
NFS_Unstable: 0 kB
Bounce: 0 kB
WritebackTmp: 0 kB
CommitLimit: 11795076 kB
Committed_AS: 1618964 kB
VmallocTotal: 34359738367 kB
VmallocUsed: 34180 kB
VmallocChunk: 34359698452 kB
HardwareCorrupted: 0 kB
HugePages_Total: 0
HugePages_Free: 0
HugePages_Rsvd: 0
HugePages_Surp: 0
Hugepagesize: 2048 kB
DirectMap4k: 9024 kB
DirectMap2M: 4184064 kB
上記の場合のメモリ容量は、約4GB(4,060,584kB)である。
翔泳社
売り上げランキング: 98,378