From: Theodore Ts'o <tytso@mit.edu>
To: linux-kernel@vger.kernel.org
Cc: linux-fsdevel@vger.kernel.org, Theodore Ts'o <tytso@mit.edu>
Subject: [RFC PATCH 0/5] Put struct inode on a diet
Date: Thu, 21 May 2009 16:00:58 -0400 [thread overview]
Message-ID: <1242936063-31689-1-git-send-email-tytso@mit.edu> (raw)
These patches attempt to slim down struct inode to reduce the overhead
of storing cached inodes. A typical Linux system has hundreds of
thousands of inodes cached, if not more, so reducing the inode size is a
high leverage thing to do. For example these patches save 24 bytes, or
a little over 4% of an inode (with no debugging enabled) on an x86_64
machine. But on a system with 160,000 inodes in its inode cache, this
might mean a difference of six and half megabytes of physical memory
(once SLAB rounding issues are taken into account).
Theodore Ts'o (5):
fs: i_flags and i_state in struct inode only need to be unsigned
short
fs: Remove i_cindex from struct inode
fs: Slim down inode by only using an unsigned int for i_dnotify_mask
fs: Rearrange inode structure elements to avoid waste due to padding
Dump the inode structure (for debugging purposes only)
drivers/ieee1394/dv1394.c | 5 +-
drivers/ieee1394/ieee1394_core.h | 5 ++-
fs/Makefile | 1 +
fs/char_dev.c | 14 ++++++-
fs/inode-struct-dumper.c | 87 ++++++++++++++++++++++++++++++++++++++
include/linux/cdev.h | 2 +
include/linux/dnotify.h | 2 +-
include/linux/fs.h | 9 ++--
8 files changed, 115 insertions(+), 10 deletions(-)
create mode 100644 fs/inode-struct-dumper.c
next reply other threads:[~2009-05-21 20:01 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-05-21 20:00 Theodore Ts'o [this message]
2009-05-21 20:00 ` [PATCH 1/5] fs: i_flags and i_state in struct inode only need to be unsigned short Theodore Ts'o
2009-05-21 20:01 ` [PATCH 2/5] fs: Remove i_cindex from struct inode Theodore Ts'o
2009-05-21 20:01 ` [PATCH 3/5] fs: Slim down inode by only using an unsigned int for i_dnotify_mask Theodore Ts'o
2009-05-21 20:01 ` [PATCH 4/5] fs: Rearrange inode structure elements to avoid waste due to padding Theodore Ts'o
2009-05-21 20:01 ` [PATCH 5/5] Dump the inode structure (for debugging purposes only) Theodore Ts'o
2009-05-21 20:09 ` Matthew Wilcox
2009-05-21 20:28 ` Theodore Tso
2009-05-21 20:30 ` [PATCH 2/5] fs: Remove i_cindex from struct inode Stefan Richter
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1242936063-31689-1-git-send-email-tytso@mit.edu \
--to=tytso@mit.edu \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).