linux-block.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Christoph Hellwig <hch@infradead.org>
To: Jens Axboe <axboe@kernel.dk>
Cc: "linux-block@vger.kernel.org" <linux-block@vger.kernel.org>
Subject: Re: [PATCH] block: use flags instead of bit fields for blkdev_dio
Date: Fri, 15 Oct 2021 21:30:48 -0700	[thread overview]
Message-ID: <YWpVeBfUt3zoafD4@infradead.org> (raw)
In-Reply-To: <4b427811-106d-53b2-bdfc-afd022282067@kernel.dk>

On Thu, Oct 14, 2021 at 12:34:55PM -0600, Jens Axboe wrote:
> This generates a lot better code for me, and bumps performance from
> 7650K IOPS to 7750K IOPS. Looking at profiles for the run and running
> perf diff, it confirms that we're now sending a lot less time there:
> 
>      6.38%     -2.80%  [kernel.vmlinux]  [k] blkdev_direct_IO
> 
> Taking it from the 2nd most cycle consumer to only the 9th most at
> 3.35% of the CPU time.

Kinda weird that the overhead is so big.  That being said for more
than a single flag I prefer the bit ops anyway, this code just
"evolved".

Reviewed-by: Christoph Hellwig <hch@lst.de>

      reply	other threads:[~2021-10-16  4:30 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-10-14 18:34 [PATCH] block: use flags instead of bit fields for blkdev_dio Jens Axboe
2021-10-16  4:30 ` Christoph Hellwig [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=YWpVeBfUt3zoafD4@infradead.org \
    --to=hch@infradead.org \
    --cc=axboe@kernel.dk \
    --cc=linux-block@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).