All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andi Kleen <andi@firstfloor.org>
To: Satoshi Uchida <s-uchida@ap.jp.nec.com>
Cc: 'Andi Kleen' <andi@firstfloor.org>, xen-devel@lists.xensource.com
Subject: Re: Is QoS of virtual disk not necessary?
Date: Tue, 28 Aug 2007 13:24:28 +0200	[thread overview]
Message-ID: <20070828112428.GA16828@one.firstfloor.org> (raw)
In-Reply-To: <006101c7e953$15afd230$4c87380a@ad.spf.cl.nec.co.jp>

> CFQ2 is CFQ version 2 or new CFQ?
> In linux documentation ( Documentation/block/ioprio.txt ), I see that CFQ is version 3.
>  > With the introduction of cfq v3
> If CFQ2 is CFQ version 2, which is current CFQ version 2? or version 3?

Linux kernel subsystems rarely have fixed meaningfull major release numbers. They just
improve continuously in small steps with each kernel release. 

> However, CFQ is implemented in only Linux and not in other OSs.
> So, privileged domains or driver domains are restricted with only Linux.
> In current, privileged domain (domain 0) is only Linux, but is this situation continued in future?
> I think that users use also other OSs as driver domains.
> Therefore, I suggested IOMGR.
> By control mechanism is developed at backend drivers, I/O control setting will become OS independent.
> -- But, it is needed to implement for other OSs.

Xen depends on Dom0 IO facilities for a lot of things. Following your argument
to the logical conclusion you would need to reimplement a lot more code 
(like firewalling or network QoS) in Xen too. Just doesn't seem to be
a wise investment of precious development resources to me, especially since most Dom0 
OSes probably already have mostly equivalent facilities.

Of course without hard data it is a stab in the dark. Did you
do some benchmarking if there is a real fairness problem currently?

> > The claim that CFQ2 is desktop oriented in this thread 
> > earlier is also not true. The desktop oriented scheduler is 
> > more AS and CFQ2 is widely and successfully used in server 
> > applications.
> 
> I read on web that "CFQ is made for multimedia desktop usage only” said Andrea.
>    http://www.cs.rice.edu/~ssiyer/r/antsched/shines.html
> (Perhaps version 1 ?)

Perhaps. 

> And following document is found in Kconfig.iosched.
>  config IOSCHED_CFQ
> 	tristate "CFQ I/O scheduler"
> 	default y
> 	---help---
> 	  The CFQ I/O scheduler tries to distribute bandwidth equally
> 	  among all processes in the system. It should provide a fair
> 	  working environment, suitable for desktop systems. 
> 	  This is the default I/O scheduler.
> 
> Therefore, I seem that "CFQ is suitable for desktop system".
> However, its report is old, and I don't know surely whether current CFQ is desktop oriented or not.

First server (and as well as desktop) workloads are quite varied. It is hard to say 
anything ultimative and there can be always special cases and exceptions.
Also desktop and server workloads can overlap. The main difference is probably
just that servers tend to have a lot more spindles, but that normally
just requires less scheduling then.

CFQ2 is the default scheduler in the main server oriented distributions
(SLES, RHEL) so it's not doing that badly. It's also default in most
desktop oriented distributions (Fedora, OpenSUSE, Ubuntu, etc.) as far
as I know.

The main reason why AS (which showing nice gains in some ways) didn't
really catch on was that it was somewhat slower in some server workloads

In some cases special workloads prefer other schedulers, but they often want
the noop scheduler then (e.g. some highend databases tend to prefer to 
be not scheduled by the OS at all while others like MySQL tend to prefer
some help from the OS)


-Andi

  parent reply	other threads:[~2007-08-28 11:24 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-08-22  9:32 Is QoS of virtual disk not necessary? Satoshi Uchida
2007-08-22 12:39 ` Keir Fraser
2007-08-24  8:27   ` Satoshi Uchida
2007-08-24 15:36     ` Keir Fraser
2007-08-24 17:26       ` Andi Kleen
2007-08-24 17:40         ` Keir Fraser
2007-08-24 20:53           ` Andi Kleen
     [not found]         ` <006101c7e953$15afd230$4c87380a@ad.spf.cl.nec.co.jp>
2007-08-28 11:24           ` Andi Kleen [this message]
2007-08-24  9:48 ` how many processors does xen support in hardware ? tgh
2007-08-24 10:06   ` pradeep singh rautela
2007-08-24 11:31     ` tgh
2007-08-24 13:34       ` how many processors does xen support in hardware? Puthiyaparambil, Aravindh
2007-08-24 14:32         ` pradeep singh rautela
2007-08-24 14:49           ` Keir Fraser
2007-08-24 18:00             ` pradeep singh
2007-08-24 18:04               ` Keir Fraser
2007-08-24 18:15                 ` pradeep singh
2007-08-25  7:29                   ` tgh
     [not found]                     ` <46d0121a.0589300a.5f14.061c@mx.google.com>
2007-08-26 13:26                       ` tgh
2007-08-24 15:02           ` Puthiyaparambil, Aravindh

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=20070828112428.GA16828@one.firstfloor.org \
    --to=andi@firstfloor.org \
    --cc=s-uchida@ap.jp.nec.com \
    --cc=xen-devel@lists.xensource.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.