From: Paul Menage <pmenage@ensim.com>
To: Alexander Viro <viro@math.psu.edu>
Cc: LKML <linux-kernel@vger.kernel.org>,
lse-tech <lse-tech@lists.sourceforge.net>
Cc: pmenage@ensim.com
Subject: Re: [Lse-tech] Re: [RFC] dcache scalability patch (2.4.17)
Date: Sat, 13 Jul 2002 10:25:55 -0700 [thread overview]
Message-ID: <E17TQeZ-0006OR-00@pmenage-dt.ensim.com> (raw)
In-Reply-To: Your message of "Sat, 13 Jul 2002 04:52:25 EDT." <Pine.GSO.4.21.0207130409090.13648-100000@weyl.math.psu.edu>
>
>Frankly, I'd rather moved setting DCACHE_REFERENCED to dput(). We don't
>care for that bit for dentries with positive ->d_count.
>
>So I'd just do
>
>vi fs/dcache.c -c '/|= DCACHE_R/d|/nr_un/pu|<|x'
>
>and be done with that. Linus?
>
Some possibly minor issues with that:
- accessing foo/../bar, won't mark foo as referenced, even though it
might be being referenced frequently. Probably not a common case for foo
to be accessed exclusively in this way, but it could be fixed by marking
a dentry referenced when following ".."
- currently, negative dentries start off unreferenced and get marked
referenced the second and subsequent time that they're used. This would
change to starting off referenced (by the ref count set in lock_nd()
after the ->lookup()) but then not being marked referenced ever again,
as they're always looked at under dcache_lock, and no count is taken on
them. So used-once negative dentries would hang around longer, and
frequently-used negative dentries would be cleaned up sooner.
- referenced bit will be set possibly long after the reference is
actually taken/used, which might make dentry pruning a little less
accurate.
I was considering suggesting moving the reference bit setting to
unlock_nd(), since that's another place where we're already changing
d_count, but that still has the first two problems that I mentioned.
Either way, moving d_vfsflags to the same cacheline as d_count would
probably be a good idea.
Paul
next prev parent reply other threads:[~2002-07-13 17:23 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-07-12 14:09 Maneesh Soni
2002-07-12 14:13 ` [Lse-tech] " Christoph Hellwig
2002-07-12 16:20 ` Dipankar Sarma
2002-07-15 8:10 ` Maneesh Soni
2002-07-15 8:25 ` Maneesh Soni
2002-07-12 14:29 ` Alexander Viro
2002-07-12 16:10 ` [Lse-tech] " Dipankar Sarma
2002-07-12 18:02 ` Dipankar Sarma
2002-07-12 18:10 ` Hanna Linder
2002-07-12 17:35 ` Paul Menage
2002-07-13 8:52 ` Alexander Viro
2002-07-13 17:25 ` Paul Menage [this message]
2002-07-13 17:33 ` Alexander Viro
2002-07-13 17:51 ` Paul Menage
2002-07-13 17:54 ` Alexander Viro
2002-07-15 0:10 ` Linus Torvalds
2002-07-12 22:50 ` Hanna Linder
2002-07-15 7:49 ` Maneesh Soni
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=E17TQeZ-0006OR-00@pmenage-dt.ensim.com \
--to=pmenage@ensim.com \
--cc=linux-kernel@vger.kernel.org \
--cc=lse-tech@lists.sourceforge.net \
--cc=viro@math.psu.edu \
/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
all inboxes | Powered by JetHome®