* deadline ALWAYS default for dasd devices(s390) ?
@ 2010-04-26 12:34 Xose Vazquez Perez
2010-05-05 6:16 ` Heiko Carstens
0 siblings, 1 reply; 5+ messages in thread
From: Xose Vazquez Perez @ 2010-04-26 12:34 UTC (permalink / raw)
To: linux-s390, linux-kernel
hi,
why is it FORCED ? bypassing a GLOBAL setting and also the kernel command line !!!
drivers/s390/block/dasd.c
/*
* Allocate and initialize request queue and default I/O scheduler.
*/
static int dasd_alloc_queue(struct dasd_block *block)
{
int rc;
block->request_queue = blk_init_queue(do_dasd_request,
&block->request_queue_lock);
if (block->request_queue == NULL)
return -ENOMEM;
block->request_queue->queuedata = block;
elevator_exit(block->request_queue->elevator);
block->request_queue->elevator = NULL;
rc = elevator_init(block->request_queue, "deadline");
if (rc) {
blk_cleanup_queue(block->request_queue);
return rc;
}
return 0;
}
-thanks-
--
«Allá muevan feroz guerra, ciegos reyes por un palmo más de tierra;
que yo aquí tengo por mío cuanto abarca el mar bravío, a quien nadie
impuso leyes. Y no hay playa, sea cualquiera, ni bandera de esplendor,
que no sienta mi derecho y dé pecho a mi valor.»
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: deadline ALWAYS default for dasd devices(s390) ?
2010-04-26 12:34 deadline ALWAYS default for dasd devices(s390) ? Xose Vazquez Perez
@ 2010-05-05 6:16 ` Heiko Carstens
2010-05-05 7:52 ` Stefan Weinhuber
0 siblings, 1 reply; 5+ messages in thread
From: Heiko Carstens @ 2010-05-05 6:16 UTC (permalink / raw)
To: Xose Vazquez Perez, Stefan Weinhuber, Horst Hummel,
Stefan Haberland
Cc: linux-s390, linux-kernel
On Mon, Apr 26, 2010 at 02:34:16PM +0200, Xose Vazquez Perez wrote:
> hi,
>
> why is it FORCED ? bypassing a GLOBAL setting and also the kernel command line !!!
>
> drivers/s390/block/dasd.c
>
> /*
> * Allocate and initialize request queue and default I/O scheduler.
> */
> static int dasd_alloc_queue(struct dasd_block *block)
> {
> int rc;
>
> block->request_queue = blk_init_queue(do_dasd_request,
> &block->request_queue_lock);
> if (block->request_queue == NULL)
> return -ENOMEM;
>
> block->request_queue->queuedata = block;
>
> elevator_exit(block->request_queue->elevator);
> block->request_queue->elevator = NULL;
> rc = elevator_init(block->request_queue, "deadline");
> if (rc) {
> blk_cleanup_queue(block->request_queue);
> return rc;
> }
> return 0;
> }
Horst, Stefan W. or Stefan H. should be able to answer your question.
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: deadline ALWAYS default for dasd devices(s390) ?
2010-05-05 6:16 ` Heiko Carstens
@ 2010-05-05 7:52 ` Stefan Weinhuber
2010-05-05 7:55 ` Michael Tokarev
2010-05-06 7:34 ` Xose Vazquez Perez
0 siblings, 2 replies; 5+ messages in thread
From: Stefan Weinhuber @ 2010-05-05 7:52 UTC (permalink / raw)
To: Heiko Carstens
Cc: Xose Vazquez Perez, Stefan Weinhuber, Horst Hummel,
Stefan Haberland, linux-s390, linux-kernel
Heiko Carstens wrote:
> On Mon, Apr 26, 2010 at 02:34:16PM +0200, Xose Vazquez Perez wrote:
>> hi,
>>
>> why is it FORCED ? bypassing a GLOBAL setting and also the kernel command line !!!
>>
>
> Horst, Stefan W. or Stefan H. should be able to answer your question.
At the time this change was made we had the problem that the
default scheduler chosen by the distributions resulted in
bad performance for DASD devices.
I don't know what options were considered back then, but
I think that having the device driver set a driver specific default
is better than forcing the whole system to use 'our' scheduler.
I agree that hard coding this choice into the driver is not pretty,
but it is pragmatic. Some generic mechanism for setting driver specific
defaults would be nicer, but I doubt that many other drivers would
actually benefit from such an interface.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: deadline ALWAYS default for dasd devices(s390) ?
2010-05-05 7:52 ` Stefan Weinhuber
@ 2010-05-05 7:55 ` Michael Tokarev
2010-05-06 7:34 ` Xose Vazquez Perez
1 sibling, 0 replies; 5+ messages in thread
From: Michael Tokarev @ 2010-05-05 7:55 UTC (permalink / raw)
To: Stefan Weinhuber
Cc: Heiko Carstens, Xose Vazquez Perez, Stefan Weinhuber,
Horst Hummel, Stefan Haberland, linux-s390, linux-kernel
05.05.2010 11:52, Stefan Weinhuber wrote:
>> On Mon, Apr 26, 2010 at 02:34:16PM +0200, Xose Vazquez Perez wrote:
>>> hi,
>>>
>>> why is it FORCED ? bypassing a GLOBAL setting and also the kernel
>>> command line !!!
>
> At the time this change was made we had the problem that the
> default scheduler chosen by the distributions resulted in
> bad performance for DASD devices.
> I don't know what options were considered back then, but
> I think that having the device driver set a driver specific default
> is better than forcing the whole system to use 'our' scheduler.
>
> I agree that hard coding this choice into the driver is not pretty,
> but it is pragmatic. Some generic mechanism for setting driver specific
> defaults would be nicer, but I doubt that many other drivers would
> actually benefit from such an interface.
See also another thread started just two days ago:
http://lkml.org/lkml/2010/5/3/404
Just... one more data point... ;)
/mjt
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: deadline ALWAYS default for dasd devices(s390) ?
2010-05-05 7:52 ` Stefan Weinhuber
2010-05-05 7:55 ` Michael Tokarev
@ 2010-05-06 7:34 ` Xose Vazquez Perez
1 sibling, 0 replies; 5+ messages in thread
From: Xose Vazquez Perez @ 2010-05-06 7:34 UTC (permalink / raw)
To: Stefan Weinhuber
Cc: Heiko Carstens, Stefan Weinhuber, Horst Hummel, Stefan Haberland,
linux-s390, linux-kernel
On 05/05/2010 09:52 AM, Stefan Weinhuber wrote:
hi,
> At the time this change was made we had the problem that the
> default scheduler chosen by the distributions resulted in
> bad performance for DASD devices.
Have you done recently new cfq vs. deadline tests, in z/VM
and LPAR ?
> I agree that hard coding this choice into the driver is not pretty,
> but it is pragmatic.
It's awful. Easier and simpler from user space: /sys/block/dasdX/queue/scheduler
> Some generic mechanism for setting driver specific
> defaults would be nicer, but I doubt that many other drivers would
> actually benefit from such an interface.
see s390-tools-1.8.4/etc/udev/rules.d/60-readahead.rules
That's the way to do it.
-thanks-
--
«Allá muevan feroz guerra, ciegos reyes por un palmo más de tierra;
que yo aquí tengo por mío cuanto abarca el mar bravío, a quien nadie
impuso leyes. Y no hay playa, sea cualquiera, ni bandera de esplendor,
que no sienta mi derecho y dé pecho a mi valor.»
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2010-05-06 7:35 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-04-26 12:34 deadline ALWAYS default for dasd devices(s390) ? Xose Vazquez Perez
2010-05-05 6:16 ` Heiko Carstens
2010-05-05 7:52 ` Stefan Weinhuber
2010-05-05 7:55 ` Michael Tokarev
2010-05-06 7:34 ` Xose Vazquez Perez
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox