Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Kernel scheduler testing
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
-=GGW=- $ol!d $n4>|e
Veteran
Veteran


Joined: 12 Apr 2004
Posts: 1616
Location: USA

PostPosted: Wed Nov 11, 2009 12:54 am    Post subject: Kernel scheduler testing Reply with quote

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
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 9824
Location: almost Mile High in the USA

PostPosted: Wed Nov 11, 2009 1:19 am    Post subject: Reply with quote

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
View user's profile Send private message
-=GGW=- $ol!d $n4>|e
Veteran
Veteran


Joined: 12 Apr 2004
Posts: 1616
Location: USA

PostPosted: Wed Nov 11, 2009 1:40 am    Post subject: Reply with quote

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
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 9824
Location: almost Mile High in the USA

PostPosted: Wed Nov 11, 2009 4:18 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum