Re: replace the default scheduler code with a udev rule

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 03/03/2011 09:42 AM, Heiko Carstens wrote:

> I leave it up to Stefan W. and Stefan H. to make comments to your
> suggestion. Thanks!
> 

also, why deadline over cfq ?

_old_ IBM papers show a little gain of deadline in _some_ cases, but *today* ??

-thanks-

> Full quote:
> 
>> hi,
>>
>> udev can handle it, as do 60-readahead.rules with read_ahead_kb
>> in s390-tools.
>>
>> change part of this, 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;
>> }
>>
>>
>> for this other, 61-scheduler.rules :
>>
>> #
>> # Rules to change the default scheduler to deadline
>> # This file should be installed in /etc/udev/rules.d
>> #
>>
>> SUBSYSTEM!="block", GOTO="ra_end"
>>
>> ACTION!="add", GOTO="ra_end"
>> # on device add change the default scheduler to deadline
>> KERNEL=="sd*[!0-9]", ATTR{queue/scheduler}="deadline"
>> KERNEL=="dasd*[!0-9]", ATTR{queue/scheduler}="deadline"
>>
>> LABEL="ra_end"
>>
>>
>> simpler, more flexible and less C code.
>>
>> -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.»
--
To unsubscribe from this list: send the line "unsubscribe linux-s390" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Kernel Development]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Info]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Linux Media]     [Device Mapper]

  Powered by Linux