mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Li,Rongqing" <lirongqing@baidu.com>
To: Christian Brauner <brauner@kernel.org>
Cc: "viro@zeniv.linux.org.uk" <viro@zeniv.linux.org.uk>,
	"jack@suse.cz" <jack@suse.cz>,
	"linux-fsdevel@vger.kernel.org" <linux-fsdevel@vger.kernel.org>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: 答复: [外部邮件] Re: [PATCH] fs: Make file-nr output the total allocated file handles
Date: Sat, 12 Apr 2025 12:59:53 +0000	[thread overview]
Message-ID: <6a0a7570ff6c4994aee74b9bef6799eb@baidu.com> (raw)
In-Reply-To: <20250411-gejagt-gelistet-88c56be455d1@brauner>

 
> On Thu, Apr 10, 2025 at 07:21:17PM +0800, lirongqing wrote:
> > From: Li RongQing <lirongqing@baidu.com>
> >
> > Make file-nr output the total allocated file handles, not per-cpu
> > cache number, it's more precise, and not in hot path
> >
> > Signed-off-by: Li RongQing <lirongqing@baidu.com>
> > ---
> 
> That means grabbing a lock suddenly. Is there an actual use-case behind this?

want to monitor it to find the leaking of the allocated file handler by some applications, but find it is inaccurate

So I think this is not a hot path,  percpu_counter_sum_positive may be able to be used

Thank
-Li



  parent reply	other threads:[~2025-04-12 13:00 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-04-10 11:21 lirongqing
2025-04-11 14:16 ` Christian Brauner
2025-04-11 21:15   ` Mateusz Guzik
2025-04-12 12:59   ` Li,Rongqing [this message]
2025-04-14 10:07 ` (subset) " Christian Brauner
2025-04-14 11:05   ` 答复: [外部邮件] " Li,Rongqing

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=6a0a7570ff6c4994aee74b9bef6799eb@baidu.com \
    --to=lirongqing@baidu.com \
    --cc=brauner@kernel.org \
    --cc=jack@suse.cz \
    --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

all inboxes | Powered by JetHome®