Update 1 (Mar 29, 2011): Logging and compression now disabled for all servers Update 2 (Apr 14, 2011): Added results for Nginx 1.0
The goal of this benchmark is to compare several web server or caching server regarding their respective ability and performance to server small static files. The servers are optimized, contrary to my previous benchmark, where each server was tested using its default settings. I consider in this benchmark only the most performant open source servers, namely Varnish Cache, Nginx, Lighttpd, Apache Traffic Server as well as G-WAN (free, but not open source), as it was the clear winner of the previous test.
Update 1 (Mar 16, 2011): Apache MPM-Event benchmark added Update 2 (Mar 16, 2011): Second run of Varnish benchmark added Update 3 (Mar 16, 2011): Cherokee benchmark added Update 4 (Mar 25, 2011): New benchmark with the optimized settings is available
According to Jeremy Manson and Paul Tyma, NIO is not faster than the old traditional IO. Paul Tyma argues that since the Native Posix Thread Library (NPTL) arrived in Linux 2.6, multithreading is so cheap that it outperforms the select-based NIO alternative. He goes on to quote some impressive benchmarks from Rahul Bhargava, which show that multithreading gives at least 25% greater throughput that NIO, in a test with 1,700 concurrent connections.
Finally, here are the slides of an interesting presentation given by PaulTyma.
From time to time I need to quickly transfer files from an host to another. Setting up an FTP server is painful, giving an SSH account can be dangerous .. so I’ll present here a quick and efficient solution using Netcat: host1:$ nc -lvp 3333 | tar -xv host2:$ tar -cv file [files...] | nc -v IP_host1 3333
where host1 is listening on port 3333 for files sent by host2.
The default version to be installed is 0.90.1dfsg-3etch10 0, which is the standart Etch version. If we want to install the volatile version:
debian-box:/# apt-get install clamav-freshclam=0.92.1~dfsg-1volatile1 Reading package lists… Done Building dependency tree… Done Suggested packages: clamav-docs The following packages will be upgraded: clamav-freshclam 1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Need to get 12.7MB of archives. After unpacking 3379kB of additional disk space will be used. Get:1 http://apt-cacher etch/volatile/main clamav-freshclam 0.92.1~dfsg-1volatile1 [12.7MB] Fetched 12.7MB in 1s (7263kB/s) Preconfiguring packages … [...]