]> git.baikalelectronics.ru Git - kernel.git/commit
ext4: Use readahead when reading an inode from the inode table
authorTheodore Ts'o <tytso@mit.edu>
Fri, 10 Oct 2008 03:53:47 +0000 (23:53 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 10 Oct 2008 03:53:47 +0000 (23:53 -0400)
commiteaeff9dd96881f1fd74f23e4415f1e70003f26b7
treee696b60cc103f23838b5c14d8d397f692abffbc3
parent69c14cd8c5e714e54cf6175c3d805ef058f3c80a
ext4: Use readahead when reading an inode from the inode table

With modern hard drives, reading 64k takes roughly the same time as
reading a 4k block.  So request readahead for adjacent inode table
blocks to reduce the time it takes when iterating over directories
(especially when doing this in htree sort order) in a cold cache case.
With this patch, the time it takes to run "git status" on a kernel
tree after flushing the caches via "echo 3 > /proc/sys/vm/drop_caches"
is reduced by 21%.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Documentation/filesystems/ext4.txt
Documentation/filesystems/proc.txt
fs/ext4/ext4.h
fs/ext4/ext4_sb.h
fs/ext4/inode.c
fs/ext4/super.c