linux-ext4.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/6] Shrinking the size of ext4_inode_info
@ 2011-01-05  1:01 Theodore Ts'o
  2011-01-05  1:01 ` [PATCH 1/6] ext4: replace i_delalloc_reserved_flag with EXT4_STATE_DELALLOC_RESERVED Theodore Ts'o
                   ` (5 more replies)
  0 siblings, 6 replies; 21+ messages in thread
From: Theodore Ts'o @ 2011-01-05  1:01 UTC (permalink / raw)
  To: Ext4 Developers List; +Cc: Theodore Ts'o

The following set of patches shrink the size of ext4_inode_info, which
is present in memory for every single ext4 inode in the inode cache.
For example, on one of my machines I currently have 172261 ext4 inodes
in my cache, which represents 161 megabytes of memory.  On an x86_64
machine, these patches allow me to shrink the ext4 in-core inode size
from 952 bytes to 872 bytes.  This represents a 8.4% decrease.  Using
the SLUB allocator, this means we can now fit 18 inodes into an order 4
(16384 bytes) slab, instead of the previous 17 inodes.  This results in
an effective decrease of 5.6% of memory consumption by the ext4 inode
cache.

It would be possible to further slim down the ext4_inode_cache by
another 100 bytes or so, by breaking the ext4_inode_info into the
portion of the inode required a file is opened for writing, and
everything else.  That would be a fairly disruptive change, though, so
I'll save that for another time.

						- Ted

Theodore Ts'o (6):
  ext4: replace i_delalloc_reserved_flag with
    EXT4_STATE_DELALLOC_RESERVED
  ext4: Use ext4_lblk_t instead of sector_t for logical blocks
  ext4: Drop ec_type from the ext4_ext_cache structure
  ext4: reorder ext4_inode_info structure elements to remove unneeded
    padding
  ext4: Drop i_state_flags on architectures with 64-bit longs
  ext4: Dynamically allocate the jbd2_inode in ext4_inode_info as
    necessary

 fs/ext4/balloc.c       |    3 ++-
 fs/ext4/ext4.h         |   36 +++++++++++++++++++++++-------------
 fs/ext4/ext4_extents.h |    8 ++------
 fs/ext4/ext4_jbd2.h    |    2 +-
 fs/ext4/extents.c      |   39 ++++++++++++++++-----------------------
 fs/ext4/file.c         |   19 +++++++++++++++++++
 fs/ext4/ialloc.c       |    2 +-
 fs/ext4/inode.c        |   29 ++++++++++++++++++-----------
 fs/ext4/mballoc.c      |    5 +++--
 fs/ext4/super.c        |   17 +++++++----------
 fs/jbd2/journal.c      |   20 +++++++++++++-------
 include/linux/jbd2.h   |   20 ++++++++++++++++++--
 12 files changed, 123 insertions(+), 77 deletions(-)

-- 
1.7.3.1


^ permalink raw reply	[flat|nested] 21+ messages in thread

end of thread, other threads:[~2011-01-11 21:50 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-05  1:01 [PATCH 0/6] Shrinking the size of ext4_inode_info Theodore Ts'o
2011-01-05  1:01 ` [PATCH 1/6] ext4: replace i_delalloc_reserved_flag with EXT4_STATE_DELALLOC_RESERVED Theodore Ts'o
2011-01-05  1:01 ` [PATCH 2/6] ext4: Use ext4_lblk_t instead of sector_t for logical blocks Theodore Ts'o
2011-01-05  1:01 ` [PATCH 3/6] ext4: Drop ec_type from the ext4_ext_cache structure Theodore Ts'o
2011-01-05  1:01 ` [PATCH 4/6] ext4: reorder ext4_inode_info structure elements to remove unneeded padding Theodore Ts'o
2011-01-05  1:01 ` [PATCH 5/6] ext4: Drop i_state_flags on architectures with 64-bit longs Theodore Ts'o
2011-01-05 18:43   ` Andreas Dilger
2011-01-05 20:29     ` Ted Ts'o
2011-01-06  7:23       ` Andreas Dilger
2011-01-06 17:55         ` Ted Ts'o
2011-01-06 21:15           ` [PATCH] " Theodore Ts'o
2011-01-05  1:01 ` [PATCH 6/6] ext4: Dynamically allocate the jbd2_inode in ext4_inode_info as necessary Theodore Ts'o
2011-01-05  9:26   ` Amir Goldstein
2011-01-05 20:21     ` Ted Ts'o
2011-01-05 19:26   ` Andreas Dilger
2011-01-05 20:21     ` Ted Ts'o
2011-01-06 22:14     ` Ted Ts'o
2011-01-07  2:36       ` [PATCH -v2] " Theodore Ts'o
2011-01-07 20:46         ` Amir Goldstein
2011-01-07 22:40           ` Ted Ts'o
2011-01-11 21:50     ` [PATCH 6/6] " Ted Ts'o

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).