3 ms·
I'd be interested to see if the idea of switching between epoll and poll at 60% ATR would have too much overhead as to be impractical. Re: > 60% active fd's be
by lhorie 16y ago
I'd be interested to see if the idea of switching between epoll and poll at 60% ATR would have too much overhead as to be impractical.
Re: > 60% active fd's being real-life or not, I don't really see what's the problem in wanting to handle that case in a project whose goal is basically to keep humming along nicely regardless of what you throw at it.
- pphaneuf 16y agoAdding/removing from the poll() array is more or less free, but with epoll, you have to use epoll_ctl(), so you'd definitely want an hysteresis to avoid bouncing things around too much.