- 论坛徽章:
- 0
|
系统CentOS release 4.8 (Final)
free结果:
total used free shared buffers cached
Mem: 16411448 16357520 53928 0 482240 1015596
-/+ buffers/cache: 14859684 1551764
Swap: 522104 224 521880
不论用top看还是PS,都没有发现占大量内存的进程存在!搞不清楚14859684 到底是去哪里了。
发现这个问题的起因是运行MySQL后(mysql配置大内存),MySQL进程停止后内存不释放。
top -b结果:
top - 10:22:12 up 18:26, 2 users, load average: 3.94, 4.67, 4.34
Tasks: 129 total, 1 running, 119 sleeping, 9 stopped, 0 zombie
Cpu(s): 7.5% us, 2.9% sy, 0.0% ni, 87.5% id, 1.5% wa, 0.0% hi, 0.5% si
Mem: 16411448k total, 16306384k used, 105064k free, 494864k buffers
Swap: 522104k total, 224k used, 521880k free, 424360k cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
28676 mysql 16 0 2716m 2.0g 4928 S 220.3 12.7 521:15.81 mysqld
1 root 16 0 4772 564 468 S 0.0 0.0 0:01.21 init
2 root RT 0 0 0 0 S 0.0 0.0 0:00.17 migration/0
3 root 34 19 0 0 0 S 0.0 0.0 0:00.00 ksoftirqd/0
4 root RT 0 0 0 0 S 0.0 0.0 0:00.07 migration/1
5 root 34 19 0 0 0 S 0.0 0.0 0:00.69 ksoftirqd/1
6 root RT 0 0 0 0 S 0.0 0.0 0:00.06 migration/2
7 root 34 19 0 0 0 S 0.0 0.0 0:00.02 ksoftirqd/2
8 root RT 0 0 0 0 S 0.0 0.0 0:00.04 migration/3
9 root 34 19 0 0 0 S 0.0 0.0 0:00.16 ksoftirqd/3
10 root RT 0 0 0 0 S 0.0 0.0 0:00.04 migration/4
11 root 34 19 0 0 0 S 0.0 0.0 0:00.19 ksoftirqd/4
12 root RT 0 0 0 0 S 0.0 0.0 0:00.03 migration/5
13 root 34 19 0 0 0 S 0.0 0.0 0:00.00 ksoftirqd/5
14 root RT 0 0 0 0 S 0.0 0.0 0:00.04 migration/6
15 root 34 19 0 0 0 S 0.0 0.0 0:00.00 ksoftirqd/6
16 root RT 0 0 0 0 S 0.0 0.0 0:00.03 migration/7
17 root 34 19 0 0 0 S 0.0 0.0 0:00.34 ksoftirqd/7
18 root 5 -10 0 0 0 S 0.0 0.0 0:00.00 events/0
19 root 5 -10 0 0 0 S 0.0 0.0 0:00.00 events/1
20 root 5 -10 0 0 0 S 0.0 0.0 0:00.00 events/2
21 root 5 -10 0 0 0 S 0.0 0.0 0:00.00 events/3
22 root 5 -10 0 0 0 S 0.0 0.0 0:00.00 events/4
23 root 5 -10 0 0 0 S 0.0 0.0 0:00.00 events/5
24 root 5 -10 0 0 0 S 0.0 0.0 0:00.00 events/6
25 root 5 -10 0 0 0 S 0.0 0.0 0:00.00 events/7
26 root 5 -10 0 0 0 S 0.0 0.0 0:00.00 khelper
27 root 5 -10 0 0 0 S 0.0 0.0 0:00.00 kthread
28 root 15 -10 0 0 0 S 0.0 0.0 0:00.00 kacpid
81 root 5 -10 0 0 0 S 0.0 0.0 0:00.00 kblockd/0
82 root 5 -10 0 0 0 S 0.0 0.0 0:00.00 kblockd/1
83 root 5 -10 0 0 0 S 0.0 0.0 0:00.00 kblockd/2
84 root 5 -10 0 0 0 S 0.0 0.0 0:00.00 kblockd/3
85 root 5 -10 0 0 0 S 0.0 0.0 0:00.00 kblockd/4
86 root 5 -10 0 0 0 S 0.0 0.0 0:00.00 kblockd/5
87 root 5 -10 0 0 0 S 0.0 0.0 0:00.00 kblockd/6
88 root 5 -10 0 0 0 S 0.0 0.0 0:00.00 kblockd/7
89 root 15 0 0 0 0 S 0.0 0.0 0:00.00 khubd
142 root 15 0 0 0 0 S 0.0 0.0 2:14.19 kswapd0
143 root 14 -10 0 0 0 S 0.0 0.0 0:00.00 aio/0
144 root 5 -10 0 0 0 S 0.0 0.0 0:00.00 aio/1
145 root 5 -10 0 0 0 S 0.0 0.0 0:00.00 aio/2
146 root 5 -10 0 0 0 S 0.0 0.0 0:00.00 aio/3
147 root 5 -10 0 0 0 S 0.0 0.0 0:00.00 aio/4
148 root 5 -10 0 0 0 S 0.0 0.0 0:00.00 aio/5
149 root 5 -10 0 0 0 S 0.0 0.0 0:00.00 aio/6
150 root 5 -10 0 0 0 S 0.0 0.0 0:00.00 aio/7
294 root 23 0 0 0 0 S 0.0 0.0 0:00.00 kseriod
541 root 19 0 0 0 0 S 0.0 0.0 0:00.00 scsi_eh_0
542 root 5 -10 0 0 0 S 0.0 0.0 0:00.00 aacraid
571 root 7 -10 0 0 0 S 0.0 0.0 0:00.00 ata/0
572 root 5 -10 0 0 0 S 0.0 0.0 0:00.00 ata/1
573 root 5 -10 0 0 0 S 0.0 0.0 0:00.00 ata/2
574 root 5 -10 0 0 0 S 0.0 0.0 0:00.00 ata/3
575 root 5 -10 0 0 0 S 0.0 0.0 0:00.00 ata/4
576 root 5 -10 0 0 0 S 0.0 0.0 0:00.00 ata/5
577 root 5 -10 0 0 0 S 0.0 0.0 0:00.00 ata/6
578 root 5 -10 0 0 0 S 0.0 0.0 0:00.00 ata/7
579 root 10 -10 0 0 0 S 0.0 0.0 0:00.00 ata_aux
589 root 15 0 0 0 0 S 0.0 0.0 0:00.00 scsi_eh_1
590 root 15 0 0 0 0 S 0.0 0.0 0:00.00 scsi_eh_2
612 root 15 0 0 0 0 S 0.0 0.0 5:08.38 kjournald
1253 root 5 -10 0 0 0 S 0.0 0.0 0:00.00 kauditd
1694 root 6 -10 3640 632 460 S 0.0 0.0 0:00.05 udevd
2843 root 5 -10 0 0 0 S 0.0 0.0 0:00.00 kedac
3356 root 15 0 0 0 0 S 0.0 0.0 0:00.00 kjournald
3357 root 15 0 0 0 0 S 0.0 0.0 0:10.47 kjournald
3893 root 15 0 2552 268 200 S 0.0 0.0 0:01.07 cpuspeed
3901 root 15 0 2552 268 200 S 0.0 0.0 0:00.80 cpuspeed
4228 root 16 0 3648 604 488 S 0.0 0.0 0:00.49 syslogd
4232 root 16 0 2556 384 308 S 0.0 0.0 0:00.00 klogd
4246 root 16 0 2580 320 208 S 0.0 0.0 0:00.07 irqbalance
4265 rpc 16 0 4772 560 440 S 0.0 0.0 0:00.00 portmap
4275 rpcuser 17 0 5840 748 628 S 0.0 0.0 0:00.00 rpc.statd
4312 root 16 0 20964 460 244 S 0.0 0.0 0:00.00 rpc.idmapd
4419 root 19 0 2560 452 368 S 0.0 0.0 0:00.00 acpid
4431 root 16 0 72280 2212 1488 S 0.0 0.0 0:00.01 cupsd
4510 root 16 0 21964 1288 876 S 0.0 0.0 0:00.23 sshd
4541 root 18 0 8748 776 616 S 0.0 0.0 0:00.00 xinetd
4668 root 16 0 21916 1216 968 S 0.0 0.0 0:00.26 ha_logd
4679 root 16 0 21916 660 412 S 0.0 0.0 0:00.57 ha_logd
4707 root -2 0 35148 12m 4256 S 0.0 0.1 0:00.52 heartbeat
4730 root 16 0 35040 2452 996 S 0.0 0.0 0:00.04 sendmail
4739 smmsp 15 0 27840 1896 828 S 0.0 0.0 0:00.00 sendmail
4750 root 16 0 4196 344 264 S 0.0 0.0 0:00.00 gpm
4782 root 16 0 57216 1068 528 S 0.0 0.0 0:00.00 crond
4826 xfs 16 0 10284 1676 732 S 0.0 0.0 0:00.00 xfs
4846 root 15 0 8932 424 296 S 0.0 0.0 0:00.00 atd
4857 dbus 16 0 10716 836 656 S 0.0 0.0 0:00.04 dbus-daemon-1
4870 root 19 0 10060 932 772 S 0.0 0.0 0:00.00 cups-config-dae
4881 root 16 0 15600 2908 1272 S 0.0 0.0 0:00.85 hald
4920 root 15 0 0 0 0 S 0.0 0.0 0:00.08 rpciod
4921 root 19 0 0 0 0 S 0.0 0.0 0:00.00 lockd
4928 root 17 0 2544 412 340 S 0.0 0.0 0:00.00 mingetty
4929 root 18 0 2544 412 340 S 0.0 0.0 0:00.00 mingetty
4930 root 18 0 2544 412 340 S 0.0 0.0 0:00.00 mingetty
4931 root 18 0 2544 412 340 S 0.0 0.0 0:00.00 mingetty
4932 root 18 0 2544 412 340 S 0.0 0.0 0:00.00 mingetty
4933 root 18 0 2544 412 340 S 0.0 0.0 0:00.00 mingetty
4934 root 15 0 36332 5652 3052 S 0.0 0.0 0:01.21 snmpd
5681 nobody -2 0 28416 5948 4256 S 0.0 0.0 0:00.00 heartbeat
5682 nobody -2 0 28544 6076 4256 S 0.0 0.0 0:01.11 heartbeat
5683 nobody -2 0 28544 6076 4256 S 0.0 0.0 0:02.14 heartbeat
5859 hacluste 16 0 24480 2056 1304 S 0.0 0.0 0:00.86 ccm
5860 hacluste 16 0 32496 3460 1900 S 0.0 0.0 0:01.25 cib
5861 root 16 0 30664 2056 1364 S 0.0 0.0 0:02.80 lrmd
5862 nobody 16 0 24208 4804 4140 S 0.0 0.0 0:00.64 stonithd
5863 hacluste 16 0 23136 1556 1280 S 0.0 0.0 0:01.24 attrd
5864 hacluste 16 0 29832 3360 1792 S 0.0 0.0 0:00.90 crmd
5865 root 16 0 35808 2324 1716 S 0.0 0.0 0:00.38 mgmtd
6175 root 16 0 36236 2816 2224 S 0.0 0.0 0:00.71 sshd
6224 root 16 0 53992 1628 1212 S 0.0 0.0 0:00.09 bash
7567 root 16 0 53740 572 472 T 0.0 0.0 0:00.00 tail
9524 root 16 0 53744 656 548 T 0.0 0.0 0:00.21 tail
16230 root 16 0 6172 1160 840 T 0.0 0.0 0:00.05 top
20135 root 15 0 0 0 0 S 0.0 0.0 0:00.63 pdflush
20206 root 15 0 53740 572 472 T 0.0 0.0 0:00.00 tail
20879 hacluste 16 0 28088 2480 1464 S 0.0 0.0 0:00.76 tengine
20880 hacluste 16 0 27548 3032 1604 S 0.0 0.0 0:00.20 pengine
22878 root 15 0 53740 572 472 T 0.0 0.0 0:00.00 tail
25920 root 16 0 51000 600 512 T 0.0 0.0 0:00.09 more
28640 root 19 0 53848 1304 1088 S 0.0 0.0 0:00.01 mysqld_safe
30316 root 16 0 53740 572 472 T 0.0 0.0 0:00.00 tail
30408 root 16 0 51000 600 512 T 0.0 0.0 0:00.00 more
32558 root 16 0 37132 2684 2100 S 0.0 0.0 0:00.02 sshd
32560 root 16 0 53988 1608 1204 S 0.0 0.0 0:00.01 bash
32595 root 15 0 0 0 0 S 0.0 0.0 0:00.00 pdflush
32596 root 16 0 51000 600 512 T 0.0 0.0 0:00.00 more
32606 root 15 0 6168 1056 756 R 0.0 0.0 0:00.00 top |
|