Back to front pageView on Hacker News (opens in a new tab)Show HN: ZeroHTTPd: A web server to teach Linux performance, with benchmarks (opens in a new tab)unixism.net472 pointsby shuss (on Hacker News)7 years agounixism.net (opens in a new tab)Linux Applications Performance: IntroductionArticles in this series Part I. Iterative ServersPart II. Forking ServersPart III. Pre-forking ServersPart IV. Threaded ServersPart V. Pre-threaded ServersPart VI: poll-based serverPart VII: epoll-…Comments (57) 16 threadsShow all commentsShowing thread 6 of 16[-]bvinc7 years ago2 replies#Correct me if I'm wrong, but don't modern web servers often use a handful of threads, and use epoll for each thread? If so, could this be a Part VIII?[-]shuss7 years ago1 reply#Yes, IIRC, even Nginx uses the general structure you're describing.xorcist7 years ago#So does Apache with mpm_event, which has been around for close to 15 years now.The fact that you can run Apache in a process pool model doesn't mean you should. That mode was mostly kept to support CGI scripts and old style mod_php.wolf550e7 years ago#nginx and others use worker processes instead of worker threads, with epoll in each worker. This is for robustness and garbage collection, AFAIK.https://nginx.org/en/docs/ngx_core_module.html#worker_proces...
Show HN: ZeroHTTPd: A web server to teach Linux performance, with benchmarks (opens in a new tab)unixism.net472 pointsby shuss (on Hacker News)7 years ago
bvinc7 years ago2 replies#Correct me if I'm wrong, but don't modern web servers often use a handful of threads, and use epoll for each thread? If so, could this be a Part VIII?
xorcist7 years ago#So does Apache with mpm_event, which has been around for close to 15 years now.The fact that you can run Apache in a process pool model doesn't mean you should. That mode was mostly kept to support CGI scripts and old style mod_php.
wolf550e7 years ago#nginx and others use worker processes instead of worker threads, with epoll in each worker. This is for robustness and garbage collection, AFAIK.https://nginx.org/en/docs/ngx_core_module.html#worker_proces...
Comments (57) 16 threads
Show all comments
Showing thread 6 of 16
The fact that you can run Apache in a process pool model doesn't mean you should. That mode was mostly kept to support CGI scripts and old style mod_php.
https://nginx.org/en/docs/ngx_core_module.html#worker_proces...