]> git.baikalelectronics.ru Git - kernel.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)
commit9d60e5da9933c55c4eeb662aa363a7f1b01960df
tree6c3eaa9f902ae983b96500a8d60720610da539a4
parent15de21fd92824b4682309be54848a4e8b17248f8
[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