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
..
2006-11-30 10:37:32 -05:00
2006-11-30 10:37:32 -05:00
2006-11-30 10:35:49 -05:00
2006-10-20 09:13:40 -04:00
2006-11-30 10:36:42 -05:00
2007-02-05 13:37:04 -05:00
2007-02-05 13:37:04 -05:00
2006-11-30 10:34:14 -05:00
2006-11-30 10:34:52 -05:00
2007-02-05 13:37:04 -05:00
2006-11-30 10:36:42 -05:00
2006-12-15 12:51:51 -05:00
2007-02-05 13:35:44 -05:00
2006-11-30 10:34:55 -05:00
2006-11-30 10:33:14 -05:00
2006-12-07 08:39:25 -08:00
2007-02-05 13:37:04 -05:00
2007-02-05 13:37:04 -05:00
2007-02-05 13:36:31 -05:00
2006-12-05 13:34:17 -05:00
2006-10-12 17:10:15 -04:00
2007-02-05 13:37:08 -05:00
2007-02-05 13:37:08 -05:00
2006-09-05 10:39:21 -04:00
2006-12-07 08:39:25 -08:00