lkml.org 
[lkml]   [2003]   [Aug]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: What's the timeslice size for kernel 2.6.0-test2, IA32?
Mark Mielke wrote:
> On Fri, Aug 01, 2003 at 02:04:46PM -0230, Stephen Anthony wrote:
>
>>It would be great if sleeps were 1ms accurate instead of 10ms. It would
>>make synchronization code a lot easier.
>
>
> Doesn't this depend on what HZ you define for the kernel?
>
> If you want 1ms sleep, just set HZ to 1000HZ+, and give your process a
> high priority?
>
> mark
>

From user space, at least, you can configure /dev/rtc to 1024HZ and then
select on it's file descriptor. That will give you fairly reliable 1ms (or so)
sleeps, especially if you set your niceness to a high-priority setting.

--
Ben Greear <greearb@candelatech.com>
Candela Technologies Inc http://www.candelatech.com


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:47    [W:0.042 / U:0.832 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site