From: "Michal Koutný" <mkoutny@suse.com>
To: Jinke Han <hanjinke.666@bytedance.com>
Cc: tj@kernel.org, josef@toxicpanda.com, axboe@kernel.dk,
cgroups@vger.kernel.org, linux-block@vger.kernel.org,
linux-kernel@vger.kernel.org, yinxin.x@bytedance.com,
jack@suse.cz
Subject: Re: [PATCH v3] blk-throtl: Introduce sync and async queues for blk-throtl
Date: Thu, 5 Jan 2023 17:18:54 +0100 [thread overview]
Message-ID: <20230105161854.GA1259@blackbody.suse.cz> (raw)
In-Reply-To: <20221226130505.7186-1-hanjinke.666@bytedance.com>
[-- Attachment #1: Type: text/plain, Size: 1364 bytes --]
Hello Jinke.
On Mon, Dec 26, 2022 at 09:05:05PM +0800, Jinke Han <hanjinke.666@bytedance.com> wrote:
> In our test, fio writes a 100g file in sequential 4k blocksize in
> a container with low bps limit configured (wbps=10M).
> [...]
> At the same time, the operation of saving a small file by vim will be
> blocked amolst 140s.
Could you please elaborate why is this specific to blk-throtl?
I guess similar problem would arise for devices that are "naturally"
slow.
Then:
a) it must have been solved elsewhere in the block layer (but it's
broken),
b) it should be solved generically in the block layer (thus this is only
a partial solution).
Alternatively, I imagine your problem could be reduced with
corresponding memory limits on IO-constrained cgroups. (The memory limit
would increase cgwb's dirty throttling and consequently leaves more
IO bandwidth for sync IOs.)
Could you describe how the submitted solution compares to memory
limiting?
> This patch splits bio queue into sync and async queues for blk-throtl
> and gives a huge priority to sync write ios.
The "huge priority" corresponds to the THROTL_SYNC_FACTOR, right?
I'm slightly concerned about the introduction of the magical value.
What is the reasoning behind this? (E.g. I'd expect 1:1 could work as
well, while 1:4 suggests this is somehow better (empirically?).)
Thanks,
Michal
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
next prev parent reply other threads:[~2023-01-05 16:19 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-12-26 13:05 Jinke Han
2022-12-26 15:24 ` kernel test robot
2023-01-04 22:11 ` Tejun Heo
2023-01-05 7:28 ` [External] " hanjinke
2023-01-05 16:18 ` Michal Koutný [this message]
2023-01-05 17:35 ` Tejun Heo
2023-01-05 19:22 ` Michal Koutný
2023-01-05 21:39 ` Tejun Heo
2023-01-06 15:38 ` Jan Kara
2023-01-06 16:58 ` Tejun Heo
2023-01-06 18:07 ` [External] " hanjinke
2023-01-06 18:15 ` Tejun Heo
2023-01-07 4:44 ` hanjinke
2023-01-09 18:08 ` Tejun Heo
2023-01-10 13:07 ` hanjinke
2023-01-11 12:35 ` Michal Koutný
2023-01-12 3:26 ` hanjinke
2023-01-09 10:59 ` Jan Kara
2023-01-09 17:10 ` Tejun Heo
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=20230105161854.GA1259@blackbody.suse.cz \
--to=mkoutny@suse.com \
--cc=axboe@kernel.dk \
--cc=cgroups@vger.kernel.org \
--cc=hanjinke.666@bytedance.com \
--cc=jack@suse.cz \
--cc=josef@toxicpanda.com \
--cc=linux-block@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=tj@kernel.org \
--cc=yinxin.x@bytedance.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
all inboxes | Powered by JetHome®