Re: sched_clock() uses are broken

Nick Piggin
2006-05-03T00:53:48Z

Andi Kleen wrote:
> On Tuesday 02 May 2006 18:54, Christopher Friesen wrote:
>
>>Andi Kleen wrote:
>>
>>
>>>Agreed it's a problem, but probably a small one. At worst you'll get
>>>a small scheduling hickup every half year, which should be hardly
>>>that big an issue.
>>
>>Presumably this would be bad for soft-realtime embedded things. Set-top
>>boxes, etc.
>
>
> SCHED_RR/FIFO are not affected. AFAIK it's only used by the interactivity
> detector in the normal scheduler. Worst case that happens is that a
> process is not detected to be interactive when it should once, which
> gives it only a small penalty. On the next time slice everything will be ok again.

Other problem is that some people didn't RTFM and have started trying to
use it for precise accounting :(

--
SUSE Labs, Novell Inc.
Send instant messages to your online friends http://au.messenger.yahoo.com