Adding new I/O scheduler to Linux Kerenel

Submitted by jayapoo
on September 1, 2005 - 10:49am

Hi all,

Does anyone know how to add a new source code into a Linux Kernel. Specifically, I have a new I/O scheduler (my own algorithm developed for research purposes) that I want to add to the Linux compilation tree. So what do I need to do step by step so that when I re-compile the kernel, my new scheduler is also part of the OS and I can also switch scheduler by echoing my scheduler name to /sys/block//queue/scheduler like we can do for AS, Deadline, NOOP and CFQ.

Any pointers..would be appreciated..

Thanks,
Jay

Put your IO scheduler in driv

Ano Nymous
on
September 1, 2005 - 11:25am

Put your IO scheduler in drivers/block/, add it to the Makefile and optionally also to elevator_setup_default() in elevator.c. The rest must be done in your code, but that should be simple enough with noop.c as example.

Thanks

J (not verified)
on
September 6, 2005 - 12:10pm

Thanks!.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.