From: Vivek Goyal <vgoyal@redhat.com>
To: Shaohua Li <shaohua.li@intel.com>
Cc: lkml <linux-kernel@vger.kernel.org>, Jens Axboe <jaxboe@fusionio.com>
Subject: Re: [PATCH 2/3]CFQ: add think time check for service tree
Date: Wed, 6 Jul 2011 11:01:43 -0400 [thread overview]
Message-ID: <20110706150143.GC27302@redhat.com> (raw)
In-Reply-To: <1309917465.15392.245.camel@sli10-conroe>
On Wed, Jul 06, 2011 at 09:57:45AM +0800, Shaohua Li wrote:
[..]
> [test1]
> rw=randread
> ioengine=libaio
> size=500m
> directory=/mnt
> filename=file1
> thinktime=9000
>
> [test2]
> rw=read
> ioengine=libaio
> size=1G
> directory=/mnt
> filename=file2
>
> patched base
> test1 41k/s 33k/s
> test2 15868k/s 15789k/s
> total 15902k/s 15817k/s
Because we are not idling, throughput of randread workload has gone down.
Can you make sure it does not go down in case of launching firefox in
the presence of buffered writers. I want to make sure we got thinktime
logic right and we don't end up not idling even when thinktimes are
low.
[..]
> static void
> @@ -3570,7 +3587,13 @@ static void cfq_completed_request(struct
> cfqd->rq_in_flight[cfq_cfqq_sync(cfqq)]--;
>
> if (sync) {
> + struct cfq_rb_root *service_tree;
> +
> RQ_CIC(rq)->ttime.last_end_request = now;
> +
> + service_tree = service_tree_for(cfqq->cfqg, cfqq_prio(cfqq),
> + cfqq_type(cfqq));
I think we could do.
if (cfq_cfqq_on_rr(cfqq)
service_tree = cfqq->service_tree;
else
service_tree = service_tree_for();
Thanks
Vivek
next prev parent reply other threads:[~2011-07-06 15:01 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-07-04 5:36 [PATCH 2/3]CFQ: add think time check for service tree Shaohua Li
2011-07-05 14:10 ` Vivek Goyal
2011-07-06 1:57 ` Shaohua Li
2011-07-06 15:01 ` Vivek Goyal [this message]
2011-07-07 6:17 ` Shaohua Li
-- strict thread matches above, loose matches on Subject: below --
2011-07-12 1:37 Shaohua Li
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=20110706150143.GC27302@redhat.com \
--to=vgoyal@redhat.com \
--cc=jaxboe@fusionio.com \
--cc=linux-kernel@vger.kernel.org \
--cc=shaohua.li@intel.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