3 ms·
Zed, would you stop with the strawman bullshit already? Nobody serious ever claimed epoll was always faster than poll. The very graphs you linked to in your o
by jfager 16y ago
Zed, would you stop with the strawman bullshit already? Nobody serious ever claimed epoll was always faster than poll. The very graphs you linked to in your original post, the ones that you said were "flat out" wrong, themselves showed that poll was faster with smaller numbers of inactive fds on certain benchmarks.
And you don't need a benchmark to find it out, either. Just think about it. Poll doesn't scale because even when you have a ton of dead connections, you still have to iterate over every single fd that you're tracking when you're notified of an event. The array that you get back from epoll only contains active fds. As the active/total ratio goes up, you're eventually going to be doing just as much work as you would be doing with poll (iterating over every single fd), except you're also going to have taken the hit of the work to support epoll itself.
In other words, when ATR reaches a certain threshold, setting aside the possibility of a confounding (there you go, I used your word du jour) implementation detail, there's no possible way epoll can be as fast or faster than poll. It will always be slower. And if you never realized it, it's simply because you didn't stop and give it 5 seconds of thought, not because you were lured in by the malicious lies of the ignorant epollers.
The only interesting thing your original post illustrated vis-a-vis poll vs epoll was what the actual threshold was for your particular machine and benchmark.
Superpoll is an interesting idea, but there are serious issues with the approach you described. By adding the overhead of managing the epoll/poll migrations, you're inherently going to negatively impact the pure performance of both. I might have read it wrong, but it also sounded like you intended to start connections off in poll and migrate them over to epoll as their activity ratio went down. But with that approach, if you're getting spiky traffic that hits once and then just waits for the connection to time out, you're getting the absolute worst of poll, and then possibly spending the time to migrate over to epoll where it's just going to wait to die anyways.
Anyways, getting a negative response is hardly justification for posting someone's picture and ridiculing his appearance. It's that kind of behavior that makes people decide you're not worth dealing with regardless of how good your code is or how smart you are.
- zedshaw 16y agoYou keep using this word "strawman" but the way you use it is the way Scarecrow would use it on the Yellow Brick Road. Otherwise, very good reasoned argument. I'll be trying some stuff out and you can pitch in comments along this vein then I'll gladly listen. Thank you for disagreeing with me. However, when someone says things to me the way blasdel did then, and not expect me to insult back, then they're in the wrong game. You can't dish it out and expect to not get the same back. I most definitely expect it back and take it on the chin frequently. That's also why there's no pictures of me on the internet in my underwear. Keep it civil and I keep it civil. Be a jerk and I'll be a jerk, and frankly that's how the "real world" works. You get what you give.
- jfager 16y agohttp://www.logicalfallacies.info/ambiguity/straw-man/ http://www.logicalfallacies.info/ambiguity/straw-man/ http://www.nizkor.org/features/fallacies/straw-man.html http://www.nizkor.org/features/fallacies/straw-man.html http://en.wikipedia.org/wiki/Straw_man http://en.wikipedia.org/wiki/Straw_man Saying that epoll's proponents perpetuate a myth that epoll is always faster than poll is either untrue or based on a biased selection of mistaken, untrustworthy epoll proponents. That's a classic strawman. blasdel was out of line, but it was just words, it was on topic, and it was buried in a comment thread. By your own standard of "you get what you give", your response was disproportionate. Anyways, like I've said, I'm looking forward to seeing how your poll/epoll hybrid works out, and to being proven wrong. I'll be glad to offer up any thoughts as you get it working.