]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[PATCH] aio: reorder kiocb structure elements to make sync iocb setup faster
authorBenjamin LaHaise <bcrl@kvack.org>
Sun, 8 Jan 2006 09:04:34 +0000 (01:04 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Mon, 9 Jan 2006 04:14:03 +0000 (20:14 -0800)
commit59d9136b9844d3a0376d93c945ab280decedb323
tree6c3eaa9f902ae983b96500a8d60720610da539a4
parentfb1697933a03ec47d794b38e2a4e3ccc2463fd22
[PATCH] aio: reorder kiocb structure elements to make sync iocb setup faster

Reorder members of the kiocb structure to make sync kiocb setup faster.  By
setting the elements sequentially, the write combining buffers on the CPU
are able to combine the writes into a single burst, which results in fewer
cache cycles being consumed, freeing them up for other code.  This results
in a 10-20KB/s[*] increase on the bw_unix part of LMbench on my test
system.

* The improvement varies based on what other patches are in the system,
  as there are a number of bottlenecks, so this number is not absolutely
  accurate.

Signed-off-by: Benjamin LaHaise <benjamin.c.lahaise@intel.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
include/linux/aio.h