linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* CFQ I/O scheduler better than AS?
@ 2010-09-22 10:55 Juan PC
  2010-09-22 12:10 ` Diego Calleja
  0 siblings, 1 reply; 4+ messages in thread
From: Juan PC @ 2010-09-22 10:55 UTC (permalink / raw)
  To: linux-kernel

Hi:

I am sure that, for most people, the clear answer is "yes" (after all,
CFQ is the default I/O scheduler in Linux), but we are having serious
difficulties to find a benchmark which shows that CFQ is undoubtedly
better than AS.

We use several benchmarks and, in all of them, either AS is clearly
better than CFQ, or their performances are very similar.

Therefore, the question is, does such a benchmark exist?

Regards,

	Juan



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: CFQ I/O scheduler better than AS?
  2010-09-22 10:55 CFQ I/O scheduler better than AS? Juan PC
@ 2010-09-22 12:10 ` Diego Calleja
  2010-09-22 15:26   ` Juan PC
  0 siblings, 1 reply; 4+ messages in thread
From: Diego Calleja @ 2010-09-22 12:10 UTC (permalink / raw)
  To: Juan PC; +Cc: linux-kernel

On Miércoles, 22 de Septiembre de 2010 12:55:08 Juan PC escribió:
> Hi:
> 
> I am sure that, for most people, the clear answer is "yes" (after all,
> CFQ is the default I/O scheduler in Linux), but we are having serious
> difficulties to find a benchmark which shows that CFQ is undoubtedly
> better than AS.

The AS io scheduler was removed in 2.6.33 (7 months ago, in commit 
492af6350a5ccf087e4964104a276ed358811458), so you must be running
benchmarks in old kernels. The CFQ scheduler used in recent kernels
should have good performance (if it doesn't, you probably should
write a bug report ccing jens.axboe@oracle.com)

Saludos ;)

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: CFQ I/O scheduler better than AS?
  2010-09-22 12:10 ` Diego Calleja
@ 2010-09-22 15:26   ` Juan PC
  2010-09-23  1:22     ` Yuehai Xu
  0 siblings, 1 reply; 4+ messages in thread
From: Juan PC @ 2010-09-22 15:26 UTC (permalink / raw)
  To: diegocg; +Cc: linux-kernel

Hi Diego,

El mié, 22-09-2010 a las 14:10 +0200, Diego Calleja escribió:
> On Miércoles, 22 de Septiembre de 2010 12:55:08 Juan PC escribió:
> > Hi:
> > 
> > I am sure that, for most people, the clear answer is "yes" (after all,
> > CFQ is the default I/O scheduler in Linux), but we are having serious
> > difficulties to find a benchmark which shows that CFQ is undoubtedly
> > better than AS.
> 
> The AS io scheduler was removed in 2.6.33 (7 months ago, in commit 
> 492af6350a5ccf087e4964104a276ed358811458), so you must be running
> benchmarks in old kernels. The CFQ scheduler used in recent kernels
> should have good performance (if it doesn't, you probably should
> write a bug report ccing jens.axboe@oracle.com)
> 
Well, 2.6.30/31 are not so old ;-)

However, this fact reinforces my question. I guess that AS was removed
due to a good reason, probably, some benchmark results. If so, those are
the benchmarks I am looking for. Do you know their names?

Thanks in advance!

	Juan

PD: BTW, congratulations for your D'Oh blog ;-)

> Saludos ;)
-- 
D. Juan Piernas Cánovas
Departamento de Ingeniería y Tecnología de Computadores
Facultad de Informática. Universidad de Murcia
Campus de Espinardo - 30080 Murcia (SPAIN)
Tel.: +34868887657    Fax: +34868884151
email: piernas@ditec.um.es
PGP public key:
http://pgp.rediris.es:11371/pks/lookup?search=piernas%
40ditec.um.es&op=index

*** Por favor, envíeme sus documentos en formato texto, HTML, PDF o
PostScript :-) ***
You have new mail in /var/spool/mail/piernas



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: CFQ I/O scheduler better than AS?
  2010-09-22 15:26   ` Juan PC
@ 2010-09-23  1:22     ` Yuehai Xu
  0 siblings, 0 replies; 4+ messages in thread
From: Yuehai Xu @ 2010-09-23  1:22 UTC (permalink / raw)
  To: Juan PC; +Cc: linux-kernel, yhxu

Hi Juan,

I don't think the removal of AS is because of its performance compared
with CFQ. Actually, the essential idea of these Non work conserving
schedulers, CFQ and AS, is the same, that is to avoid deceptive
idleness. You can google AS/CFQ, and I am sure you can get enough info
about it.

In my opinion, AS is just a component of CFQ, every single process has
a corresponding cfqq in CFQ, in which anticipation might be done just
as AS. The reason why AS is removed might be because of this. Of
course, I am not expert, this is just my own opinion.

And, except the non work conserving model, CFQ considers fairness
which AS doesn't. You might have found some benchmarks that AS gains
better performance than CFQ. Actually, both of the two schedulers have
some trick parameters to set, for example, its anticipation window,
(antic_expire and slice_idle), you can find it in
/sys/block/sda/queue, different throughput might be gained when you
set it to different value. From this perspective, it might be unfair
to compare these two schedulers because you can optimize the
throughput by configuring the parameters.

Another reason might be because AS is not maintained by developers
since it is just a component of CFQ.

Yuehai

On Wed, Sep 22, 2010 at 11:26 AM, Juan PC <piernas@ditec.um.es> wrote:
> Hi Diego,
>
> El mié, 22-09-2010 a las 14:10 +0200, Diego Calleja escribió:
>> On Miércoles, 22 de Septiembre de 2010 12:55:08 Juan PC escribió:
>> > Hi:
>> >
>> > I am sure that, for most people, the clear answer is "yes" (after all,
>> > CFQ is the default I/O scheduler in Linux), but we are having serious
>> > difficulties to find a benchmark which shows that CFQ is undoubtedly
>> > better than AS.
>>
>> The AS io scheduler was removed in 2.6.33 (7 months ago, in commit
>> 492af6350a5ccf087e4964104a276ed358811458), so you must be running
>> benchmarks in old kernels. The CFQ scheduler used in recent kernels
>> should have good performance (if it doesn't, you probably should
>> write a bug report ccing jens.axboe@oracle.com)
>>
> Well, 2.6.30/31 are not so old ;-)
>
> However, this fact reinforces my question. I guess that AS was removed
> due to a good reason, probably, some benchmark results. If so, those are
> the benchmarks I am looking for. Do you know their names?
>
> Thanks in advance!
>
>        Juan
>
> PD: BTW, congratulations for your D'Oh blog ;-)
>
>> Saludos ;)
> --
> D. Juan Piernas Cánovas
> Departamento de Ingeniería y Tecnología de Computadores
> Facultad de Informática. Universidad de Murcia
> Campus de Espinardo - 30080 Murcia (SPAIN)
> Tel.: +34868887657    Fax: +34868884151
> email: piernas@ditec.um.es
> PGP public key:
> http://pgp.rediris.es:11371/pks/lookup?search=piernas%
> 40ditec.um.es&op=index
>
> *** Por favor, envíeme sus documentos en formato texto, HTML, PDF o
> PostScript :-) ***
> You have new mail in /var/spool/mail/piernas
>
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/
>

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-09-23  1:22 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-09-22 10:55 CFQ I/O scheduler better than AS? Juan PC
2010-09-22 12:10 ` Diego Calleja
2010-09-22 15:26   ` Juan PC
2010-09-23  1:22     ` Yuehai Xu

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).