From: Andrea Arcangeli <andrea@suse.de>
To: Marcelo Tosatti <marcelo.tosatti@cyclades.com>
Cc: James Pearson <james-p@moving-picture.com>,
Andrew Morton <akpm@osdl.org>,
linux-kernel@vger.kernel.org
Subject: Re: Reducing inode cache usage on 2.4?
Date: Mon, 20 Dec 2004 16:10:45 +0100 [thread overview]
Message-ID: <20041220151045.GL4424@dualathlon.random> (raw)
In-Reply-To: <20041220124604.GB2529@logos.cnet>
On Mon, Dec 20, 2004 at 10:46:04AM -0200, Marcelo Tosatti wrote:
> On Mon, Dec 20, 2004 at 01:47:46PM +0000, James Pearson wrote:
> > I've tested the patch on my test setup - running a 'find $disk -type f'
> > and a cat of large files to /dev/null at the same time does indeed
> > reduce the size of the inode and dentry caches considerably - the first
> > column numbers for fs_inode, linvfs_icache and dentry_cache in
> > /proc/slabinfo hover at about 400-600 (over 900000 previously).
> >
> > However, is this going a bit to far the other way? When I boot the
> > machine with 4Gb RAM, the inode and dentry caches are squeezed to the
> > same amounts, but it may be the case that it would be more beneficial to
> > have more in the inode and dentry caches? i.e. I guess some sort of
> > tunable factor that limits the minimum size of the inode and dentry
> > caches in this case?
>
> One can increase vm_vfs_scan_ratio if required, but hopefully this change
> will benefit all workloads.
>
> Andrew, Andrea, do you think of any workloads which might be hurt by this change?
I wouldn't touch the defaults, but the sysctl is there so if you've a
strange workload you can tune for it.
There's nothing wrong with dcache/icache growing a lot. A cat of a large
file is polluting the cache, so that's not a workload that should shrink
the dcache/icache. I'd prefer a feedback based on a real useful workload
before even considering touching the defaults at this time.
next prev parent reply other threads:[~2004-12-20 15:21 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-12-17 17:26 Reducing inode cache usage on 2.4? James Pearson
2004-12-17 15:12 ` Marcelo Tosatti
2004-12-17 21:52 ` Willy Tarreau
2004-12-18 0:32 ` James Pearson
2004-12-18 1:21 ` Andrew Morton
2004-12-18 11:02 ` Marcelo Tosatti
2004-12-20 13:47 ` James Pearson
2004-12-20 12:46 ` Marcelo Tosatti
2004-12-20 15:10 ` Andrea Arcangeli [this message]
2004-12-20 15:06 ` Marcelo Tosatti
2004-12-20 17:54 ` Andrea Arcangeli
2004-12-20 15:43 ` Marcelo Tosatti
2004-12-20 19:20 ` Andrea Arcangeli
2004-12-21 11:33 ` James Pearson
2004-12-21 13:22 ` Andrea Arcangeli
2004-12-21 13:59 ` James Pearson
2004-12-21 14:39 ` Andrea Arcangeli
2004-12-18 15:02 ` Marcelo Tosatti
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=20041220151045.GL4424@dualathlon.random \
--to=andrea@suse.de \
--cc=akpm@osdl.org \
--cc=james-p@moving-picture.com \
--cc=linux-kernel@vger.kernel.org \
--cc=marcelo.tosatti@cyclades.com \
/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