- 论坛徽章:
- 1
|
free -m 显示 cache 还有很多没用完 而swap的free值为 0 了 ,不是优先使用 空闲内存 和buffers/cache 再使用swap吗 ?
swap free值为0对系统运行会不会有很大的风险 ? 望大神们指教 。
[acc@nmdb1 ~]$ vmstat -s
793852544 total memory
789761280 used memory
562047936 active memory
209639088 inactive memory
4091284 free memory
369916 buffer memory
401337984 swap cache
10485752 total swap
10485752 used swap
0 free swap
6361554080 non-nice user cpu ticks
25449 nice user cpu ticks
3257276166 system cpu ticks
74843217162 idle cpu ticks
30489151 IO-wait cpu ticks
2615660 IRQ cpu ticks
956709161 softirq cpu ticks
0 stolen cpu ticks
30977859770 pages paged in
177753747760 pages paged out
9975864 pages swapped in
7010140 pages swapped out
3348278108 interrupts
2011458514 CPU context switches
1447059825 boot time
104700677 forks
[acc@nmdb1 ~]$ free -m
total used free shared buffers cached
Mem: 775246 771337 3909 0 361 392019
-/+ buffers/cache: 378956 396289
Swap: 10239 10239 0
[acc@nmdb1 ~]$ top
top - 17:26:47 up 158 days, 23 min, 11 users, load average: 0.11, 0.07, 0.03
Tasks: 1470 total, 1 running, 1469 sleeping, 0 stopped, 0 zombie
Cpu(s): 13.3%us, 5.4%sy, 0.0%ni, 79.5%id, 0.0%wa, 0.0%hi, 1.7%si, 0.0%st
Mem: 793852564k total, 789978672k used, 3873892k free, 370268k buffers
Swap: 10485752k total, 10485752k used, 0k free, 401578480k cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
49065 billmdb 20 0 372g 308g 6020 S 1042.2 40.8 860329:45 odframe
47434 billmdb 20 0 39.6g 5.4g 5876 S 74.5 0.7 23211:29 odframe
47417 billmdb 20 0 39.6g 5.4g 5892 S 70.9 0.7 23169:22 odframe
47409 billmdb 20 0 185m 15m 4560 S 32.5 0.0 10729:37 odframe
47424 billmdb 20 0 187m 20m 4584 S 31.6 0.0 10607:35 odframe
43385 billmdb 20 0 49.6g 15g 124m S 20.8 2.0 4926:02 odframe
43399 billmdb 20 0 49.7g 15g 129m S 20.8 2.0 4984:33 odframe
36470 root 20 0 0 0 0 S 3.3 0.0 256:41.00 flush-252:1
10584 billmdb 20 0 39656 4440 1776 S 2.3 0.0 0:56.21 top
48455 aiuap 20 0 16112 2348 944 R 2.3 0.0 0:00.32 top
14650 billmdb 20 0 34.1g 32m 14m S 2.0 0.0 1533:41 odframe
14855 billmdb 20 0 574m 10m 4124 S 1.3 0.0 1326:58 odframe
7609 bocs 20 0 575m 4276 2024 S 0.7 0.0 1585:01 bocs40
109 root 20 0 0 0 0 S 0.3 0.0 17:29.31 ksoftirqd/26 |
|