Re: CPU POSIX timers livelock

From: Oleg Nesterov
Date: Fri May 02 2008 - 13:28:22 EST


On 05/02, Bj?rn Steinbrink wrote:
>
> Hm, I have some message in that thread from April they don't seem to be
> on lkml.org nor in the bugzilla though. Oh well, I can send you an mbox
> of that thread in a private mail, just let me know if you want that.

Me too please ;)

Please note there is a related problem if we have a single thread but
a lot of timers attached to this thread. If the signal is ignored, each
timer should be re-armed, this all can consume >= 1/HZ CPU time.
We have "maxfire = 20" in check_thread_timers/check_process_timers to
prevent this, but it is just a workaround. And it is a bit silly to just
waste the CPU if the signal is ignored, arm_timer() is heavy and doesn't
scale well.

However, I have already forgot this code, perhaps I missed something,
and at least maxfire does help.

Oleg.

--
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/