Re: [RFC][PATCH] Make io_submit non-blocking

From: Zach Brown
Date: Thu Jul 26 2012 - 17:43:28 EST


On Fri, Jul 27, 2012 at 01:22:10AM +0530, Ankit Jain wrote:

> I should probably be doing better tests, any suggestions on what or
> how I can test?

Well, is the test actually *doing* anything with these IOs?

Calling io_submit() and then immediately waiting for completion is the
best case for offloading work to threads inside io_submit(). It's
likely that the kernel thread will then get a chance to run and submit
the IO and you won't have lost much time since the io_submit() queued
the work.

So try saturating the cpus while the tests are running. Give the kernel
aio submission threads some competition for run time on the cpus.

Maybe with the cpuio bits of fio? I haven't used that myself but the
description of it in its README/HOWTO files are using all the right
words :).

- z
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/