From: Corrado Zoccolo <czoccolo@gmail.com>
To: Jeff Moyer <jmoyer@redhat.com>
Cc: Linux-Kernel <linux-kernel@vger.kernel.org>,
Jens Axboe <jens.axboe@oracle.com>
Subject: Re: [RFC V2 PATCH 5/5] cfq-iosched: fairness for sync no-idle queues
Date: Mon, 26 Oct 2009 19:03:28 +0100 [thread overview]
Message-ID: <4e5e476b0910261103g3dee483fic19e8713ed52ac3e@mail.gmail.com> (raw)
In-Reply-To: <x49k4yixiox.fsf@segfault.boston.devel.redhat.com>
On Mon, Oct 26, 2009 at 4:45 PM, Jeff Moyer <jmoyer@redhat.com> wrote:
> Corrado Zoccolo <czoccolo@gmail.com> writes:
>
>> +static enum wl_type_t cfqq_type(struct cfq_queue *cfqq)
>> +{
>> + if (!cfq_cfqq_sync(cfqq))
>> + return ASYNC_WORKLOAD;
>> + if (CFQQ_SEEKY(cfqq) || !cfq_cfqq_idle_window(cfqq))
>> + return SYNC_NOIDLE_WORKLOAD;
>> + return SYNC_WORKLOAD;
>> +}
>
> The calculation to determine whether or not to idle is now done in at
> least 2 places. Perhaps it's time for a helper function.
Maybe that CFQQ_SEEKY(cfqq) test can just be removed, and we just rely
on the idle flag set by cfq_update_idle_window (it is already testing
seekiness there, but it also considers number of samples).
I'll do some testing without it to see if it changes anything.
>
> There are some other coding style nits, but I'll let Jens comment on
> those. I think the idea looks good. Once you rebase I'll run some
> tests; this is some really good work!
>
Thanks. Testing on different hardware is always appreciated.
Cheers,
Corrado
> Cheers,
> Jeff
>
prev parent reply other threads:[~2009-10-26 18:03 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-20 18:12 Corrado Zoccolo
2009-10-26 15:45 ` Jeff Moyer
2009-10-26 18:03 ` Corrado Zoccolo [this message]
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=4e5e476b0910261103g3dee483fic19e8713ed52ac3e@mail.gmail.com \
--to=czoccolo@gmail.com \
--cc=jens.axboe@oracle.com \
--cc=jmoyer@redhat.com \
--cc=linux-kernel@vger.kernel.org \
/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
Powered by JetHome