kernel-ark/fs/gfs2
Steven Whitehouse fee852e374 [GFS2] Shrink gfs2_inode memory by half
Here is something I spotted (while looking for something entirely
different) the other day.

Rather than using a completion in each and every struct gfs2_holder,
this removes it in favour of hashed wait queues, thus saving a
considerable amount of memory both on the stack (where a number of
gfs2_holder structures are allocated) and in particular in the
gfs2_inode which has 8 gfs2_holder structures embedded within it.

As a result on x86_64 the gfs2_inode shrinks from 2488 bytes to
1912 bytes, a saving of 576 bytes per inode (no thats not a typo!).
In actual practice we get a much better result than that since
now that a gfs2_inode is under the 2048 byte barrier, we get two
per 4k slab page effectively halving the amount of memory required
to store gfs2_inodes.

Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
2007-02-05 13:37:11 -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] Shrink gfs2_inode memory by half 2007-02-05 13:37:11 -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] Shrink gfs2_inode memory by half 2007-02-05 13:37:11 -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] Remove max_atomic_write tunable 2007-02-05 13:37:08 -05:00
super.h
sys.c [GFS2] Remove max_atomic_write tunable 2007-02-05 13:37:08 -05:00
sys.h
trans.c
trans.h
util.c
util.h