From: "Благодаренко Артём" <artem.blagodarenko@gmail.com>
To: Theodore Ts'o <tytso@mit.edu>
Cc: Ext4 Developers List <linux-ext4@vger.kernel.org>,
Alex Zhuravlev <bzzz@whamcloud.com>
Subject: Re: [PATCH 3/4] ext4: indicate via a block bitmap read is prefetched via a tracepoint
Date: Fri, 24 Jul 2020 15:04:49 +0300 [thread overview]
Message-ID: <749F3FF2-1DC8-408C-8B7E-7CD3110919CC@gmail.com> (raw)
In-Reply-To: <20200717155352.1053040-4-tytso@mit.edu>
I have used this tracepoint for verifying other patches in the series. Useful. The patch looks good.
Reviewed-by: Artem Blagodarenko <artem.blagodarenko@gmail.com>
> On 17 Jul 2020, at 18:53, Theodore Ts'o <tytso@mit.edu> wrote:
>
> Modify the ext4_read_block_bitmap_load tracepoint so that it tells us
> whether a block bitmap is being prefetched.
>
> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
> ---
> fs/ext4/balloc.c | 2 +-
> include/trace/events/ext4.h | 24 ++++++++++++++++++++----
> 2 files changed, 21 insertions(+), 5 deletions(-)
>
> diff --git a/fs/ext4/balloc.c b/fs/ext4/balloc.c
> index aaa9ec5212c8..5a2f8837200c 100644
> --- a/fs/ext4/balloc.c
> +++ b/fs/ext4/balloc.c
> @@ -494,7 +494,7 @@ ext4_read_block_bitmap_nowait(struct super_block *sb, ext4_group_t block_group,
> * submit the buffer_head for reading
> */
> set_buffer_new(bh);
> - trace_ext4_read_block_bitmap_load(sb, block_group);
> + trace_ext4_read_block_bitmap_load(sb, block_group, ignore_locked);
> bh->b_end_io = ext4_end_bitmap_read;
> get_bh(bh);
> submit_bh(REQ_OP_READ, REQ_META | REQ_PRIO |
> diff --git a/include/trace/events/ext4.h b/include/trace/events/ext4.h
> index cc41d692ae8e..cbcd2e1a608d 100644
> --- a/include/trace/events/ext4.h
> +++ b/include/trace/events/ext4.h
> @@ -1312,18 +1312,34 @@ DEFINE_EVENT(ext4__bitmap_load, ext4_mb_buddy_bitmap_load,
> TP_ARGS(sb, group)
> );
>
> -DEFINE_EVENT(ext4__bitmap_load, ext4_read_block_bitmap_load,
> +DEFINE_EVENT(ext4__bitmap_load, ext4_load_inode_bitmap,
>
> TP_PROTO(struct super_block *sb, unsigned long group),
>
> TP_ARGS(sb, group)
> );
>
> -DEFINE_EVENT(ext4__bitmap_load, ext4_load_inode_bitmap,
> +TRACE_EVENT(ext4_read_block_bitmap_load,
> + TP_PROTO(struct super_block *sb, unsigned long group, bool prefetch),
>
> - TP_PROTO(struct super_block *sb, unsigned long group),
> + TP_ARGS(sb, group, prefetch),
>
> - TP_ARGS(sb, group)
> + TP_STRUCT__entry(
> + __field( dev_t, dev )
> + __field( __u32, group )
> + __field( bool, prefetch )
> +
> + ),
> +
> + TP_fast_assign(
> + __entry->dev = sb->s_dev;
> + __entry->group = group;
> + __entry->prefetch = prefetch;
> + ),
> +
> + TP_printk("dev %d,%d group %u prefetch %d",
> + MAJOR(__entry->dev), MINOR(__entry->dev),
> + __entry->group, __entry->prefetch)
> );
>
> TRACE_EVENT(ext4_direct_IO_enter,
> --
> 2.24.1
>
next prev parent reply other threads:[~2020-07-24 12:04 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-07-17 15:53 [PATCH 0/4] ex4 block bitmap prefetching Theodore Ts'o
2020-07-17 15:53 ` [PATCH 1/4] ext4: add prefetching for block allocation bitmaps Theodore Ts'o
2020-07-17 21:55 ` kernel test robot
2020-07-21 7:42 ` Andreas Dilger
2020-07-23 0:36 ` Shuichi Ihara
2020-07-23 15:00 ` tytso
2020-07-17 15:53 ` [PATCH 2/4] ext4: skip non-loaded groups at cr=0/1 when scanning for good groups Theodore Ts'o
2020-07-21 7:48 ` Andreas Dilger
2020-07-24 11:27 ` Благодаренко Артём
2020-07-17 15:53 ` [PATCH 3/4] ext4: indicate via a block bitmap read is prefetched via a tracepoint Theodore Ts'o
2020-07-21 7:51 ` Andreas Dilger
2020-07-24 12:04 ` Благодаренко Артём [this message]
2020-07-17 15:53 ` [PATCH 4/4] ext4: add prefetch_block_bitmaps mount options Theodore Ts'o
2020-07-21 8:20 ` Andreas Dilger
2020-07-24 13:58 ` Благодаренко Артём
2020-07-31 19:08 [PATCH 0/4] V2- ext4 block bitmap prefetch patches Theodore Ts'o
2020-07-31 19:08 ` [PATCH 3/4] ext4: indicate via a block bitmap read is prefetched via a tracepoint Theodore Ts'o
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=749F3FF2-1DC8-408C-8B7E-7CD3110919CC@gmail.com \
--to=artem.blagodarenko@gmail.com \
--cc=bzzz@whamcloud.com \
--cc=linux-ext4@vger.kernel.org \
--cc=tytso@mit.edu \
/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;
as well as URLs for NNTP newsgroup(s).