linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jens Axboe <axboe@kernel.dk>
To: Christian Brauner <brauner@kernel.org>
Cc: Amir Goldstein <amir73il@gmail.com>,
	"linux-fsdevel@vger.kernel.org" <linux-fsdevel@vger.kernel.org>
Subject: Re: [PATCH] Revert "fsnotify: optionally pass access range in file permission hooks"
Date: Tue, 9 Jan 2024 10:33:03 -0700	[thread overview]
Message-ID: <f8227e1b-7d70-4868-bd89-c6029325d2ee@kernel.dk> (raw)
In-Reply-To: <20240109-gitarre-zettel-5c9b772561cf@brauner>

On 1/9/24 10:30 AM, Christian Brauner wrote:
> On Tue, Jan 09, 2024 at 09:08:40AM -0700, Jens Axboe wrote:
>> This reverts commit d9e5d31084b024734e64307521414ef0ae1d5333.
>>
>> This commit added an extra fsnotify call from rw_verify_area(), which
>> can be a very hot path. In my testing, this adds roughly 5-6% extra
>> overhead per IO, which is quite a lot. As a result, throughput of
>> said test also drops by 5-6%, as it is CPU bound. Looking at perf,
>> it's apparent why:
>>
>>      3.36%             [kernel.vmlinux]  [k] fsnotify
>>      2.32%             [kernel.vmlinux]  [k] __fsnotify_paren
>>
>> which directly correlates with performance lost.
>>
>> As the rationale for this patch isn't very strong, revert this commit
>> for now and reclaim the performance.
>>
>> Signed-off-by: Jens Axboe <axboe@kernel.dk>
>> ---
> 
> Thanks for tracking this down! I think Amir, you, and I came to the
> conclusion that we can fix this in without having to revert. Amir is
> sending out a new patch later tonight. I'll get that fixed by the end of
> the week.

Yep, either revert or that patch fixes things for me.

-- 
Jens Axboe


      reply	other threads:[~2024-01-09 17:33 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-01-09 16:08 [PATCH] Revert "fsnotify: optionally pass access range in file permission hooks" Jens Axboe
2024-01-09 17:30 ` Christian Brauner
2024-01-09 17:33   ` Jens Axboe [this message]

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=f8227e1b-7d70-4868-bd89-c6029325d2ee@kernel.dk \
    --to=axboe@kernel.dk \
    --cc=amir73il@gmail.com \
    --cc=brauner@kernel.org \
    --cc=linux-fsdevel@vger.kernel.org \
    /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).