From: Christoph Hellwig <hch@lst.de>
To: "Martin K. Petersen" <martin.petersen@oracle.com>
Cc: Christoph Hellwig <hch@lst.de>,
Kanchan Joshi <joshi.k@samsung.com>,
Anuj Gupta <anuj20.g@samsung.com>,
Keith Busch <kbusch@kernel.org>, Jens Axboe <axboe@kernel.dk>,
linux-block@vger.kernel.org
Subject: Re: in-kernel verification of user PI?
Date: Wed, 29 Jan 2025 16:26:12 +0100 [thread overview]
Message-ID: <20250129152612.GA5356@lst.de> (raw)
In-Reply-To: <yq15xlxsqkg.fsf@ca-mkp.ca.oracle.com>
On Wed, Jan 29, 2025 at 09:23:37AM -0500, Martin K. Petersen wrote:
> Doing a verification pass in the write hot path had a substantial
> performance impact when I originally did this.
Oh yes, it absolutely will. While the CRC implementations got a lot
faster in the last years, there's still a cost. It also touches a lot of
cache lines.
> Even remapping the ref
> tag has an impact on cache. That's why DIX1.1 moved ref tag remapping to
> the HBA so we could avoid touching the PI buffer altogether in the hot
> path.
As in supplying an offset for the ref tag somewhere in the HBA specific
per-command payload? That's not implemented in Linux as far as I can
tell, or did I miss something?
> > I.e. if userspace passes incorrect information it can trigger a
> > command failure and thus the driver error handler, which is something
> > we don't usually allow for "regular" I/O.
>
> Do you trigger EH in NVMe? For SCSI we just bubble the PI error up
> without retrying.
We don't have the EH thread from hell, but there is error handling yes.
next prev parent reply other threads:[~2025-01-29 15:26 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CGME20250129124655epcas5p39750f07e5015f1dd5e198c72cca0aa4e@epcas5p3.samsung.com>
2025-01-29 12:46 ` in-kernel verification of user PI? Christoph Hellwig
2025-01-29 14:23 ` Martin K. Petersen
2025-01-29 15:26 ` Christoph Hellwig [this message]
2025-01-29 15:42 ` Martin K. Petersen
2025-01-29 15:43 ` Christoph Hellwig
2025-01-29 16:15 ` Martin K. Petersen
2025-01-30 13:02 ` Christoph Hellwig
2025-01-31 10:34 ` Kanchan Joshi
2025-01-31 10:36 ` Christoph Hellwig
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=20250129152612.GA5356@lst.de \
--to=hch@lst.de \
--cc=anuj20.g@samsung.com \
--cc=axboe@kernel.dk \
--cc=joshi.k@samsung.com \
--cc=kbusch@kernel.org \
--cc=linux-block@vger.kernel.org \
--cc=martin.petersen@oracle.com \
/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).