免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 5675 | 回复: 2
打印 上一主题 下一主题

内存跑哪去了? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2015-07-27 11:59 |只看该作者 |倒序浏览
一台sol10的机器,物理内存128G,used mem+free mem大概只有60G不到,机器特别慢。
> prstat -a
   PID USERNAME  SIZE   RSS STATE  PRI NICE      TIME  CPU PROCESS/NLWP      
  8018 root       18M  648K cpu15   50    0 1791:58:3 1.6% tar/1
12855 root       18M  648K cpu2    50    0 1791:48:2 1.6% tar/1
  9869 npmuser    95M   72M cpu30    0    2   0:38:22 1.4% perl/1
  9940 npmuser    95M   72M cpu27   44    2   0:40:42 1.4% perl/1
  9963 npmuser    95M   76M cpu6     0    2   0:35:47 1.4% perl/1
21484 informix   56G   56G sleep   59  -10 740:01:29 1.4% oninit/2
21458 informix   56G   56G cpu46   59  -10 2317:01:5 1.3% oninit/2
21461 informix   56G   56G sleep   59  -10 2357:56:4 1.3% oninit/2
21463 informix   56G   56G cpu23   30  -10 2319:04:3 1.3% oninit/2
21467 informix   56G   56G cpu1    30  -10 2149:06:1 1.3% oninit/2
21456 informix   56G   56G cpu63   30  -10 2328:53:4 1.3% oninit/2
21459 informix   56G   56G cpu22   40  -10 2384:45:0 1.2% oninit/2
21457 informix   56G   56G cpu13   30  -10 2404:55:0 1.2% oninit/2
21471 informix   56G   56G cpu12   59  -10 1908:07:1 1.2% oninit/2
21478 informix   56G   56G cpu41   30  -10 1074:21:5 1.2% oninit/2
21473 informix   56G   56G cpu5    30  -10 1685:41:5 1.2% oninit/2
21465 informix   56G   56G cpu24   30  -10 2257:01:5 1.2% oninit/2
21482 informix   56G   56G cpu32   41  -10 797:41:19 1.2% oninit/2
21475 informix   56G   56G cpu4    30  -10 1456:42:0 1.1% oninit/2
21469 informix   56G   56G cpu20   30  -10 1997:19:3 1.1% oninit/2
21462 informix   56G   56G sleep   59  -10 2255:38:5 1.1% oninit/2
21319 informix   56G   56G cpu26   59  -10 1765:31:0 1.1% oninit/2
21466 informix   56G   56G cpu42   59  -10 2113:47:0 1.1% oninit/2
21468 informix   56G   56G cpu48   30  -10 1988:00:4 1.1% oninit/2
21464 informix   56G   56G sleep   59  -10 2202:29:3 1.1% oninit/2
21460 informix   56G   56G sleep   59  -10 2290:09:5 1.1% oninit/2
21477 informix   56G   56G cpu14   30  -10 1230:18:4 1.0% oninit/2
21472 informix   56G   56G cpu60   30  -10 1700:53:1 1.0% oninit/2
21440 informix   56G   56G sleep   59  -10 1653:50:5 1.0% oninit/2
21474 informix   56G   56G cpu34   59  -10 1488:40:1 1.0% oninit/2
NPROC USERNAME  SWAP   RSS MEMORY      TIME  CPU                             
    67 informix   56G   56G    44% 53464:44:  34%
    98 npmuser  1127M  809M   0.6%   2:31:08 8.5%
   108 root      678M  275M   0.2% 3696:20:4 3.2%
     1 nobody   1096K 2304K   0.0%   0:00:01 0.0%
     2 daemon   3320K 5128K   0.0%   2:20:29 0.0%
     8 nrmuser  3656K 9376K   0.0%   0:00:01 0.0%


> top

load averages: 32.50, 27.50, 28.33                                          AHDB3                                          10:51:53
292 processes: 233 sleeping, 7 running, 5 zombie, 10 stopped, 37 on cpu
CPU states: 41.2% idle, 48.3% user, 10.5% kernel,  0.0% iowait,  0.0% swap
Memory: 128G real, 978M free, 70.2G swap in use, 68.9G swap free

   PID USERNAME THR PR NCE  SIZE   RES STATE   TIME FLTS    CPU COMMAND
  8018 root       1  0   0    0K    0K cpu25 1792.0    0  1.56% tar
12855 root       1  0   0    0K    0K cpu22 1791.8    0  1.56% tar
21478 informix   2 30 -10    0K    0K cpu55 1074.4    0  1.41% oninit
  9869 npmuser    1  0   2 94.8M 71.9M cpu07  38:40    8  1.41% perl
  9963 npmuser    1  0   2 94.8M 75.9M cpu05  36:05    4  1.41% perl
  9940 npmuser    1  0   2 94.8M 71.8M cpu14  41:00    3  1.40% perl
21458 informix   2 30 -10    0K    0K cpu49 2317.0    2  1.32% oninit
21463 informix   2 30 -10    0K    0K sleep 2319.1    4  1.30% oninit
21467 informix   2 30 -10    0K    0K cpu18 2149.1    1  1.30% oninit
21484 informix   2 40 -10    0K    0K cpu57 740.0H    2  1.30% oninit
21457 informix   2 30 -10    0K    0K cpu17 2404.9    0  1.26% oninit
21465 informix   2 30 -10    0K    0K cpu13 2257.0    4  1.25% oninit
21473 informix   2 30 -10    0K    0K cpu08 1685.7    1  1.22% oninit
21469 informix   2 30 -10    0K    0K cpu23 1997.3    3  1.21% oninit
21480 informix   2 40 -10    0K    0K cpu43 906.8H   12  1.21% oninit




Total: 284 processes, 653 lwps, load averages: 31.35, 27.03, 28.19

论坛徽章:
2
双鱼座
日期:2014-02-23 12:10:03操作系统版块每日发帖之星
日期:2015-12-17 06:20:00
2 [报告]
发表于 2015-07-27 14:10 |只看该作者
用的zfs?
贴这个命令出来看看:
# echo "::memstat" | mdb -k

论坛徽章:
0
3 [报告]
发表于 2015-07-27 14:48 |只看该作者
# echo "::memstat" | mdb -k 等了快半个小时没输出就把他终止掉了。

没有用zfs,机器重启之后正常了。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP