kernel - Scheduler hacking in Freebsd 5.2.1 -


How do I modify thread preferences, umm ... timesharing class? If I want to implement my own scheduler, how do I have to do this? (As I have prioritized on my own terms) how do I play with the time values ​​(or the amount of time, as they are called by many people)

edit I thought the time quantum variable is defined in the set time. But modify this variable, the whole system time will modify quantum, right? If so, how do I do it for the TimesShire class?

You can change the current FreeBSD versions to sysctl (8) , using the variable kern.sched.slice . To see if your version is present, type

  sysctl kern.sched.slice  

, as something should be returned:

  kern.sched.slice: 12  

If you get the

  sysctl: unknown oyd 'kern.sched.slice'  

Then sysctl is not yet present on FreeBSD 5.2.1.


Comments