Re: dynamic sched timeslices

Pavel Machek
2004-03-25T14:25:37Z

Hi!

> attached patch allows userspace to tune the scheduling timeslices.
> It can be used for a couple of things:
> * Tune a workload for batch processing:
> You'd probably wnat to use long timeslices in order to not reschedule
> as often to make good use of your CPU caches
> * Tune a workload for interactive use:
> Under load, you may want to reduce the scedulilng latencies by using
> shorter timeslices (and there are situations where the interactiviy
> tweak -- even if they were perfect -- can't save you).
> * Tune the ration betweeen maximum and minimum timeslices to make
> nice much nicer e.g.

If you make ration much bigger, you are going to see
priority inversion issues. Some kind of "boost priority when in
kernel" would be needed...

--
64 bytes from 195.113.31.123: icmp_seq=28 ttl=51 time=448769.1 ms