# cat /proc/meminfo
MemTotal: 60892 kB
MemFree: 52304 kB
Buffers: 0 kB
Cached: 5360 kB
SwapCached: 0 kB
Active: 1652 kB
Inactive: 4104 kB
Active(anon): 396 kB
Inactive(anon): 0 kB
Active(file): 1256 kB
Inactive(file): 4104 kB
Unevictable: 0 kB
Mlocked: 0 kB
SwapTotal: 0 kB
SwapFree: 0 kB
Dirty: 0 kB
Writeback: 0 kB
AnonPages: 424 kB
Mapped: 756 kB
Slab: 1868 kB
SReclaimable: 976 kB
SUnreclaim: 892 kB
PageTables: 72 kB
NFS_Unstable: 0 kB
Bounce: 0 kB
WritebackTmp: 0 kB
CommitLimit: 30444 kB
Committed_AS: 1092 kB
VmallocTotal: 917504 kB
VmallocUsed: 33192 kB
VmallocChunk: 876540 kB
# cd -
/proc
# cat /proc/meminfo
MemTotal: 60892 kB
MemFree: 52304 kB
Buffers: 0 kB
Cached: 5360 kB
SwapCached: 0 kB
Active: 1652 kB
Inactive: 4104 kB
Active(anon): 396 kB
Inactive(anon): 0 kB
Active(file): 1256 kB
Inactive(file): 4104 kB
Unevictable: 0 kB
Mlocked: 0 kB
SwapTotal: 0 kB
SwapFree: 0 kB
Dirty: 0 kB
Writeback: 0 kB
AnonPages: 424 kB
Mapped: 756 kB
Slab: 1872 kB
SReclaimable: 976 kB
SUnreclaim: 896 kB
PageTables: 72 kB
NFS_Unstable: 0 kB
Bounce: 0 kB
WritebackTmp: 0 kB
CommitLimit: 30444 kB
Committed_AS: 1092 kB
VmallocTotal: 917504 kB
VmallocUsed: 33192 kB
VmallocChunk: 876540 kB
代码位于fs/proc/meminfo.c
module_init(proc_meminfo_init);
阅读(1671) | 评论(0) | 转发(0) |