News for hackers. Stuff that matters.
Re:Let's Do Some Science: Zed's Test Stack for poll vs. epoll by gthank on Wednesday August 04, 2010 @09:07AM (#1574378)
Having followed most of the comments on both these threads, I don't think it's fair to characterize Zed's position as saying "epoll is always bad". I think a better characterization would be: "epoll is not automagically better under every imaginable scenario".

You may argue that nobody is making any such claim, but I can tell you that the sections of the blogosphere I skim via HN, reddit, etc. do imply it. Maybe the authors just assume everyone can infer that every decision has tradeoffs and there's no need to discuss them in depth for this particular case, or maybe—and the nature of the blogosphere leaves me inclined to think that this is the case—most of those authors never consciously thought about those tradeoffs because epoll happens to be a good fit for their particular problem. Either way, Zed is the first person I've seen trying to explicitly identify and quantify those trade-offs for poll vs. epoll. As such, I think he's doing the community a service.

If this research leads to a better implementation of epoll, or a server that requires less tuning to do well under a particular load, that is great for everyone. Even if it doesn't lead to any great improvements, a better-educated developer population that makes more informed decisions is still a net win for the world.

Re:Let's Do Some Science: Zed's Test Stack for poll vs. epoll by pphaneuf on Wednesday August 04, 2010 @09:42PM (#1576852)
Right on. Myself, I always figured epoll was a bit slower than poll when most/all of the fds are ready all the time, from reading the code.

Now, there's an experiment to figure out what the threshold is, and frankly, it's a bit lower than I had hoped (I would have guessed 0.9, 0.8 at worst), which is exactly why having the actual data is awesome.

Re:Let's Do Some Science: Zed's Test Stack for poll vs. epoll by zedshaw on Wednesday August 04, 2010 @11:09AM (#1574653)
Thank you. I very much appreciate your comments.
Re:Let's Do Some Science: Zed's Test Stack for poll vs. epoll by gthank on Wednesday August 04, 2010 @11:43AM (#1574742)
I appreciate the work you're doing. I'm not sure I've worked on a system that would really benefit from Mongrel2, but I think it's a pretty interesting concept, and there's always a chance I work on something more interesting in the future. Even if I don't, I almost always learn something or gain a different perspective from reading your stuff, and that's reason enough to be thankful.