no- count them up above.
without O_DIRECT i was doing: 64000 x 8192 = 524288000 bytes
with O_DIRECT i was doing: 5000 x 1048576 = 524288000 bytes.
ie. same amount of data.
regardless, the "mbyte/sec" is calculated at the very end.
>Also I would suggest to measure the time taken by the whole workload, not only
>the time for read/write syscalls.
the time taken for the whole workload _is_ calculated at the very end of
the workload. that way and "readahead" doesn't have an unfair advantage.
i also have gettimeofday() calls to measure latency on a per-read or
per-write basis
...
>One thing I would also recommend is to write a threaded version of the
>program,
>that reads or writes to all the /dev/sd disks simultaneously, first w/
>O_DIRECT
>then w/o O_DIRECT. The reason is that currently you aren't using all the disks
>at once with O_DIRECT due the lack of async-io
i've thought about doing that - shame that there isn't an async version of
read(). the hard part is that i want to keep the disks at roughly the same
"block" at the same time, so there will still need to be some
syncronization of threads.
otherwise, basic SCSI id priority means that it won't be fair across all
disks. (remeber that i'm also attempting to measure latency)
...
>Since you "stripe" by hand in all disks you do a different workload than my
>previous benchs and you definitely want to keep all the harddisk running
>at the
>same time. I would also suggest to benchmark a single disk, to see if there is
>still such a big performance difference (again: including the cost outside the
>syscalls too).
a single-disk means we hit the performance limits of a single disk
spindle. ie. around 45mbyte/sec sustained throughput.
if you don't think there's any real overhead in the MD driver, i'll just
use that instead for now. (raid-0)
>Thanks for the interesting big-iron number-feedback :)
kinda fun. :-)
cheers,
lincoln.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/