Andrew Morton wrote:
On Fri, 26 Oct 2007 21:33:40 +0200
Ingo Molnar <[EMAIL PROTECTED]> wrote:
* Andrew Morton <[EMAIL PROTECTED]> wrote:
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.
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.
--
Bill Davidsen <[EMAIL PROTECTED]>
"We have more to fear from the bungling of the incompetent than from
the machinations of the wicked." - from Slashdot
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/