linux-nfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* A NFS, xfs, reflink and rmapbt story
@ 2020-01-23  8:32 Murphy Zhou
  2020-01-24  1:10 ` Darrick J. Wong
  0 siblings, 1 reply; 8+ messages in thread
From: Murphy Zhou @ 2020-01-23  8:32 UTC (permalink / raw)
  To: linux-xfs, linux-nfs

Hi,

Deleting the files left by generic/175 costs too much time when testing
on NFSv4.2 exporting xfs with rmapbt=1.

"./check -nfs generic/175 generic/176" should reproduce it.

My test bed is a 16c8G vm.

NFSv4.2  rmapbt=1   24h+
NFSv4.2  rmapbt=0   1h-2h
xfs      rmapbt=1   10m+

At first I thought it hung, turns out it was just slow when deleting
2 massive reflined files.

It's reproducible using latest Linus tree, and Darrick's deferred-inactivation
branch. Run latest for-next branch xfsprogs.

I'm not sure it's something wrong, just sharing with you guys. I don't
remember I have identified this as a regression. It should be there for
a long time.

Sending to xfs and nfs because it looks like all related. :)

This almost gets lost in my list. Not much information recorded, some
trace-cmd outputs for your info. It's easy to reproduce. If it's
interesting to you and need any info, feel free to ask.

Thanks,


7)   0.279 us    |  xfs_btree_get_block [xfs]();
7)   0.303 us    |  xfs_btree_rec_offset [xfs]();
7)   0.301 us    |  xfs_rmapbt_init_high_key_from_rec [xfs]();
7)   0.356 us    |  xfs_rmapbt_diff_two_keys [xfs]();
7)   0.305 us    |  xfs_rmapbt_init_key_from_rec [xfs]();
7)   0.306 us    |  xfs_rmapbt_diff_two_keys [xfs]();
7)               |  xfs_rmap_query_range_helper [xfs]() {
7)   0.279 us    |    xfs_rmap_btrec_to_irec [xfs]();
7)               |    xfs_rmap_lookup_le_range_helper [xfs]() {
1)   0.786 us    |  _raw_spin_lock_irqsave();
7)               |      /* xfs_rmap_lookup_le_range_candidate: dev 8:34 agno 2 agbno 6416 len 256 owner 67160161 offset 99284480 flags 0x0 */
7)   0.506 us    |    }
7)   1.680 us    |  }

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2020-02-17  0:36 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-23  8:32 A NFS, xfs, reflink and rmapbt story Murphy Zhou
2020-01-24  1:10 ` Darrick J. Wong
2020-01-27 22:36   ` J. Bruce Fields
2020-02-05  6:22     ` Murphy Zhou
2020-02-16  8:28     ` Murphy Zhou
2020-02-17  0:36       ` J. Bruce Fields
2020-01-27 23:56   ` Dave Chinner
2020-02-05  6:52     ` Murphy Zhou

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).