352926 发表于 2013-10-18 14:53

求助关于jbd2占用IO的问题

原因:连vim 保存:wq 都卡,要等待个3s左右才能保存。ls列出目录偶尔也会卡住。最影响的就是写入要等待。

公司web机:
Linux svr-web 2.6.32-131.0.15.el6.x86_64 #1 SMP Sat Nov 12 15:11:58 CST 2011 x86_64 x86_64 x86_64 GNU/Linux
CentOS 6.3
服务器raid 10阵列
安装 nginx php

使用iotop -oa 查看

Total DISK READ: 0.00 B/s | Total DISK WRITE: 86.28 K/s
TIDPRIOUSER   DISK READDISK WRITESWAPIN   IO>    COMMAND                                                                           
1110 be/3 root          0.00 B   84.00 K0.00 % 66.68 %
512 be/3 root          0.00 B   44.00 K0.00 %0.52 %

jbd2时不时飚上99%

使用iostat 查看
Linux 2.6.32-131.0.15.el6.x86_64 (nala-svr-web)         2013年10月18日         _x86_64_        (8 CPU)

avg-cpu:%user   %nice %system %iowait%steal   %idle
               1.05    0.00    0.26       6.35       0.00   92.35

Device:         rrqm/s   wrqm/s   r/s   w/s   rsec/s   wsec/s   avgrq-sz avgqu-sz   awaitsvctm    %util
sdb               0.01       2.97      0.01    3.61   0.20    50.92   14.12   1.11      307.45 142.5851.63
sda               0.10       23.45    0.27   23.23    20.18   332.85   15.02   0.35       14.70    1.47   3.45
dm-0            0.00   0.00      0.35   45.33    19.99   331.64    7.70      0.60       13.11    0.73   3.35
dm-1            0.00   0.00      0.00    0.00   0.00   0.02       8.00      0.00      5.81   0.26   0.00
dm-2            0.00   0.00      0.03    6.55   0.38    52.12      7.98       1.43      217.8478.52   51.65

# df -lh
文件系统              容量已用可用 已用%% 挂载点
/dev/mapper/vg_nalasvrweb-lv_root
                     50G   24G   23G52% /
tmpfs               3.8G   03.8G   0% /dev/shm
/dev/sda1             485M   35M425M   8% /boot
/dev/mapper/vg_nalasvrweb-lv_home
                      537G   87G423G18% /home

谷歌了相关资料:
http://ubuntuforums.org/showthread.php?t=2170496
(Thanks - changing both the mount options in fstab and specifying async in /etc/exports solved the problem. As far as I can tell, changing the partition mount options was not enough.)
貌似人家解决了,但是我没有设置过,怕设置个不好,服务器宕了,那直接是损失。。。不敢。。求高人指点。
页: [1]
查看完整版本: 求助关于jbd2占用IO的问题