xfs
[Top] [All Lists]

PARTIAL TAKE - shrink xfs inode cache size

To: linux-xfs@xxxxxxxxxxx
Subject: PARTIAL TAKE - shrink xfs inode cache size
From: Steve Lord <lord@xxxxxxx>
Date: Fri, 2 May 2003 06:17:53 -0500
Sender: linux-xfs-bounce@xxxxxxxxxxx
XFS does not use the union at the end of the inode for its fs private
data. There is 160 bytes per inode here which is wasted. Since we
manage our own inode allocations, we can do something about this
and actually not allocate that space. Saved 10Mbytes of space on
my machine this morning after nightly cron jobs had pulled inodes
into memory.


Date:  Fri May  2 04:17:20 PDT 2003
Workarea:  jen.americas.sgi.com:/src/lord/xfs-linux.2.4

The following file(s) were checked into:
  bonnie.engr.sgi.com:/isms/slinx/2.4.x-xfs


Modid:  2.4.x-xfs:slinx:147730a
linux/fs/xfs/linux/xfs_super.c - 1.252
        - Shrink the size of the slab cache used for xfs inodes to skip
          the union at the end of the inode. Do our own inode initialization
          to avoid the memset of the complete inode in the common code.



<Prev in Thread] Current Thread [Next in Thread>