On Fri, 26 Oct 2007 21:33:40 +0200
Ingo Molnar <mingo@xxxxxxx> wrote:
* Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> wrote:
Longer might be less inaccurate, but without flushing the last data you really don't get best accuracy, you just reduce the error. Clearly doing fdatasync() is best, since other i/o caused by sync() can skew the results.so a final 'sync' should be added to the test too, and the time it takes factored into the bandwidth numbers?
That's one way of doing it. Or just run the test for a "long" time. ie:
much longer than (total-memory / disk-bandwidth). Probably the latter
will give a more accurate result, but it can get boring.