From: Alexey Dobriyan <adobriyan@gmail.com>
To: Ivan Babrou <ivan@cloudflare.com>
Cc: Andrew Morton <akpm@linux-foundation.org>,
linux-fsdevel@vger.kernel.org,
linux-kernel <linux-kernel@vger.kernel.org>,
kernel-team <kernel-team@cloudflare.com>,
Kalesh Singh <kaleshsingh@google.com>,
Al Viro <viro@zeniv.linux.org.uk>
Subject: Re: [RFC] proc: report open files as size in stat() for /proc/pid/fd
Date: Mon, 19 Sep 2022 15:30:20 +0300 [thread overview]
Message-ID: <Yyhg3L3S0e3zvnP5@localhost.localdomain> (raw)
In-Reply-To: <CABWYdi1LX5n1DdL1B7s+=TVK=5JDMVyp91d3yRDA0_GW4Xy8wg@mail.gmail.com>
On Sat, Sep 17, 2022 at 11:32:02AM -0700, Ivan Babrou wrote:
> > > > * Make fd count acces O(1) and expose it in /proc/pid/status
> >
> > This is doable, next to FDSize.
>
> It feels like a better solution, but maybe I'm missing some context
> here. Let me know whether this is preferred.
I don't know. I'd put it in st_size as you did initially.
/proc/*/status should be slow.
next prev parent reply other threads:[~2022-09-19 12:30 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-09-16 23:08 [RFC] proc: report open files as size in stat() for /proc/pid/fd Ivan Babrou
2022-09-17 0:01 ` Andrew Morton
2022-09-17 0:28 ` Ivan Babrou
2022-09-17 7:15 ` Alexey Dobriyan
2022-09-17 18:32 ` Ivan Babrou
2022-09-19 12:30 ` Alexey Dobriyan [this message]
2022-09-19 22:03 ` Ivan Babrou
2022-09-19 8:18 ` Christian Brauner
2022-09-17 15:31 ` Theodore Ts'o
2022-09-17 18:32 ` Ivan Babrou
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=Yyhg3L3S0e3zvnP5@localhost.localdomain \
--to=adobriyan@gmail.com \
--cc=akpm@linux-foundation.org \
--cc=ivan@cloudflare.com \
--cc=kaleshsingh@google.com \
--cc=kernel-team@cloudflare.com \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-kernel@vger.kernel.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;
as well as URLs for NNTP newsgroup(s).