Linux XFS filesystem development
 help / color / mirror / Atom feed
From: Dave Chinner <dgc@kernel.org>
To: Vitali Lovich <vlovich@gmail.com>
Cc: linux-xfs@vger.kernel.org
Subject: Re: Really bad I/O lock contention between non-overlapping reader and writer
Date: Fri, 16 Oct 2026 12:20:04 +1100	[thread overview]
Message-ID: <atF7xJlbck-xA1G3@dread> (raw)
In-Reply-To: <atF4rrzDigoX0Zyv@dread>

On Fri, Oct 16, 2026 at 12:06:54PM +1100, Dave Chinner wrote:
> On Wed, Oct 14, 2026 at 04:10:30PM -0700, Vitali Lovich wrote:
> > Ok. I have a patch series I'm happy to share. It has no meaningful
> > performance degradation / scaling problems and largely fixes the
> > head-of-line blocking problem without the challenges of range
> > tracking. Before I post it, some stylistic questions for you:
> > 
> > * Do you prefer it as a new RFC e-mail chain or continue here
> 
> New patch series.
> 
> > * Are there specific benchmarks / workloads you'd like me to gather numbers?
> 
> FIO exercising random rw 4kB DIO at differing levels of concurrency
> is the minimum.
> 
> > * Is a VM with RAM XFS filesystem sufficient or is raw metal w/ an
> > NVMe drive required?
> 
> I'd typically test this on a machine with 32+ CPU cores and an IO
> subsystem that can sustain >2 million random 4kB writes
> indefinitely. I'd then use fio using pre-written files to hit it
> with increasing IO concurrency to the same file with either io_uring
> or AIO with direct IO to exercise shared access scalability.

Oh, I should have mentioned: RAM disks are -slow- compared to a
single high performance NVMe SSD, let alone a machine with a couple
of dozen of them.

THe problem is that RAM disks always do synchronous IO and they
consume CPU time copying the data to/from the RAM disk to/from user
buffers. Hence you can only have one IO per CPU in flight at a time,
instead of a few thousand IOs in flight per CPU when using
asynchronous IO on spread across many NVMe SSDs.

IOWs, never use ram disks for performance testing XFS filesystems -
the results never reflect real world performance on actual storage
hardware.

-Dave.

-- 
Dave Chinner
dgc@kernel.org

  reply	other threads:[~2026-10-16  1:20 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-12 17:47 Really bad I/O lock contention between non-overlapping reader and writer Vitali Lovich
2026-10-12 18:23 ` Vitali Lovich
2026-10-12 19:37 ` Alan Huang
2026-10-12 19:53   ` Vitali Lovich
2026-10-12 20:27     ` Alan Huang
2026-10-12 20:47 ` Dave Chinner
2026-10-13 23:49   ` Vitali Lovich
2026-10-14  3:01     ` Dave Chinner
2026-10-14 23:10       ` Vitali Lovich
2026-10-16  1:06         ` Dave Chinner
2026-10-16  1:20           ` Dave Chinner [this message]
     [not found]   ` <CAF8PYMi5DX0AkzbSTFnCchHnr3QeB-S7J+2FNMCqB8zrtR9ojA@mail.gmail.com>
2026-10-14  2:34     ` Dave Chinner

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=atF7xJlbck-xA1G3@dread \
    --to=dgc@kernel.org \
    --cc=linux-xfs@vger.kernel.org \
    --cc=vlovich@gmail.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