From: Dominique Martinet <asmadeus@codewreck.org>
To: Christian Schoenebeck <linux_oss@crudebyte.com>
Cc: Remi Pommarel <repk@triplefau.lt>,
v9fs@lists.linux.dev, linux-fsdevel@vger.kernel.org,
linux-kernel@vger.kernel.org,
Eric Van Hensbergen <ericvh@kernel.org>,
Latchesar Ionkov <lucho@ionkov.net>
Subject: Re: [PATCH v3 2/4] 9p: Add mount option for negative dentry cache retention
Date: Wed, 4 Mar 2026 18:16:26 +0900 [thread overview]
Message-ID: <aaf4athb6nUyxB83@codewreck.org> (raw)
In-Reply-To: <13960739.uLZWGnKmhe@weasel>
Christian Schoenebeck wrote on Wed, Mar 04, 2026 at 10:01:42AM +0100:
> > I did that on previous version, but was afraid that ~20days timeout max
> > value may be too restrictive?
> >
> > I do agree that this is a bit odd though and if you both think s32 is
> > better that is fine with me.
>
> What about just making this mount option a string and doing the parsing on our
> end? That would have the benefit of simply allowing arguments like "i00s",
> "5d", "1y", and if you really wanted "inf".
>
> I would find units for this much more useful in practice than allowing
> infinite. Like discussed before, it is in general a bad idea to configure
> negative dentries to persist for good due to the huge amount of bogus entries
> that pile up.
I don't mind either way -- I think 20 days for such a timeout is enough,
but I agree being able to set something like '60s' or '100ms' would
certainly be convenient.
I'm actually surprised there's no such parsing helper in the kernel?!
The only related code I could find was parse_ns_duration /
parse_seconds_duration in tools/tracing/rtla/src/utils.c but that's for
tools, and there doesn't seem to be anything we could use..
Well, it's not that bad, so I'm not fussy here.
> > > OTOH ndentrycachetimeout as a mount option is a mouthful,
> > > negativetimeout or negtimeout sounds clear enough to me?
> > > I can't think of anything else that'd be negative related
> > > to timeouts, but perhaps it's the lack of sleep speaking
> >
> > No strong opinion on the option name though so any name that suits you
> > is alse fine by me.
>
> Another suggestion: "ndtimeout"?
I'd slightly favor negtimeout over ndtimeout but am fine with either
here.
('nd' sounds like something network-y to me, network discovery or ndo,
but that's not a hard no)
Thanks,
--
Dominique Martinet | Asmadeus
next prev parent reply other threads:[~2026-03-04 9:16 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-02-27 7:56 [PATCH v3 0/4] 9p: Performance improvements for build workloads Remi Pommarel
2026-02-27 7:56 ` [PATCH v3 1/4] 9p: Cache negative dentries for lookup performance Remi Pommarel
2026-03-04 12:50 ` Christian Schoenebeck
2026-02-27 7:56 ` [PATCH v3 2/4] 9p: Add mount option for negative dentry cache retention Remi Pommarel
2026-03-03 14:53 ` Christian Schoenebeck
2026-03-03 21:45 ` Dominique Martinet
2026-03-04 8:25 ` Remi Pommarel
2026-03-04 9:01 ` Christian Schoenebeck
2026-03-04 9:16 ` Dominique Martinet [this message]
2026-03-04 12:45 ` Christian Schoenebeck
2026-02-27 7:56 ` [PATCH v3 3/4] 9p: Set default negative dentry retention time for cache=loose Remi Pommarel
2026-03-04 12:54 ` Christian Schoenebeck
2026-02-27 7:56 ` [PATCH v3 4/4] 9p: Enable symlink caching in page cache Remi Pommarel
2026-03-04 13:01 ` Christian Schoenebeck
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=aaf4athb6nUyxB83@codewreck.org \
--to=asmadeus@codewreck.org \
--cc=ericvh@kernel.org \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux_oss@crudebyte.com \
--cc=lucho@ionkov.net \
--cc=repk@triplefau.lt \
--cc=v9fs@lists.linux.dev \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.