Re: sys_epoll_wait high CPU load in 2.6.37

From: Eric Dumazet
Date: Wed Jan 26 2011 - 11:00:00 EST

Le mercredi 26 janvier 2011 Ã 07:52 -0800, Davide Libenzi a Ãcrit :

> For "above", I meant the current epoll expire time calculation, which was
> described above in the message ;)

Well, problem was not an overflow, but doing a loop 2.000.000 times ;)

> The hint for a timespec_add_ms() was because we must be doing something
> similar in poll, don't we (/me got no code in front ATM)?

Apparently its done differently in poll(), using
poll_select_set_timeout() helper.

Give me some minutes I'll try to cook an alternate patch

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at