All of lore.kernel.org
 help / color / mirror / Atom feed
From: David Sterba <dsterba@suse.cz>
To: Qu Wenruo <wqu@suse.com>
Cc: linux-btrfs@vger.kernel.org
Subject: Re: [PATCH v2 0/3] btrfs: trace: Add trace events for extent_io_tree
Date: Thu, 7 Mar 2019 17:32:05 +0100	[thread overview]
Message-ID: <20190307163204.GK31119@twin.jikos.cz> (raw)
In-Reply-To: <20190301024800.17649-1-wqu@suse.com>

On Fri, Mar 01, 2019 at 10:47:57AM +0800, Qu Wenruo wrote:
> - Allow NULL fs_info for TP_fast_assign_fsid()
>   There is extent bits operation in selftest which is too deep to pass
>   fs_info. And since it's in selftest, it shouldn't trigger trace
>   events.
>   But to be safe, we still need to check fs_indo in
>   TP_fast_assign_fsid(), for NULL fs_info, just keep fsid filled with
>   zero.

Ok, better be safe here. I'd still like to remove the conditional, as
the tests typically access only a single filesystem we could export the
fs_info globally, avoiding the need to pass it around.

> There is one point which need extra attention:
> 1) Those trace events are pretty heavy
>    The following workload would generate over 400 trace events.

I'm not sure if 400 is considered a lot, I'd say 400.000 would be a lot
for the steps below.

> 	mkfs.btrfs -f $dev
> 	start_trace
> 	mount $dev $mnt -o enospc_debug
> 	sync
> 	touch $mnt/file1
> 	touch $mnt/file2
> 	touch $mnt/file3
> 	xfs_io -f -c "pwrite 0 16k" $mnt/file4
> 	umount $mnt
> 	end_trace
>    It's not recommended to use them in real world environment.
> 
> Changelog:
> v2:
> - Introduce fs_info to distinguish different btrfs filesystems
> - Code style change to make trace code more elegant
> - Minor IO_TREE_* naming change.
> - Use btrfs_ino() to replace raw inode number.
> - Change extent_io_tree::owner declaration to avoid affecting spinlock.

v2 looks good to me, thanks. I'll add it to the 5.2 queue.

  parent reply	other threads:[~2019-03-07 16:30 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-03-01  2:47 [PATCH v2 0/3] btrfs: trace: Add trace events for extent_io_tree Qu Wenruo
2019-03-01  2:47 ` [PATCH v2 1/3] btrfs: Introduce fs_info " Qu Wenruo
2019-03-01  2:47 ` [PATCH v2 2/3] btrfs: Introduce extent_io_tree::owner to distinguish different io_trees Qu Wenruo
2019-03-07 17:10   ` David Sterba
2019-03-11 15:20   ` David Sterba
2019-03-01  2:48 ` [PATCH v2 3/3] btrfs: trace: Add trace events for extent_io_tree Qu Wenruo
2019-03-07 17:14   ` David Sterba
2019-03-07 16:32 ` David Sterba [this message]
2019-03-08  0:41   ` [PATCH v2 0/3] " Qu Wenruo
  -- strict thread matches above, loose matches on Subject: below --
2019-03-01  2:45 Qu Wenruo

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=20190307163204.GK31119@twin.jikos.cz \
    --to=dsterba@suse.cz \
    --cc=linux-btrfs@vger.kernel.org \
    --cc=wqu@suse.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 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.