All of lore.kernel.org
 help / color / mirror / Atom feed
From: Christoph Hellwig <hch@infradead.org>
To: Stian Halseth <stian@itx.no>
Cc: Christoph Hellwig <hch@infradead.org>,
	Carlos Maiolino <cem@kernel.org>,
	linux-xfs@vger.kernel.org, "Darrick J . Wong" <djwong@kernel.org>,
	sparclinux@vger.kernel.org, Jan Engelhardt <jengelh@inai.de>,
	Dave Chinner <dgc@kernel.org>,
	stable@vger.kernel.org
Subject: Re: [PATCH v3] xfs: fix unaligned access to rmapbt high keys in scrub
Date: Wed, 2 Dec 2026 08:13:08 -0800	[thread overview]
Message-ID: <axBDlPFDGUv3_idv@infradead.org> (raw)
In-Reply-To: <e3cee0f380b0c102aa41d2bc78c3435c7ae14a13.camel@itx.no>

On Wed, Dec 02, 2026 at 12:29:24PM +0100, Stian Halseth wrote:
> I have now tested it on a SPARC T4-1. As I expected, a plain __packed
> fixed the trap, but introduced some overhead. About 17% slower when
> writing a file with 20000 extents.
> 
> Since every btree key on disk is at least 4-byte aligned, I also tried
> __packed __aligned(4). With this, the performance is within noise of v3.
> 
> Numbers from a 2 GB image with a 3-level rmapbt, mean of 3 runs:
> 
>                       stock    v3       packed   packed+aligned(4)
>   20000-extent file   3.16 s   3.15 s   3.71 s   3.17 s
>   200x scrub rmapbt   85.6 s   52.1 s   52.3 s   51.4 s
>   unaligned traps     23.7M    0        0        0
> 
> I suggest a v4 with the packed+aligned(4) variant instead of the scrub
> change. Do you agree?

Yes, that sounds great.  Thanks a lot for testing!


      reply	other threads:[~2026-12-02 16:13 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-11 10:30 [PATCH v3] xfs: fix unaligned access to rmapbt high keys in scrub Stian Halseth
2026-11-11 15:19 ` Christoph Hellwig
2026-11-11 19:01   ` Stian Halseth
2026-12-02  7:28     ` Christoph Hellwig
2026-12-02 11:29       ` Stian Halseth
2026-12-02 16:13         ` 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=axBDlPFDGUv3_idv@infradead.org \
    --to=hch@infradead.org \
    --cc=cem@kernel.org \
    --cc=dgc@kernel.org \
    --cc=djwong@kernel.org \
    --cc=jengelh@inai.de \
    --cc=linux-xfs@vger.kernel.org \
    --cc=sparclinux@vger.kernel.org \
    --cc=stable@vger.kernel.org \
    --cc=stian@itx.no \
    /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.