All of lore.kernel.org
 help / color / mirror / Atom feed
From: Leon Romanovsky <leon@kernel.org>
To: Keith Busch <kbusch@kernel.org>
Cc: Christoph Hellwig <hch@lst.de>, Keith Busch <kbusch@meta.com>,
	linux-nvme@lists.infradead.org
Subject: Re: [PATCH] nvme-pci: always use blk_map_iter for metadata
Date: Sun, 26 Oct 2025 09:25:51 +0200	[thread overview]
Message-ID: <20251026072551.GB12554@unreal> (raw)
In-Reply-To: <aPebvnv3u6HWcqdX@kbusch-mbp>

On Tue, Oct 21, 2025 at 08:42:06AM -0600, Keith Busch wrote:
> On Tue, Oct 21, 2025 at 09:19:35AM +0200, Christoph Hellwig wrote:
> > On Mon, Oct 20, 2025 at 11:24:44AM -0700, Keith Busch wrote:
> > > From: Keith Busch <kbusch@kernel.org>
> > > 
> > > The dma_map_bvec helper doesn't work for p2p data. Rather than special
> > > case it, just use the same mapping logic so that the driver doesn't need
> > > to consider memory types.
> > 
> > We already consider the memory types for the data path, so treating the
> > metadasta path where p2p is even more unlikely sounds like the wrong
> > tradeoff.  
> 
> Maybe the data path should only use blk_dma_iter too. Is dma_map_bvec
> that much faster for the single vector case? I'm going to test both on
> real hardware and see if there's a difference in CPU utilization or
> latency.

We tried that path (remove special case for single segment), but for
very performance oriented case: direct mode without IOMMU, no p2p and
extremely powerful RAID (~94M IOPS), Jens and Kanchan saw performance
drop. On consumer grade HW (~2M IOPS), the performance change was not
noticed.

Thanks


  reply	other threads:[~2025-10-26  7:25 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-10-20 18:24 [PATCH] nvme-pci: always use blk_map_iter for metadata Keith Busch
2025-10-20 23:38 ` Chaitanya Kulkarni
2025-10-21  7:19 ` Christoph Hellwig
2025-10-21 14:42   ` Keith Busch
2025-10-26  7:25     ` Leon Romanovsky [this message]
2025-10-27  7:13       ` Christoph Hellwig
2025-10-27 16:09         ` Keith Busch

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=20251026072551.GB12554@unreal \
    --to=leon@kernel.org \
    --cc=hch@lst.de \
    --cc=kbusch@kernel.org \
    --cc=kbusch@meta.com \
    --cc=linux-nvme@lists.infradead.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 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.