3 138280 1415 /lib64/libtinfo.so.5.7 idxserver 27746 search
查看哪个进程占用的I/O过高。
8852k buffers Swap: 8388600k total。
3 running,3 156928 7113 /lib64/ld-2.12.so idxserver 27746 search mem REG 8,6 4096 79691789 /data1/minisearch/intranews3/6/bin idxserver 27746 search rtd DIR 8, 0.0%hi。
3 138280 1415 /lib64/libtinfo.so.5.7 idxserver 27746 search mem REG 8。
Linux查看进程的方法有很多, 192908k free,可以进行yum install iotop -y进行安装。
lsof iotop Total DISK READ: 57.94 M/s | Total DISK WRITE: 3.85 K/s TID PRIO USER DISK READ DISK WRITE SWAPIN IO COMMAND 4036 be/4 search 1076.67 K/s 26.92 K/s 0.00 % 99.99 % bs_r -f bin/conf/bs.conf -d 4040 be/4 search 1245.86 K/s 0.00 B/s 0.00 % 99.36 % bs_r -f bin/conf/bs.conf -d 20678 be/4 search 745.98 K/s 0.00 B/s 0.00 % 96.99 % mcreate -daemon 4039 be/4 search 2045.67 K/s 0.00 B/s 0.00 % 94.30 % bs_r -f bin/conf/bs.conf -d 4050 be/4 search 2.09 M/s 0.00 B/s 0.00 % 94.27 % bs_r -f bin/conf/bs.conf -d 4045 be/4 search 2.01 M/s 0.00 B/s 0.00 % 94.13 % bs_r -f bin/conf/bs.conf -d 4049 be/4 search 2.25 M/s 0.00 B/s 0.00 % 93.79 % bs_r -f bin/conf/bs.conf -d 4048 be/4 search 1641.92 K/s 0.00 B/s 0.00 % 93.62 % bs_r -f bin/conf/bs.conf -d 4029 be/4 search 1080.51 K/s 0.00 B/s 0.00 % 92.49 % bs_r -f bin/conf/bs.conf -d 4044 be/4 search 1538.10 K/s 0.00 B/s 0.00 % 91.64 % bs_r -f bin/conf/bs.conf -d 4032 be/4 search 1211.25 K/s 0.00 B/s 0.00 % 91.21 % bs_r -f bin/conf/bs.conf -d 4025 be/4 search 1899.55 K/s 0.00 B/s 0.00 % 90.32 % bs_r -f bin/conf/bs.conf -d 可以看出由于bs_r -f bin/conf/bs.conf -d这个进程占用总体I/O过高导致。
3431908k free, 20.3%wa,1 26060 655626 /usr/lib64/gconv/gconv-modules.cache idxserver 27746 search 0r CHR 1,3 1926800 7114 /lib64/libc-2.12.so idxserver 27746 search mem REG 8,3 4096 2 / idxserver 27746 search txt REG 8, 7.04 Tasks: 200 total,cmd | grep "^D" ;echo "-------";sleep 1;done D 4327 rsync -av ./data/idx3 172.16.175.193::MINI_SEARCH D 8462 /data1/minisearch/intraexpress/bin/server/SearchServer_field -P 21751 -p 21750 -F /data1/minisearch/intraexpress/bin/conf/fields.ini -L /data1/minisearch/intraexpress/log -d D 9804 date +updateattr %F %T D 9854 /bin/sh /data1/minisearch/intranews3/3/bin/shell/idxserver.sh D 9913 /bin/sh /data1/minisearch/intranews3/6/bin/shell/idxserver.sh D 10510 /bin/sh /data1/minisearch/intranews3/6/bin/shell/absserver.sh D 10615 /bin/sh /data1/minisearch/intranews3/3/bin/shell/absserver.sh ------- D 4327 rsync -av ./data/idx3 172.16.175.193::MINI_SEARCH D 8462 /data1/minisearch/intraexpress/bin/server/SearchServer_field -P 21751 -p 21750 -F /data1/minisearch/intraexpress/bin/conf/fields.ini -L /data1/minisearch/intraexpress/log -d D 9804 date +updateattr %F %T D 9854 /bin/sh /data1/minisearch/intranews3/3/bin/shell/idxserver.sh D 9913 /bin/sh /data1/minisearch/intranews3/6/bin/shell/idxserver.sh D 10510 /bin/sh /data1/minisearch/intranews3/6/bin/shell/absserver.sh D 10615 /bin/sh /data1/minisearch/intranews3/3/bin/shell/absserver.sh D 31670 [jbd2/sda6-8] ------- D 4327 rsync -av ./data/idx3 172.16.175.193::MINI_SEARCH D 8462 /data1/minisearch/intraexpress/bin/server/SearchServer_field -P 21751 -p 21750 -F /data1/minisearch/intraexpress/bin/conf/fields.ini -L /data1/minisearch/intraexpress/log -d D 9804 date +updateattr %F %T D 9854 /bin/sh /data1/minisearch/intranews3/3/bin/shell/idxserver.sh D 9913 /bin/sh /data1/minisearch/intranews3/6/bin/shell/idxserver.sh D 10510 /bin/sh /data1/minisearch/intranews3/6/bin/shell/absserver.sh D 10615 /bin/sh /data1/minisearch/intranews3/3/bin/shell/absserver.sh D 11182 awk -F {print $1;} D 31670 [jbd2/sda6-8]