The FreeBSD Diary |
(TM) | Providing practical examples since 1998If you buy from Amazon USA, please support us by using this link. |
rawio - testing device performance
10 August 1999
|
After I installed vinum, I wanted to compare the
performance of the vinum and non-vinum volumes. I was told about
Greg Lehay's benchmark program, rawio. From man rawio: rawio tests the speed of the low-level character I/O device special in a concurrent environment. It is intended for comparisons of storage devices on a single system, and is not suited for cross-platform performance testing. rawio is available from ftp://ftp.lemis.com/pub/rawio.tar.gz |
Installing rawio
|
First I fetched the tarball. The -P specifies passive mode as I am behind a
firewall. I placed this tarball in /usr/ports/benchmarks/rawio and
untar'd it, and installed itcd /usr/ports/benchmark mkdir rawio fetch -P ftp://ftp.lemis.com/pub/rawio.tar.gz tar xrvf rawio.tar.gzz make make install |
running rawio
|
rawio has the potential to delete data from your disks. Do not run it
on volumes which contain precious data unless you have read an understood the man pages
first. In particular, the following tests in this article are destructive. Use
with caution. Here are the tests for the single disks. Do not run these tests on devices which are mounted. It makes more sense to run these tests on the raw device rather than the # rawio -a /dev/rda1s1e Random read Sequential read Random write Sequential write ID K/sec /sec K/sec /sec K/sec /sec K/sec /sec anon 874.8 54 2683.1 164 868.0 54 1380.3 84 Here is the output from the vinum volume I created. # rawio -a -v 1 /dev/vinum/test Test ID K/sec /sec %User %Sys %Total RR anon 480.8 30 0.2 18.6 18.9 16384 SR anon 5001.7 305 0.9 88.8 89.7 16384 RW anon 478.2 29 0.2 15.4 15.6 16384 SW anon 1244.2 76 0.2 53.6 53.7 16384 |