linuxメモリの表示方法
1609 ワード
free ,-m M . .
$ free -m
total used free shared buffers cached
Mem: 1002 769 232 0 62 421
-/+ buffers/cache: 286 715
Swap: 1153 0 1153
Mem :
total : 1002M
used : 769M
free : 232M
shared , 0
buffers Buffer : 62M
cached Page :421M
:total(1002M) = used(769M) + free(232M)
(-/+ buffers/cache):
(-buffers/cache) used :286M ( Mem used - buffers - cached)
(+buffers/cache) free : 715M ( Mem free + buffers + cached)
-buffers/cache , +buffers/cache 。
, .
, . (Mem) (-/+ buffers/cache) used free .
.
Mem .buffers/cached , free 232.
(-/+ buffers/cach).buffers/cached , buffer/cached , ,buffer/cached 。
, , (-/+ buffers/cache) free used . . .Linux , Linux ,
dentry ( VFS, inode ), Cache :Buffer Cache Page Cache。 , inode 。 Cache I/O ( read,write,getdents) 。
, . windows, , . windows . ,
, , . . linux, swap , .
swap , . linux .