免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
楼主: miaohuil
打印 上一主题 下一主题

请高手赶紧帮忙!!!!!!!!!iowait比较高 [复制链接]

论坛徽章:
0
11 [报告]
发表于 2006-05-11 14:36 |只看该作者
内存跟swap看起来还好。如果你对DB不懂的话,重起一下DB看一下

论坛徽章:
0
12 [报告]
发表于 2006-05-11 14:43 |只看该作者
原帖由 ga0feng 于 2006-5-11 14:35 发表
# vmstat 1
procs     memory            page            disk          faults      cpu
r b w   swap  free  re  mf pi po fr de sr s0 s1 s6 s3   in   sy   cs us sy id
0 0 0 14569024 8617176 0 0  0   ...



DB管理员上午我找过他(当时我怀疑是数据库的错误引起的IOWAIT过高),他也分析了数据库的一些状态,没有发现异常。

这个block值太高是否是说CPU坏了,还是informix进程把CPU给拖垮了?我应该怎么定位问题的所在呢??

论坛徽章:
0
13 [报告]
发表于 2006-05-11 14:45 |只看该作者
原帖由 ga0feng 于 2006-5-11 14:36 发表
内存跟swap看起来还好。如果你对DB不懂的话,重起一下DB看一下

上面有应用在跑,重启数据库需要打报告,还要有准确的分析才行啊!

论坛徽章:
0
14 [报告]
发表于 2006-05-11 14:47 |只看该作者
一切皆有可能。

用排除法。
1。先把DB关掉,看看performance会不会变好
2。不行的话,再关掉别的几个服务。


我认为,跟DB的关系特别大。
不知道你用过lsof跟truss吗?
可以跟踪一下几个可疑进程的状态跟相关的文件打开情况

论坛徽章:
0
15 [报告]
发表于 2006-05-11 14:48 |只看该作者
嗯,看来只能先用lsof跟truss看看了,真手痒。

论坛徽章:
0
16 [报告]
发表于 2006-05-11 14:50 |只看该作者
把输出贴一下
1。/usr/ucb/ps -auxww

论坛徽章:
0
17 [报告]
发表于 2006-05-11 14:51 |只看该作者
原帖由 ga0feng 于 2006-5-11 14:47 发表
一切皆有可能。

用排除法。
1。先把DB关掉,看看performance会不会变好
2。不行的话,再关掉别的几个服务。


我认为,跟DB的关系特别大。
不知道你用过lsof跟truss吗?
可以跟踪一下几个可疑进程的状态 ...

没有用过啊,是需要安装的吗?如果需要安装新程序也要打报告啊!

论坛徽章:
0
18 [报告]
发表于 2006-05-11 14:53 |只看该作者
原帖由 ga0feng 于 2006-5-11 14:50 发表
把输出贴一下
1。/usr/ucb/ps -auxww

# /usr/ucb/ps -auxww
USER       PID %CPU %MEM   SZ  RSS TT       S    START  TIME COMMAND
root         3  0.7  0.0    0    0 ?        S   Nov 18 12912:57 fsflush
informix  1829  0.4 27.849146964476368 ?        S   Apr 21 1531:42 oninit
npmuser  16710  0.4  0.11841617264 ?        S 14:51:22  0:01 perl /opt/NPM/BOCO.NPM/DB/ReportSum/bin/data_sum.pl -e 2006-05-11 12:00:00 -c frame_msc.cfg -u 0 -s 2006-05-11 07:00:00 -o 691,692,998,999,812,103 -q 1906356,70
informix  1837  0.4 24.849127443996856 ?        S   Apr 21 1467:54 oninit
nrmuser   9942  0.3  0.11132010368 ?        S 11:09:02  6:03 /usr/local/bin/perl ./AlarmForward.pl -m WNMS3_QM
root      1958  0.2  0.74914880104360 ?        S   Apr 21 729:05 oninit
informix  1836  0.2 24.949131604000792 ?        S   Apr 21 2040:13 oninit
nrmuser   9961  0.1  0.11586414696 ?        S 11:09:02  1:11 /usr/local/bin/perl ./AlarmBackward.pl -m WNMS3_QM
informix  1838  0.1 24.749122003982368 ?        S   Apr 21 923:42 oninit
root     16776  0.1  0.1 4208 3824 pts/6    O 14:51:33  0:00 /usr/ucb/ps -auxww
npmuser  10752  0.1  0.11866417520 pts/3    S 14:47:41  0:01 perl /opt/NPM/BOCO.NPM/DB/ReportSum/bin/data_sum.pl -e 2006-05-11 13:00:00 -c frame_radio.cfg -u 0 -s 2006-05-11 12:00:00 -o 806,809,308,306,103,733,312,731,810,314,313,732 -q 1906379,65
npmuser   9986  0.1  0.11319212440 pts/3    S 11:09:03  1:51 perl /opt/NPM/BOCO.NPM/DB/TaskCenter/task_center.pl
npmuser   1976  0.1  0.0 1680 1464 pts/3    S 13:30:32  0:15 top
informix 16220  0.1  0.0 1616 1384 pts/22   S 14:50:04  0:00 top
npmuser   9392  0.1  0.0 1680 1464 pts/16   S 11:07:45  0:44 top
informix  1840  0.0 24.449117043930872 ?        S   Apr 21 393:31 oninit
npmuser  11336  0.0  0.11732015744 pts/3    S 14:48:55  0:15 perl /opt/NPM/BOCO.NPM/DB/Local/bin/drop_optmize_auto.pl -e 2006-05-11 10:00:00 -u 0 -s 2006-05-11 09:00:00 -o 312,306,314,313,308,103 -q 1906378,2000
root      1071  0.0  0.1 5696 4040 ?        S   Nov 18 86:12 ./logdaemon
root         1  0.0  0.0  880  312 ?        S   Nov 18 107:10 /etc/init -
root       454  0.0  0.0 2936 2088 ?        S   Nov 18 96:50 /usr/sbin/nscd
root       374  0.0  0.0 2512 1536 ?        S   Nov 18 14:51 /usr/sbin/rpcbind
npmuser   9998  0.0  0.11547214272 pts/3    S 11:09:03  0:27 perl TaskMsgHandler.pl
root     16250  0.0  0.0 2088 1528 ?        S   Mar 08  1:27 /usr/sbin/cron
nrmuser  20368  0.0  0.23405631552 ?        S   Mar 28 41:13 perl SyncSvr.pl
root         0  0.0  0.0    0    0 ?        T   Nov 18  0:25 sched
root         2  0.0  0.0    0    0 ?        S   Nov 18  0:00 pageout
root        26  0.0  0.1 8768 6648 ?        S   Nov 18  0:10 vxconfigd -m boot
root        75  0.0  0.0 2464 1440 ?        S   Nov 18  0:00 /usr/lib/sysevent/syseventd
root       285  0.0  0.0 3616 2448 ?        S   Nov 18  0:00 /usr/lib/picl/picld
root       344  0.0  0.12916810936 ?        S   Nov 18  0:03 /opt/VRTSob/bin/vxsvc -r /opt/VRTSob/config/Registry
root       398  0.0  0.0 2448 1792 ?        S   Nov 18 57:29 /usr/sbin/inetd -s
root       413  0.0  0.0 1928 1312 ?        S   Nov 18  0:00 /usr/lib/nfs/lockd
daemon     414  0.0  0.0 2536 1728 ?        S   Nov 18  0:00 /usr/lib/nfs/statd
root       417  0.0  0.1 4424 2608 ?        S   Nov 18  1:23 /usr/lib/autofs/automountd
root       429  0.0  0.0 4104 2304 ?        S   Nov 18  3:24 /usr/sbin/syslogd
root       539  0.0  0.116384 2776 ?        S   Nov 18  0:00 /opt/Navisphere/bin/naviagent -f /etc/Navisphere/agent.config
root       546  0.0  0.0 3208  872 ?        S   Nov 18  0:00 /usr/lib/lpsched
root       564  0.0  0.0 4376 1648 ?        S   Nov 18  0:00 sendmail: accepting connections
root       569  0.0  0.0 1056  664 ?        S   Nov 18  1:38 /usr/lib/utmpd
root       574  0.0  0.0 1728 1152 ?        S   Nov 18  0:00 /usr/sadm/lib/smc/bin/smcboot
root       575  0.0  0.0 1728  664 ?        S   Nov 18  0:00 /usr/sadm/lib/smc/bin/smcboot
root       585  0.0  0.0 3600 2024 ?        S   Nov 18  0:00 /usr/sbin/vold
root       597  0.0  0.0 1040  680 ?        S   Nov 18  0:00 /usr/lib/im/htt -port 9010 -syslog -message_locale C
root       603  0.0  0.0 3088 1464 ?        S   Nov 18  0:00 htt_server -port 9010 -syslog -message_locale C
root       613  0.0  0.0 5456 2200 ?        S   Nov 18  1:36 /usr/sbin/nsrexecd
root       614  0.0  0.1 5880 3408 ?        S   Nov 18  2:52 /usr/sbin/nsrexecd
root       798  0.0  0.0 2216 1296 ?        S   Nov 18  0:18 /usr/lib/inet/xntpd
root       804  0.0  0.0  728  472 ?        S   Nov 18  0:00 /sbin/sh /sbin/sh /usr/lib/vxvm/bin/vxrelocd root
root       805  0.0  0.0 1984 1288 ?        S   Nov 18  0:00 /bin/ksh /usr/lib/vxvm/bin/vxconfigbackupd
root       843  0.0  0.0  728  432 ?        S   Nov 18  0:00 /sbin/sh /sbin/sh /usr/lib/vxvm/bin/vxrelocd root
root       844  0.0  0.0 1760 1160 ?        S   Nov 18  0:00 vxnotify -f -w 15
root       878  0.0  0.0 1848 1216 ?        S   Nov 18  0:00 vxnotify
daemon     881  0.0  0.0 9528 1784 ?        S   Nov 18  0:00 /usr/lib/ab2/dweb/sunos5/bin/dwhttpd /usr/lib/ab2/dweb/data
root       893  0.0  0.0 1032  144 ?        S   Nov 18  0:00 /usr/lib/efcode/sparcv9/efdaemon
root       920  0.0  0.0 4032 1752 ?        S   Nov 18  0:00 /usr/sbin/hbanyware/rmserver
root       952  0.0  0.0 5040 2248 ?        S   Nov 18 10:02 /usr/dt/bin/dtlogin -daemon
root       957  0.0  0.0 3968  280 ?        S   Nov 18  0:00 /usr/sbin/hbanyware/rmserver
root       958  0.0  0.0 4032  280 ?        S   Nov 18  0:00 /usr/sbin/hbanyware/rmserver
root      1039  0.0  0.0 3192 2016 ?        S   Nov 18  0:00 /usr/lib/dmi/dmispd
root      1045  0.0  0.0 1160  920 ?        S   Nov 18  1:15 /bin/sh /export/home/nsfocus/agent/logwatch.sh
root      1173  0.0  0.0 5272 2424 ?        S   Nov 18  0:00 /opt/VRTSvcs/bin/had
root      1174  0.0  0.0 2800  984 ?        S   Nov 18  0:00 /opt/VRTSvcs/bin/CmdServer
root      1177  0.0  0.0 1832 1216 ?        S   Nov 18  0:00 /usr/lib/saf/sac -t 300
root      1178  0.0  0.0  352   96 console  S   Nov 18  0:00 -sh
root      1180  0.0  0.0 1832 1256 ?        S   Nov 18  0:00 /usr/lib/saf/ttymon
root      1182  0.0  0.0 2672 1488 ?        S   Nov 18  0:00 /opt/VRTSvcs/bin/hashadow
root      1835  0.0  0.94907904134728 ?        S   Apr 21 10:53 oninit
informix  1839  0.0 24.649119923961136 ?        S   Apr 21 582:18 oninit
informix  1841  0.0 24.349113363909816 ?        S   Apr 21 291:03 oninit
root      1842  0.0  0.04907904  928 ?        S   Apr 21  0:02 oninit
root      1843  0.0  0.04907904  888 ?        S   Apr 21  0:03 oninit
root      1844  0.0  0.84907904124448 ?        S   Apr 21 458:13 oninit
root      1845  0.0  0.7490795299680 ?        S   Apr 21  7:02 oninit
root      1872  0.0  0.5490790482472 ?        S   Apr 21  1:00 oninit
root      1876  0.0  0.3490790437632 ?        S   Apr 21  0:09 oninit
root      1877  0.0  0.1490790414688 ?        S   Apr 21  0:04 oninit
root      1878  0.0  0.14907904 6984 ?        S   Apr 21  0:03 oninit
root      1889  0.0  0.14907904 5808 ?        S   Apr 21  0:03 oninit
root      1902  0.0  0.14907904 5288 ?        S   Apr 21  0:03 oninit
root      1912  0.0  0.14907904 5320 ?        S   Apr 21  0:03 oninit
root      1928  0.0  0.14907904 4672 ?        S   Apr 21  0:02 oninit
root      1929  0.0  0.14907904 4584 ?        S   Apr 21  0:02 oninit
root      1930  0.0  0.14907904 4248 ?        S   Apr 21  0:02 oninit
root      1932  0.0  0.14907904 2752 ?        S   Apr 21  0:02 oninit
root      1933  0.0  0.14907904 3376 ?        S   Apr 21  0:02 oninit
root      1934  0.0  0.14907904 3776 ?        S   Apr 21  0:02 oninit
root      1935  0.0  0.04907904 2192 ?        S   Apr 21  0:02 oninit
root      1936  0.0  0.14907904 4000 ?        S   Apr 21  0:02 oninit
root      1937  0.0  0.04907904 1488 ?        S   Apr 21  0:02 oninit
root      1938  0.0  0.04907904 1496 ?        S   Apr 21  0:02 oninit
root      1944  0.0  0.14907904 2520 ?        S   Apr 21  0:02 oninit
root      1945  0.0  0.04907904  920 ?        S   Apr 21  0:02 oninit
root      1946  0.0  0.04907904  920 ?        S   Apr 21  0:02 oninit
root      1947  0.0  0.04907904  920 ?        S   Apr 21  0:02 oninit
root      1948  0.0  0.04907904  920 ?        S   Apr 21  0:02 oninit
root      1949  0.0  0.04907904  920 ?        S   Apr 21  0:02 oninit
root      1950  0.0  0.04907904  920 ?        S   Apr 21  0:02 oninit
root      1951  0.0  0.04907904  920 ?        S   Apr 21  0:02 oninit
root      1952  0.0  0.04907904  920 ?        S   Apr 21  0:02 oninit
root      1953  0.0  0.04907904  920 ?        S   Apr 21  0:02 oninit
root      1954  0.0  0.04907904 1960 ?        S   Apr 21  0:02 oninit
root      1955  0.0  0.04907904  896 ?        S   Apr 21  0:02 oninit
root      1956  0.0  0.04907904  920 ?        S   Apr 21  0:02 oninit
root      1957  0.0  0.04907904  920 ?        S   Apr 21  0:02 oninit
nmosuser  2384  0.0  0.1 5296 3680 pts/9    S 10:53:26  0:00 dbaccess
daemon    3547  0.0  0.110240 3088 ?        S   Apr 12  0:00 /usr/lib/ab2/dweb/sunos5/bin/dwhttpd /usr/lib/ab2/dweb/data
root      5428  0.0  0.0 1832 1448 ?        S 14:38:16  0:00 in.telnetd
informix  5431  0.0  0.0 1664 1296 pts/19   S 14:38:16  0:00 -csh
root      5580  0.0  0.0 1832 1448 ?        S 14:38:22  0:00 in.telnetd
informix  5584  0.0  0.0 1664 1296 pts/22   S 14:38:22  0:00 -csh
root      9458  0.0  0.0 1832 1448 ?        S 08:01:46  0:00 in.telnetd
npmuser   9460  0.0  0.0 2576 1672 pts/2    S 08:01:46  0:00 -csh
npmuser  10000  0.0  0.1 5928 3504 ?        S 11:09:03  0:00 perl /opt/NPM/BOCO.NPM/DB/TaskCenter/daemon_monitor.pl
root     13500  0.0  0.1 6408 4072 ?        S   Mar 25  0:14 /usr/sbin/nsrmmd -n 2 -s wg-backup
root     13501  0.0  0.1 6480 4224 ?        S   Mar 25  0:53 /usr/sbin/nsrmmd -n 4 -s wg-backup
root     13505  0.0  0.1 6656 4408 ?        S   Mar 25  1:55 /usr/sbin/nsrmmd -n 9 -s wg-backup
root     13545  0.0  0.1 6952 4688 ?        S   Mar 25  4:55 /usr/sbin/nsrmmd -n 16 -s wg-backup
root     13550  0.0  0.1 7368 5128 ?        S   Mar 25  7:46 /usr/sbin/nsrmmd -n 18 -s wg-backup
root     14327  0.0  0.0 1720 1288 ?        S 14:49:34  0:00 rquotad
root     14503  0.0  0.0 1832 1448 ?        S 11:17:33  0:00 in.telnetd
informix 14505  0.0  0.0 2472 1576 pts/6    S 11:17:33  0:00 -csh
root     15029  0.0  0.0 1840 1424 ?        S   Mar 24  0:00 in.telnetd
root     15031  0.0  0.0  352   96 pts/12   S   Mar 24  0:00 -sh
informix 15093  0.0  0.0 1576 1072 pts/12   S   Mar 24  0:00 -csh
root     16208  0.0  0.0 1736 1088 ?        S 14:50:00  0:00 in.comsat
root     16661  0.0  0.0 1040  776 ?        S 14:51:18  0:00 sleep 60
root     16717  0.0  0.0  352  248 pts/6    S 11:20:50  0:00 -sh
root     18419  0.0  0.0 1832 1448 ?        S 10:38:42  0:00 in.telnetd
nmosuser 18421  0.0  0.0 1672 1416 pts/9    S 10:38:42  0:00 -csh
root     18614  0.0  0.0 3064 2032 ?        S   Nov 20  0:01 devfsadmd
root     20632  0.0  0.0 1832 1448 ?        S 08:28:02  0:00 in.telnetd
npmuser  20634  0.0  0.0 2488 1608 pts/16   S 08:28:02  0:00 -csh
nrmuser  23164  0.0  0.11692815136 ?        S   Mar 27 21:50 perl ZzSyncSvr.pl
root     23520  0.0  0.0 3560 2136 ?        S   Mar 21  0:00 rpc.ttdbserverd
root     24341  0.0  0.0 1832 1448 ?        S 08:37:19  0:00 in.telnetd
npmuser  24343  0.0  0.0 2592 1624 pts/1    S 08:37:19  0:00 -csh
root     24937  0.0  0.0 1832 1448 ?        S 10:43:38  0:00 in.telnetd
npmuser  24939  0.0  0.0 2480 1552 pts/10   S 10:43:38  0:00 -csh
root     25584  0.0  0.1 6992 4984 ?        S   May 08  1:56 /usr/sbin/nsrmmd -n 110 -s wg-backup
root     25981  0.0  0.0 1832 1448 ?        S 11:41:23  0:00 in.telnetd
root     25983  0.0  0.0  352  248 pts/11   S 11:41:23  0:00 -sh
root     26116  0.0  0.0 2704 2152 pts/11   S 11:41:31  0:00 bash
root     27480  0.0  0.0 1832 1448 ?        S 09:57:09  0:00 in.telnetd
npmuser  27482  0.0  0.0 2576 1600 pts/3    S 09:57:09  0:00 -csh
root     29199  0.0  0.0 1832 1448 ?        S 14:21:57  0:00 in.telnetd
npmuser  29202  0.0  0.0 2480 1560 pts/14   S 14:21:57  0:00 -csh
root     29472  0.0  0.0 1832 1448 ?        S 10:48:29  0:00 in.telnetd
nmosuser 29474  0.0  0.0 1672 1416 pts/5    S 10:48:29  0:00 -csh
nmosuser 29542  0.0  0.1 5296 3680 pts/5    S 10:48:46  0:00 dbaccess
npmuser  29590  0.0  0.1 4976 3352 pts/14   S 14:22:12  0:02 dbaccess npmdb load.sql
root     29752  0.0  0.0 1832 1448 ?        S 10:49:46  0:00 in.telnetd
nmosuser 29754  0.0  0.0 1672 1416 pts/18   S 10:49:46  0:00 -csh
nmosuser 29911  0.0  0.1 5296 3680 pts/18   S 10:49:57  0:00 dbaccess

论坛徽章:
0
19 [报告]
发表于 2006-05-11 14:53 |只看该作者
truss是自带的

论坛徽章:
0
20 [报告]
发表于 2006-05-11 14:57 |只看该作者
原帖由 ga0feng 于 2006-5-11 14:53 发表
truss是自带的

怎么用呢?有风险吗?
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP