public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* What's the timeslice size for kernel 2.6.0-test2, IA32?
@ 2003-08-01 15:51 Stephen Anthony
  2003-08-01 16:13 ` Con Kolivas
  0 siblings, 1 reply; 4+ messages in thread
From: Stephen Anthony @ 2003-08-01 15:51 UTC (permalink / raw)
  To: linux-kernel

I haven't been able to find this information anywhere.  I know HZ was 
increased to 1000, but was the timeslice decreased to 1 ms (from 10 ms) 
as well?

Steve

^ permalink raw reply	[flat|nested] 4+ messages in thread
* Re: Re: What's the timeslice size for kernel 2.6.0-test2, IA32?
@ 2003-08-01 16:34 Stephen Anthony
  2003-08-01 18:34 ` Mark Mielke
  0 siblings, 1 reply; 4+ messages in thread
From: Stephen Anthony @ 2003-08-01 16:34 UTC (permalink / raw)
  To: linux-kernel

>> I haven't been able to find this information anywhere.  I know HZ was
>> increased to 1000, but was the timeslice decreased to 1 ms (from 10 ms)
>> as well?
>
> Depends on nice of the task. Nice 0 tasks get 102ms.

I don't think I asked the right question :)  If I call usleep(x) or 
nanosleep(x) with kernel 2.4.21, and x < 10, the sleep would still last 
10 ms because of the timeslice.  All sleeps would be a multiple of 10 ms.

If I call usleep(x) or nanosleep(x) in 2.6.0-test2, what 'multiple' can I 
expect?  Maybe I mean granularity instead of timeslice.  Basically, I 
want to know how 'soft' of a real-time system the new kernel is.

It would be great if sleeps were 1ms accurate instead of 10ms.  It would 
make synchronization code a lot easier.

Steve

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2003-08-02  9:26 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-08-01 15:51 What's the timeslice size for kernel 2.6.0-test2, IA32? Stephen Anthony
2003-08-01 16:13 ` Con Kolivas
  -- strict thread matches above, loose matches on Subject: below --
2003-08-01 16:34 Stephen Anthony
2003-08-01 18:34 ` Mark Mielke
2003-08-01 19:29   ` Ben Greear
2003-08-02  9:25     ` george anzinger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox