Re: io_submit() taking a long time to return ?

From: Zach Brown
Date: Thu Jul 13 2006 - 11:43:01 EST



> By reading the aio documentation, we expected the io_submit call to
> always return immediately,

Sadly, that isn't guaranteed.

> but in our preliminary tests we noticed that
> sometimes this call can take a long time (more than 10 ms, even
> sometimes more than 30 ms !!).

If I had to guess I'd suspect that these delays are due to sync block
mapping lookups in the submit path. Do these tend to show up the first
time you read a file?

- 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/