All of lore.kernel.org
 help / color / mirror / Atom feed
From: Zorro Lang <zlang@redhat.com>
To: Pankaj Raghav <kernel@pankajraghav.com>
Cc: fstests@vger.kernel.org, djwong@kernel.org, gost.dev@samsung.com,
	mcgrof@kernel.org
Subject: Re: [PATCH] xfs/558: scale blk IO size based on the filesystem blksz
Date: Wed, 27 Mar 2024 21:37:31 +0800	[thread overview]
Message-ID: <20240327133731.f36a5wtz7hoe7r5b@dell-per750-06-vm-08.rhts.eng.pek2.redhat.com> (raw)
In-Reply-To: <7f1c749d-069d-4a42-8b87-637f2dfa6f5d@pankajraghav.com>

On Tue, Mar 26, 2024 at 06:20:27PM +0100, Pankaj Raghav wrote:
> On 13/03/2024 21:38, Pankaj Raghav (Samsung) wrote:
> > From: Pankaj Raghav <p.raghav@samsung.com>
> > 
> > This test fails for 64k filesystem block size on a 4k PAGE_SIZE
> > system. Scale the `blksz` based on the filesystem block size instead of
> > fixing it as 64k so that we do get some iomap invalidations while doing
> > concurrent writes.
> > 
> > Cap the blksz to be at least 64k to retain the same behaviour as before
> > for smaller filesystem blocksizes.
> > 
> > This fixes the "Expected to hear about writeback iomap invalidations?"
> > message for 64k filesystems.
> > 
> > Signed-off-by: Pankaj Raghav <p.raghav@samsung.com>
> > Tested-by: Darrick J. Wong <djwong@kernel.org>
> > Reviewed-by: Darrick J. Wong <djwong@kernel.org>
> > ---
> 
> Hi Zorro,
>   I checked xfstests/for-next and didn't see this patch queued up. Do I need
> to do something or will it get queued up for the next release?

Oh sorry, due to this patch was in a patchset with:

  [PATCH 2/2] xfs/161: adapt the test case for LBS filesystem

So I don't know if you'd like to have them both together, or merge
this one (with RVB) at first:)

If you hope to have this one at first, I'll merge it in patches-in-queue branch,
then have it in next branch.

Thanks,
Zorro

> 
> >  tests/xfs/558 | 7 ++++++-
> >  1 file changed, 6 insertions(+), 1 deletion(-)
> > 
> > diff --git a/tests/xfs/558 b/tests/xfs/558
> > index 9e9b3be8..270f458c 100755
> > --- a/tests/xfs/558
> > +++ b/tests/xfs/558
> > @@ -127,7 +127,12 @@ _scratch_mount >> $seqres.full
> >  $XFS_IO_PROG -c 'chattr -x' $SCRATCH_MNT &> $seqres.full
> >  _require_pagecache_access $SCRATCH_MNT
> >  
> > -blksz=65536
> > +min_blksz=65536
> > +file_blksz=$(_get_file_block_size "$SCRATCH_MNT")
> > +blksz=$(( 8 * $file_blksz ))
> > +
> > +blksz=$(( blksz > min_blksz ? blksz : min_blksz ))
> > +
> >  _require_congruent_file_oplen $SCRATCH_MNT $blksz
> >  
> >  # Make sure we have sufficient extent size to create speculative CoW
> 


  reply	other threads:[~2024-03-27 13:37 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CGME20240313203828eucas1p22e2b127e8597e2e72397f26370c54b42@eucas1p2.samsung.com>
2024-03-13 20:38 ` [PATCH] xfs/558: scale blk IO size based on the filesystem blksz Pankaj Raghav (Samsung)
2024-03-26 17:20   ` Pankaj Raghav
2024-03-27 13:37     ` Zorro Lang [this message]
2024-03-27 18:06       ` Pankaj Raghav

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=20240327133731.f36a5wtz7hoe7r5b@dell-per750-06-vm-08.rhts.eng.pek2.redhat.com \
    --to=zlang@redhat.com \
    --cc=djwong@kernel.org \
    --cc=fstests@vger.kernel.org \
    --cc=gost.dev@samsung.com \
    --cc=kernel@pankajraghav.com \
    --cc=mcgrof@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 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.