summaryrefslogtreecommitdiff
path: root/diskutil.c
AgeCommit message (Collapse)Author
2010-06-21Fix disk util for slavesJens Axboe
Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
2010-06-21Do diskutil check earlierJens Axboe
Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
2009-10-01Revert "Fix disk utilization for md/dm slaves"Jens Axboe
This reverts commit f03f8e473b7c8a5c4ed2de0b99717cf75521bf69.
2009-10-01Fix disk utilization for md/dm slavesJens Axboe
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
2009-09-11Cleanup diskutil.cJens Axboe
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
2009-09-11Bug fix: handles disk device used multiple timesAlan D. Brunelle
There were issues in having the same underlying device being referenced multiple times (via different paths) when reporting storage I/O statistics. As an example: having two (or more) LVM2/DM volumes crafted out of the same MD array. This patch simply skips over any devices previously seen. Signed-off-by: Alan D. Brunelle <alan.brunelle@hp.com> Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
2009-06-03Split off diskutil includeJens Axboe
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
2009-05-27Increase accuracy of disk utility percentageJens Axboe
If a job file contains more than one job that works on separate disks, then the job that finishes first will get more idle time accounted to it. Fix this by only doing disk util stats when we have files open on that device. Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
2008-09-30Fix missing initialization of merge/io countsJens Axboe
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
2008-09-30Aggregate slave device stats into the stats for master.Shehjar Tikoo
But do so by adding new fields in the stats line. We dont want the existing output format to get clobbered. The new fields in master device line which contain aggregated stats start with "aggr". Signed-off-by: Shehjar Tikoo <shehjart@gelato.unsw.edu.au> Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
2008-09-30Add support to display slave device stats for software RAIDs.Shehjar Tikoo
When running tests on a device created using mdadm, the relevant disk statistics must also come from the individual disks that constitute the RAID, because the software RAID device is just a virtual device. This patch goes through the 'slaves' directory in the software RAID device's directory in /sys/block, gets a list of all the slave devices and creates a master-slave relationship between the virtual device and the actual disks. The individual slave disks' stats are displayed along with the master's disk stats at the end of the test. Signed-off-by: Shehjar Tikoo <shehjart@gelato.unsw.edu.au> Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
2008-06-06Linux sysfs change broke fio disk lookupJens Axboe
/sys/block/<dev> is now a sym link to the real path, which broke our disk lookup. Fix it. Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
2008-06-02Rename list_* function and file to flist_ to avoid conflict with FreeBSDJens Axboe
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
2008-05-30Seperate status timer setup from disk util timerJens Axboe
It's still the same timer and shared, but move it out of diskutil so we get proper status reporting on non-Linux. We also need to rearm the signal handlers on each signal. Move this to sigaction() next. Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
2008-03-07Fix bad sscan() -> scanf() conversionJens Axboe
Caused fio to stall waiting for disk updates. Also add --debug=diskutil debug option, to trace what diskutil is doing. Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
2008-03-06Style fixupsJens Axboe
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
2007-04-26Disk stat improvementsJens Axboe
Add an option to disable the disk stats. And only dump the disk stat header, if we actually have stats to show. Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
2007-04-17Better checks for disk util initJens Axboe
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
2007-04-03Fix sysfs_root assignment with multiple identical devicesJens Axboe
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
2007-04-02Seperate disk util code out of fio.cJens Axboe
It's only used if FIO_HAVE_DISK_UTIL is set. Signed-off-by: Jens Axboe <jens.axboe@oracle.com>