为什么有swap在使用?空闲内存够大
本帖最后由 mordorwww 于 2016-07-01 14:07 编辑top - 13:58:15 up 299 days, 19 min,6 users,load average: 0.00, 0.00, 0.00
Tasks: 166 total, 1 running, 165 sleeping, 0 stopped, 0 zombie
Cpu0:2.3%us,3.0%sy,0.0%ni, 94.6%id,0.0%wa,0.0%hi,0.0%si,0.0%st
Cpu1:7.7%us,6.0%sy,0.0%ni, 83.6%id,0.0%wa,0.0%hi,2.7%si,0.0%st
Cpu2:0.3%us,0.0%sy,0.0%ni, 99.7%id,0.0%wa,0.0%hi,0.0%si,0.0%st
Cpu3:1.0%us,1.0%sy,0.0%ni, 96.7%id,1.3%wa,0.0%hi,0.0%si,0.0%st
Mem:16216520k total, 15854632k used, 361888k free, 56524k buffers
Swap:8175608k total, 5440k used,8170168k free, 14523520k cached
free -m
total used free shared buffers cached
Mem: 15836 15483 353 0 55 14183
-/+ buffers/cache: 1244 14591
Swap: 7983 5 7978
#
vmstat 2 10
procs -----------memory---------- ---swap-- -----io---- --system-- -----cpu-----
rb swpd free buffcache si so bi bo in cs us sy id wa st
00 5440 34824058712 14534392 0 0 0 1 0 0 500 5000
00 5440 34823258712 14534400 0 0 0 306 3681 1687633 9300
00 5440 34810858720 14534400 0 0 0 12 5130 2490366 8800
10 5440 34810858720 14534524 0 0 0 0 5691 3279667 8700
10 5440 34810858720 14534524 0 0 0 0 4272 2067534 9200
00 5440 34823258728 14534524 0 0 0 8 4418 2084934 9210
00 5440 34798458728 14534636 0 0 0 0 5032 2739855 9000
10 5440 34798458728 14534648 0 0 0 0 4804 2417455 9000
00 5440 34786058736 14534648 0 0 0 6 5048 2494945 9000
10 5440 34786058736 14534756 0 0 0 0 4982 2640455 9000
看一下buddyinfo吧,是不是大部分page不在Normal zone里?
页:
[1]