]> git.baikalelectronics.ru Git - kernel.git/commit
fs: prefetch inode data in dcache lookup
authorNick Piggin <npiggin@kernel.dk>
Fri, 7 Jan 2011 06:50:08 +0000 (17:50 +1100)
committerNick Piggin <npiggin@kernel.dk>
Fri, 7 Jan 2011 06:50:32 +0000 (17:50 +1100)
commit5b11aff9118b15da4f3f3ae947ae4dfef877c40a
treeb2f5edeebc568c3fff4afd799801e9e605b99efc
parent91d95590fea08a73d77c7da783ce05242c347918
fs: prefetch inode data in dcache lookup

This makes single threaded git diff -1.25% +/- 0.05% elapsed time on my
2s12c24t Westmere system, and -0.86% +/- 0.05% on my 2s8c Barcelona, by
prefetching the important first cacheline of the inode in while we do the
actual name compare and other operations on the dentry.

There was no measurable slowdown in the single file stat case, or the creat
case (where negative dentries would be common).

Signed-off-by: Nick Piggin <npiggin@kernel.dk>
fs/dcache.c