Files
tegra-linux-noble/include/linux
Jeff Moyer 080d676de0 aio: allocate kiocbs in batches
In testing aio on a fast storage device, I found that the context lock
takes up a fair amount of cpu time in the I/O submission path.  The reason
is that we take it for every I/O submitted (see __aio_get_req).  Since we
know how many I/Os are passed to io_submit, we can preallocate the kiocbs
in batches, reducing the number of times we take and release the lock.

In my testing, I was able to reduce the amount of time spent in
_raw_spin_lock_irq by .56% (average of 3 runs).  The command I used to
test this was:

   aio-stress -O -o 2 -o 3 -r 8 -d 128 -b 32 -i 32 -s 16384 <dev>

I also tested the patch with various numbers of events passed to
io_submit, and I ran the xfstests aio group of tests to ensure I didn't
break anything.

Signed-off-by: Jeff Moyer <jmoyer@redhat.com>
Cc: Daniel Ehrenberg <dehrenberg@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2011-11-02 16:07:03 -07:00
..
2011-10-26 23:15:28 +02:00
2011-09-13 15:42:30 -04:00
2011-11-02 16:07:03 -07:00
2011-10-26 15:43:25 -04:00
2011-09-27 09:25:02 +01:00
2011-10-31 17:30:44 -07:00
2011-08-25 16:25:33 -07:00
2011-10-02 00:19:34 +02:00
2011-09-14 15:24:51 -04:00
2011-10-25 09:59:04 +02:00
2011-10-30 04:43:30 -04:00
2011-09-27 18:08:04 +02:00
2011-09-25 19:52:59 +03:00
2011-10-30 12:24:05 +02:00
2011-09-16 19:20:20 -04:00
2011-11-02 16:06:57 -07:00
2011-11-02 16:06:58 -07:00
2011-09-27 08:12:33 -07:00
2011-10-31 14:03:22 +01:00
2011-11-02 16:07:02 -07:00
2011-10-31 17:30:47 -07:00
2011-08-16 00:16:49 -07:00
2011-10-31 17:30:44 -07:00
2011-11-02 16:07:02 -07:00
2011-10-03 14:01:21 -04:00
2011-08-23 10:10:38 -07:00
2011-09-26 15:51:10 -07:00
2011-11-02 16:07:02 -07:00
2011-10-24 02:07:21 -04:00
2011-09-14 15:24:51 -04:00