From: Stefan Hajnoczi <stefanha@redhat.com>
To: "Benoît Canet" <benoit.canet@irqsave.net>
Cc: kwolf@redhat.com, Stefan Hajnoczi <stefanha@gmail.com>,
wuzhy@linux.vnet.ibm.com, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH] block: fix bdrv_exceed_iops_limits wait computation
Date: Wed, 20 Mar 2013 16:12:03 +0100 [thread overview]
Message-ID: <20130320151203.GA3584@stefanha-thinkpad.muc.redhat.com> (raw)
In-Reply-To: <20130320145633.GA1473@irqsave.net>
On Wed, Mar 20, 2013 at 03:56:33PM +0100, Benoît Canet wrote:
> > But I don't understand why bs->slice_time is modified instead of keeping
> > it constant at 100 ms:
> >
> > bs->slice_time = wait_time * BLOCK_IO_SLICE_TIME * 10;
> > bs->slice_end += bs->slice_time - 3 * BLOCK_IO_SLICE_TIME;
> > if (wait) {
> > *wait = wait_time * BLOCK_IO_SLICE_TIME * 10;
> > }
>
> In bdrv_exceed_bps_limits there is an equivalent to this with a comment.
>
> ---------
> /* When the I/O rate at runtime exceeds the limits,
> * bs->slice_end need to be extended in order that the current statistic
> * info can be kept until the timer fire, so it is increased and tuned
> * based on the result of experiment.
> */
> bs->slice_time = wait_time * BLOCK_IO_SLICE_TIME * 10;
> bs->slice_end += bs->slice_time - 3 * BLOCK_IO_SLICE_TIME;
> if (wait) {
> *wait = wait_time * BLOCK_IO_SLICE_TIME * 10;
> }
> ----------
The comment explains why slice_end needs to be extended, but not why
bs->slice_time should be changed (except that it was tuned as the result
of an experiment).
Zhi Yong: Do you remember a reason for modifying bs->slice_time?
Stefan
next prev parent reply other threads:[~2013-03-20 15:12 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-20 9:12 [Qemu-devel] [PATCH] Fix I/O throttling pathologic oscillating behavior Benoît Canet
2013-03-20 9:12 ` [Qemu-devel] [PATCH] block: fix bdrv_exceed_iops_limits wait computation Benoît Canet
2013-03-20 10:55 ` Zhi Yong Wu
2013-03-20 13:29 ` Stefan Hajnoczi
2013-03-20 14:28 ` Stefan Hajnoczi
2013-03-20 14:56 ` Benoît Canet
2013-03-20 15:12 ` Stefan Hajnoczi [this message]
2013-03-21 1:18 ` Zhi Yong Wu
2013-03-21 9:17 ` Stefan Hajnoczi
2013-03-21 13:04 ` Zhi Yong Wu
2013-03-21 15:14 ` Stefan Hajnoczi
2013-03-20 15:27 ` Benoît Canet
2013-03-21 10:34 ` Stefan Hajnoczi
2013-03-21 14:28 ` Benoît Canet
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=20130320151203.GA3584@stefanha-thinkpad.muc.redhat.com \
--to=stefanha@redhat.com \
--cc=benoit.canet@irqsave.net \
--cc=kwolf@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=stefanha@gmail.com \
--cc=wuzhy@linux.vnet.ibm.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;
as well as URLs for NNTP newsgroup(s).