Re: changing timeslice in linux

2012-08-28 Thread Xin Tong
another question is that when i try to launch many (24) RT processes. some of them do not seem to get scheduled. i query their scheduling properties. they all have SCHED_RR with priority 99, but some of them simply are not taking any CPU. Xin On Tue, Aug 28, 2012 at 1:15 PM, Xin Tong wrote: > i

Re: changing timeslice in linux

2012-08-28 Thread Xin Tong
i changed the TIMESLICE defined in the sched.c 109 /* 110 * These are the 'tuning knobs' of the scheduler: 111 * 112 * default timeslice is 100 msecs (used only for SCHED_RR tasks). 113 * Timeslices get refilled after they expire. 114 */ 115 #define DEF_TIMESLICE (20 *

Re: changing timeslice in linux

2012-08-20 Thread Namhyung Kim
On Mon, 20 Aug 2012 07:51:52 -0700, Xin Tong wrote: > On Sun, Aug 19, 2012 at 10:54 PM, Mike Galbraith wrote: >> On Sun, 2012-08-19 at 11:58 -0700, Xin Tong wrote: >>> I have 2 questions about linux 2.6 x86_64 scheduler. >>> >>> 1. is the default scheduling algorithm SCHED_NORMAL in linux ? >> >>

Re: changing timeslice in linux

2012-08-20 Thread Xin Tong
On Sun, Aug 19, 2012 at 10:54 PM, Mike Galbraith wrote: > On Sun, 2012-08-19 at 11:58 -0700, Xin Tong wrote: >> I have 2 questions about linux 2.6 x86_64 scheduler. >> >> 1. is the default scheduling algorithm SCHED_NORMAL in linux ? > > Yes. Is there any document describing what the sched_normal

Re: changing timeslice in linux

2012-08-19 Thread Mike Galbraith
On Sun, 2012-08-19 at 11:58 -0700, Xin Tong wrote: > I have 2 questions about linux 2.6 x86_64 scheduler. > > 1. is the default scheduling algorithm SCHED_NORMAL in linux ? Yes. > 2. how do i change the time slice in linux source code ? You shouldn't need to. You can tune "slice" by adjusting