I need to get iostat running on my server. So, i've instaled sysstats. But it seems that iostat doesn't working anyway. I've done some simple test:
Firstly, i've checked stats via iostats:
Then i started to copying 100MB file from /dev/zero to file on disk.Server linux # iostat -k
Linux 2.6.37-gentoo-r4 (Server) 05/19/11 _i586_ (1 CPU)
avg-cpu: %user %nice %system %iowait %steal %idle
6.66 0.00 1.65 2.02 0.00 89.67
Device: tps kB_read/s kB_wrtn/s kB_read kB_wrtn
sda 0.00 0.00 0.00 160 0
sdb 1.95 16.40 17.57 5139802 5505604
While system was copying the file, i've checked what iostat returns:
Almost no difference!Server linux # iostat -k
Linux 2.6.37-gentoo-r4 (Server) 05/19/11 _i586_ (1 CPU)
avg-cpu: %user %nice %system %iowait %steal %idle
6.66 0.00 1.65 2.02 0.00 89.67
Device: tps kB_read/s kB_wrtn/s kB_read kB_wrtn
sda 0.00 0.00 0.00 160 0
sdb 1.95 16.40 17.91 5139814 5614576
Does iostat some special kernel config?
I've found that kernel should be compiled with CONFIG_BLK_STATS=y but it seems to be deprecated in 2.6 kernel line
PS: /dev/sdb is connected to server via USB to ATA converter



