Re:Be your own video hoster with Docker and Nginx
by smegel on Saturday January 09, 2016 @03:47PM
(#10872806)
Well when NGINX introduced thread-pools on Linux to handle async tasks (mainly waiting for block device IO) I think the speed-up was around 8x. Thread-pools make NGINX on Linux tolerable, but it just works flawlessly and beautifully on FreeBSD.
[ Parent
| on HN ]
Re:Be your own video hoster with Docker and Nginx
by corobo on Saturday January 09, 2016 @05:20PM
(#10873127)
Hey that's not a benchmark! :P
Re:Be your own video hoster with Docker and Nginx
by smegel on Saturday January 09, 2016 @08:05PM
(#10873651)
https://www.nginx.com/blog/thread-pools-boost-performance-9x...
...and it was 9x not 8x...
Re:Be your own video hoster with Docker and Nginx
by kbutler on Saturday January 09, 2016 @10:18PM
(#10873981)
The 9x delta is from "a synthetic benchmark that simulates the worst mix of blocking and non-blocking operations". Expect real-world workloads to have significantly less performance impact.
The particular issue is: "The asynchronous interface requires the O_DIRECT flag to be set on the file descriptor, which means that any access to the file will bypass the cache in memory and increase load on the hard disks. That definitely doesn’t make it optimal for many cases.
To solve this problem in particular, thread pools were introduced in NGINX 1.7.11"
So, NGINX doesn't think it's crazy to deploy on linux. And no, Windows is not a better option. "only the select() connection processing method is currently used, so high performance and scalability should not be expected." http://nginx.org/en/docs/windows.html