Harddisk performance

Hi,

I am using Neutrino 6.21. Is there any command that I can use to show the
percentage of disk I/O idle time? Thanks.

JS wrote:

I am using Neutrino 6.21. Is there any command that I can use to show the
percentage of disk I/O idle time? Thanks.

Not really. You could program something using the DCMD_FSYS_STATISTICS
devctl (see <sys/dcmd_blk.h> and <sys/fs_stats.h>). If you issue that
against the appropriate block device (eg “/dev/hd0”), and then sum the
s_buf_rphys + s_buf_wphys + s_buf_readahead + s_buf_direct fields, that
is the number of sectors physically transferred to/from the disk. If
you were to poll every second or so, then the difference (when scaled to
sector size) would give you the MB/sec the disk was doing. This is
what the disk icon in the shelf load meter in 6.3 is doing, for example.
Don’t know how you’d translate that to idle time, since there is no
way to query the disk/hardware for what the supposed maximum is (you
could make a theroetical bound based on UDMA mode/cable/etc?).