From: Randy Dunlap <rdunlap@infradead.org>
To: George Spelvin <linux@sciencehorizons.net>, linux-kernel@vger.kernel.org
Cc: mszeredi@redhat.com, npiggin@gmail.com,
paulmck@linux.vnet.ibm.com, torvalds@linux-foundation.org,
viro@zeniv.linux.org.uk
Subject: Re: [PATCH] vfs: add simple direct-mapped dcache lookup front-end
Date: Sat, 11 Jun 2016 18:16:15 -0700 [thread overview]
Message-ID: <575CB7DF.7070409@infradead.org> (raw)
In-Reply-To: <20160611235130.29260.qmail@ns.sciencehorizons.net>
Hi,
Just a small typo in Kconfig below..
On 06/11/16 16:51, George Spelvin wrote:
>
> fs/Kconfig | 28 ++++++++
> fs/dcache.c | 207 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++--
> 2 files changed, 231 insertions(+), 4 deletions(-)
>
> diff --git a/fs/Kconfig b/fs/Kconfig
> index b8fcb416..3b111b77 100644
> --- a/fs/Kconfig
> +++ b/fs/Kconfig
> @@ -8,6 +8,34 @@ menu "File systems"
> config DCACHE_WORD_ACCESS
> bool
>
> +config L1_DCACHE_BITS
> + int "Dcache level-1 cache size (bits)"
> + range 0 20
> + default 0 if !EXPERT
> + default 0 if NUMA
> + default 10 if BASE_SMALL
> + default 13
> + help
> + The Linus kernel maintains a large cache of "dentries"
Linux
> + (directory entries) for the performance-critical task of
> + converting file names to inodes. This option enables a smaller
> + direct-mapped "level-1 cache" in front of the main dcache.
> +
> + (This software "dcache" is quite different from the CPU's data
> + cache, or "D-cache". Sorry for the confusingly similar names.)
> +
> + This option specifies the size of this cache, as a power of 2.
> + For example, 13 means 2^13 = 8192 entries in the L1 dcache.
> + Specify 0 to turn off the L1 dcache entirely.
> +
> + The cost of enabling this is one pointer per entry, plus a
> + small amount of code.
> +
> + This is an experimental feature which hopes to speed up
> + single-socket machines. On larger systems, the extra updates
> + generated by the L1 dcache probably cause too much cache-line
> + bouncing to be worth it.
> +
> if BLOCK
>
> source "fs/ext2/Kconfig"
--
~Randy
next prev parent reply other threads:[~2016-06-12 1:16 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-06-11 23:51 [PATCH] vfs: add simple direct-mapped dcache lookup front-end George Spelvin
2016-06-12 1:16 ` Randy Dunlap [this message]
2016-06-13 3:20 ` [PATCH v2] " George Spelvin
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=575CB7DF.7070409@infradead.org \
--to=rdunlap@infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@sciencehorizons.net \
--cc=mszeredi@redhat.com \
--cc=npiggin@gmail.com \
--cc=paulmck@linux.vnet.ibm.com \
--cc=torvalds@linux-foundation.org \
--cc=viro@zeniv.linux.org.uk \
/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