View previous topic :: View next topic |
Author |
Message |
-=GGW=- $ol!d $n4>|e Veteran
Joined: 12 Apr 2004 Posts: 1616 Location: USA
|
Posted: Wed Nov 11, 2009 12:54 am Post subject: Kernel scheduler testing |
|
|
Hey guys, i want to run some analysis / tests on different scheduling algorithms. Is there a system call or some other type of interface i can utilize to switch the kernels scheduler on the fly? Is there any documentation on this? Any pointers would be helpful. Thanks!
-Mike |
|
Back to top |
|
|
eccerr0r Watchman
Joined: 01 Jul 2004 Posts: 9824 Location: almost Mile High in the USA
|
Posted: Wed Nov 11, 2009 1:19 am Post subject: |
|
|
I don't think this is possible; this was part of the Con Kolvas scheduler issues; besides, if you rmmod the scheduler, what thread should the machine run next... I don't think there's a "default" as usually this would add more instruction latency to scheduling.
If you mean the disk scheduler, that already has an interface, can look at the anticipatory / deadline / cfs / NOP scheduler code... _________________ Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching? |
|
Back to top |
|
|
-=GGW=- $ol!d $n4>|e Veteran
Joined: 12 Apr 2004 Posts: 1616 Location: USA
|
Posted: Wed Nov 11, 2009 1:40 am Post subject: |
|
|
what if i implement a system call to rmmod the scheduler and insmod a different one?
wait, can the scheduler even be modular? It seems odd to make a modular schedular. |
|
Back to top |
|
|
eccerr0r Watchman
Joined: 01 Jul 2004 Posts: 9824 Location: almost Mile High in the USA
|
Posted: Wed Nov 11, 2009 4:18 am Post subject: |
|
|
No, the Linux process scheduler is not modular. It would require quite a bit of work and performance overhead to modularize it. _________________ Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching? |
|
Back to top |
|
|
|