From: John Garry <john.garry@huawei.com>
To: Kashyap Desai <kashyap.desai@broadcom.com>, <axboe@kernel.dk>
Cc: <linux-block@vger.kernel.org>, <linux-kernel@vger.kernel.org>,
<ming.lei@redhat.com>,
Sathya Prakash Veerichetty <sathya.prakash@broadcom.com>
Subject: Re: [PATCH RFT] blk-mq: optimize queue tag busy iter for shared_tags
Date: Tue, 21 Dec 2021 15:19:43 +0000 [thread overview]
Message-ID: <e7288bcd-cc4d-8f57-a0c8-eadd53732177@huawei.com> (raw)
In-Reply-To: <7028630054e9cd0e8c84670a27c2b164@mail.gmail.com>
Hi Kashyap,
> This is for current/5.17. This patch is meaningfully only on top of [1].
>
> [1] " blk-mq: Use shared tags for shared sbitmap support" Commit -
> e155b0c238b20f0a866f4334d292656665836c8a
>
But your change seems effectively the same as in
https://lore.kernel.org/all/1638794990-137490-4-git-send-email-john.garry@huawei.com/,
which is now merged in Jens' 5.17 queue:
https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block.git/commit/?h=for-5.17/block&id=fea9f92f1748083cb82049ed503be30c3d3a9b69
> While doing additional testing for [1], I noticed some performance issue.
> Along with the performance issue, I noticed CPU lockup as well. Lockup
> trace -
>
> _raw_spin_lock_irqsave+0x42/0x50
> blk_mq_find_and_get_req+0x20/0xa0
> bt_iter+0x2d/0x80
> blk_mq_queue_tag_busy_iter+0x1aa/0x2f0
> ? blk_mq_complete_request+0x30/0x30
> ? blk_mq_complete_request+0x30/0x30
> ? __schedule+0x360/0x850
> blk_mq_timeout_work+0x5e/0x120
> process_one_work+0x1a8/0x380
> worker_thread+0x30/0x380
> ? wq_calc_node_cpumask.isra.30+0x100/0x100
> kthread+0x167/0x190
> ? set_kthread_struct+0x40/0x40
> ret_from_fork+0x22/0x30
>
> It is a generic performance issue if driver use " shost->host_tagset = 1".
> In fact, I found that [1] is useful to fix performance issue and provided
> this additional patch.
>
> I changed my setup to have 64 scsi_devices (earlier I just kept 16 or 24
> drives, so did not noticed this issue). Performance/cpu lockup issue is not
> due to [1].
> More number of scsi device, hardware context per host and high queue depth
> will increase the chances of lockup and performance drop.
>
> Do you think, it is good to have changes in 5.16 + stable ?
> I don't know if this patch will create any side effect. Can you review and
> let me know your feedback. ?
>
Can you test my merged change again for this scenario?
I will also note that I mentioned previously that
blk_mq_queue_tag_busy_iter() was not optimum for shared sbitmap, i.e.
before shared tags, but no one said performance was bad for shared sbitmap.
Thanks,
John
next prev parent reply other threads:[~2021-12-21 15:19 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-12-21 12:31 [PATCH RFT] blk-mq: optimize queue tag busy iter for shared_tags Kashyap Desai
2021-12-21 12:55 ` John Garry
2021-12-21 13:53 ` Kashyap Desai
2021-12-21 15:19 ` John Garry [this message]
2021-12-22 11:20 ` Kashyap Desai
2021-12-22 11:35 ` John Garry
2021-12-22 12:06 ` Kashyap Desai
2021-12-22 12:34 ` John Garry
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=e7288bcd-cc4d-8f57-a0c8-eadd53732177@huawei.com \
--to=john.garry@huawei.com \
--cc=axboe@kernel.dk \
--cc=kashyap.desai@broadcom.com \
--cc=linux-block@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=ming.lei@redhat.com \
--cc=sathya.prakash@broadcom.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