kernel-ark/fs/gfs2
Steven Whitehouse 3699e3a44b [GFS2] Clean up/speed up readdir
This removes the extra filldir callback which gfs2 was using to
enclose an attempt at readahead for inodes during readdir. The
code was too complicated and also hurts performance badly in the
case that the getdents64/readdir call isn't being followed by
stat() and it wasn't even getting it right all the time when it
was.

As a result, on my test box an "ls" of a directory containing 250000
files fell from about 7mins (freshly mounted, so nothing cached) to
between about 15 to 25 seconds. When the directory content was cached,
the time taken fell from about 3mins to about 4 or 5 seconds.

Interestingly in the cached case, running "ls -l" once reduced the time
taken for subsequent runs of "ls" to about 6 secs even without this
patch. Now it turns out that there was a special case of glocks being
used for prefetching the metadata, but because of the timeouts for these
locks (set to 10 secs) the metadata was being timed out before it was
being used and this the prefetch code was constantly trying to prefetch
the same data over and over.

Calling "ls -l" meant that the inodes were brought into memory and once
the inodes are cached, the glocks are not disposed of until the inodes
are pushed out of the cache, thus extending the lifetime of the glocks,
and thus bringing down the time for subsequent runs of "ls"
considerably.

Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
2007-02-05 13:37:04 -05:00
..
locking
acl.c
acl.h
bmap.c
bmap.h
daemon.c
daemon.h
dir.c [GFS2] Clean up/speed up readdir 2007-02-05 13:37:04 -05:00
dir.h [GFS2] Clean up/speed up readdir 2007-02-05 13:37:04 -05:00
eaops.c
eaops.h
eattr.c
eattr.h
gfs2.h
glock.c [GFS2] Clean up/speed up readdir 2007-02-05 13:37:04 -05:00
glock.h [GFS2] Clean up/speed up readdir 2007-02-05 13:37:04 -05:00
glops.c
glops.h
incore.h [GFS2] Clean up/speed up readdir 2007-02-05 13:37:04 -05:00
inode.c [GFS2] make gfs2_change_nlink_i() static 2007-02-05 13:36:49 -05:00
inode.h [GFS2] make gfs2_change_nlink_i() static 2007-02-05 13:36:49 -05:00
Kconfig
lm.c [GFS2] don't try to lockfs after shutdown 2007-02-05 13:35:44 -05:00
lm.h
locking.c
log.c
log.h
lops.c
lops.h
main.c
Makefile
meta_io.c
meta_io.h
mount.c
mount.h
ondisk.c
ops_address.c [GFS2] Add writepages for "data=writeback" mounts 2007-02-05 13:37:01 -05:00
ops_address.h
ops_dentry.c
ops_dentry.h
ops_export.c [GFS2] Clean up/speed up readdir 2007-02-05 13:37:04 -05:00
ops_export.h
ops_file.c [GFS2] Clean up/speed up readdir 2007-02-05 13:37:04 -05:00
ops_file.h
ops_fstype.c [PATCH] Revert bd_mount_mutex back to a semaphore 2007-01-11 18:18:21 -08:00
ops_fstype.h
ops_inode.c [GFS2] Fix gfs2_rename deadlock 2007-02-05 13:36:31 -05:00
ops_inode.h
ops_super.c [GFS2] Fix ordering of page disposal vs. glock_dq 2007-02-05 13:36:24 -05:00
ops_super.h
ops_vm.c
ops_vm.h
quota.c
quota.h
recovery.c
recovery.h
rgrp.c
rgrp.h
super.c [GFS2] Clean up/speed up readdir 2007-02-05 13:37:04 -05:00
super.h
sys.c [GFS2] Clean up/speed up readdir 2007-02-05 13:37:04 -05:00
sys.h
trans.c
trans.h
util.c
util.h