free -m
total used free shared buffers cached
Mem: 3832 3518 313 1 185 741
-/+ buffers/cache: 2591 1240
Swap: 3967 0 3967
这是/proc/meminfo的信息
# ps -eo rss,pmem,pcpu,vsize | sort -k 1 -r -n | head
168188 4.2 0.3 2532360
101952 2.5 1.3 2819336
31616 0.8 0.0 630692
13980 0.3 0.0 311672
6856 0.1 0.0 33624
5616 0.1 0.0 252648
4016 0.1 0.0 99968
4012 0.1 0.0 99968
3056 0.0 0.0 56548
2648 0.0 0.0 137200
这是遍历每个进程的内存信息,最多一个进程用4.2%,一个用2.5% ,然后其他都加起来也没超过10%,为什么meminfo会显示用了那么多内存?
最近编辑记录 atmouse (2015-10-10 10:59:57)
离线
slabinfo 里面看到一个dentry的信息,这是什么
dentry 11238374 11238540 192 20 1 : tunables 120 60 8 : slabdata 561927 561927 0
补充
cat /proc/meminfo
MemTotal: 3924280 kB
MemFree: 231948 kB
Buffers: 190496 kB
Cached: 759800 kB
SwapCached: 120 kB
Active: 691956 kB
Inactive: 568076 kB
Active(anon): 136204 kB
Inactive(anon): 175516 kB
Active(file): 555752 kB
Inactive(file): 392560 kB
Unevictable: 0 kB
Mlocked: 0 kB
SwapTotal: 4063228 kB
SwapFree: 4063036 kB
Dirty: 196 kB
Writeback: 0 kB
AnonPages: 309644 kB
Mapped: 36016 kB
Shmem: 1984 kB
Slab: 2380836 kB
SReclaimable: 2319412 kB
SUnreclaim: 61424 kB
KernelStack: 3840 kB
PageTables: 3776 kB
NFS_Unstable: 0 kB
Bounce: 0 kB
WritebackTmp: 0 kB
CommitLimit: 6025368 kB
Committed_AS: 940632 kB
VmallocTotal: 34359738367 kB
VmallocUsed: 151344 kB
VmallocChunk: 34359557708 kB
HardwareCorrupted: 0 kB
AnonHugePages: 217088 kB
HugePages_Total: 0
HugePages_Free: 0
HugePages_Rsvd: 0
HugePages_Surp: 0
Hugepagesize: 2048 kB
DirectMap4k: 10240 kB
DirectMap2M: 4184064 kB
最近编辑记录 atmouse (2015-10-10 10:49:15)
离线
知道原因了
https://bugzilla.redhat.com/show_bug.cg … id=1044666
我crontab里面有每分钟执行一次curl
离线
怎么感觉突然关于 dentry 的问题就涌现出来了啊。最近我也遇到过这种问题。
离线