Re: setitimer expire too early (Kernel 2.4)

From: Willy Tarreau
Date: Thu Jun 30 2005 - 17:01:23 EST


Hi Marcelo,

you type faster than me :-)

On Thu, Jun 30, 2005 at 01:50:53PM -0300, Marcelo Tosatti wrote:

> And what about the side effects:
> This however will produce pathological cases, like having a idle system
> being requested 1 ms timeouts will give systematically 2 ms timeouts,
> whereas currently it simply gives a few usecs less than 1 ms.

Unless I'm mistaken, it's worse. 1 ms will lead to 11 ms because
HZ is still 100 on most common archs in 2.4. Perhaps we could find
a way to round it_real_incr up instead of systematically adding 1
to interval ?

Cheers,
Willy

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