- 论坛徽章:
- 0
|
今天仔细对比测试,一个data_zip_new.sh 是刚重启的脚本,一个data_zip_error是运行时间大概一个小时的脚本
明显发现运行久了virt,res 数据区会增大
这我就想不明白了,while后台调用很多进程后,这些也会运行完释放的,为啥res等还会持续增加?有什么没释放的吗?
Tasks: 752 total, 6 running, 746 sleeping, 0 stopped, 0 zombie
Cpu(s): 22.2%us, 9.8%sy, 0.0%ni, 68.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st, 67.3%id_exact, 0.3%hi_exact, 0.4%irq_exact
Mem: 264463636k total, 24349160k used, 240114476k free, 361180k buffers
Swap: 25165816k total, 0k used, 25165816k free, 3197596k cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ PPID RUSER UID GROUP TTY P SWAP TIME CODE DATA nFLT nDRT WCHAN Flags COMMAND
17102 root 20 0 115m 12m 1032 R 100.0 0.0 2:05.51 14812 root 0 root pts/3 13 0 2:05 848 11m 0 0 - ..4.2... data_zip_new.sh
17952 root 20 0 159m 57m 1112 R 99.7 0.0 102:22.86 1080 root 0 root pts/6 8 0 102:22 848 56m 0 0 - ..4.21.. data_zip_error.
|
|