linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Dave Chinner <david@fromorbit.com>
To: Cyrill Gorcunov <gorcunov@openvz.org>
Cc: Al Viro <viro@ZenIV.linux.org.uk>,
	LINUXFS-ML <linux-fsdevel@vger.kernel.org>,
	Andrew Morton <akpm@linux-foundation.org>,
	Christoph Hellwig <hch@infradead.org>,
	James Bottomley <jbottomley@parallels.com>,
	xemul@openvz.org
Subject: Re: [patch 0/3] A few patches for dcache
Date: Fri, 29 Jul 2011 13:25:03 +1000	[thread overview]
Message-ID: <20110729032503.GD5404@dastard> (raw)
In-Reply-To: <20110728131219.146414619@openvz.org>

On Thu, Jul 28, 2011 at 05:12:19PM +0400, Cyrill Gorcunov wrote:
> There were a thread at http://lwn.net/Articles/441164/ and while the rest of
> dcache rework is still under review and discussion, the three patches might be
> considered independantly.
> 
> Please review, comments are *highly* appreciated!
> 
> I've tested them locally with dbench (maybe something
> else I should try?) to be sure all works as expected
> but better to have them reviewed since tests do not
> always reveal potential problems.
> 
> The idea of series is to remove global rename_lock and
> prepare the ground for future factoring out of the
> shrinker code.

The VFS shrinker code is now already called on a per-sb basis. Each
sb has it's own shrinker context that deals with dentries, inodes
and anything a filesystem wants to have shrunk in the call. That
solves the original issue I had with your "limit the dentry cache
size" patch series in that it didn't shrink or limit the other VFS
caches that were the ones that were really consuming all your
memory...

If you want to limit the size of the VFS caches on a specific
superblock, then I'm pretty sure all we need to do now is add a
method to call the per-sb shrinker when over a threshold rather than
only calling them when there is memory pressure (e.g. via a
workqueue).

Right now the only thing that will serialise this is the fact that
the dcache_lru_lock is still global. I dropped the patch to make it
per-sb because it was causing memory corruptions and crashes.  I'm
starting to test that patch again now that the dcache gurus seems to
have fixed a bunch of nasty problems that could have been causing
this...

Cheers,

Dave.
-- 
Dave Chinner
david@fromorbit.com

  parent reply	other threads:[~2011-07-29  3:25 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-28 13:12 [patch 0/3] A few patches for dcache Cyrill Gorcunov
2011-07-28 13:12 ` [patch 1/3] vfs, dcache: Introduce lighten r/o rename_lock lockers Cyrill Gorcunov
2011-07-28 13:12 ` [patch 2/3] vfs, dcache: Factor out rename_lock locking Cyrill Gorcunov
2011-07-28 13:12 ` [patch 3/3] vfs: Make the rename_lock per-sb Cyrill Gorcunov
2011-07-29  3:25 ` Dave Chinner [this message]
2011-07-29  5:59   ` [patch 0/3] A few patches for dcache Cyrill Gorcunov
2011-07-29  6:59     ` Dave Chinner
2011-07-29  7:01       ` Cyrill Gorcunov
2011-07-29  7:24       ` Al Viro
2011-07-29  7:50         ` Cyrill Gorcunov
2011-08-15  7:42         ` Cyrill Gorcunov
2011-08-24  6:31           ` Pavel Emelyanov

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=20110729032503.GD5404@dastard \
    --to=david@fromorbit.com \
    --cc=akpm@linux-foundation.org \
    --cc=gorcunov@openvz.org \
    --cc=hch@infradead.org \
    --cc=jbottomley@parallels.com \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=viro@ZenIV.linux.org.uk \
    --cc=xemul@openvz.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).