alistair23-linux/include
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
..
acpi
asm-generic Merge Qualcom Hexagon architecture 2011-11-01 07:48:13 -07:00
crypto
drm treewide: use __printf not __attribute__((format(printf,...))) 2011-10-31 17:30:54 -07:00
keys
linux aio: allocate kiocbs in batches 2011-11-02 16:07:03 -07:00
math-emu
media Merge branch 'v4l_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media 2011-10-31 15:42:54 -07:00
misc
mtd
net treewide: use __printf not __attribute__((format(printf,...))) 2011-10-31 17:30:54 -07:00
pcmcia
rdma Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/roland/infiniband 2011-11-01 10:51:38 -07:00
rxrpc
scsi Merge git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi-misc-2.6 2011-10-28 16:44:18 -07:00
sound treewide: use __printf not __attribute__((format(printf,...))) 2011-10-31 17:30:54 -07:00
target
trace mm: change isolate mode from #define to bitwise type 2011-10-31 17:30:44 -07:00
video
xen treewide: use __printf not __attribute__((format(printf,...))) 2011-10-31 17:30:54 -07:00
Kbuild