The difference between a tuned performance BSD webserver and a stock linux webserver

Nov 8th, 2011 | By | Category: Internet, Linux / Freebsd

First up we have a tuned FreeBSD 8.1 server running Apache 2.2(clearly working up a sweat)

56MB of virtual memory and 40MB of resident memory usage

PID USERNAME THR PRI NICE SIZE RES STATE C TIME WCPU COMMAND
55392 www 1 106 0 56460K 39664K CPU2 2 15:43 50.49% httpd

 

Follow that up with what is probably a pretty stock linux server running apache 2.2.

98MB or virtual memory usage and 73MB of resident.

PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
7546 nobody 15 0 98648 73m 2040 S 0.7 1.0 0:00.53 httpd

 

That’s nearly HALF the memory usage for 2 servers doing exactly the same thing running exactly the same software minus the OS.  See kids, it pays to play with your httpd.conf 🙂  The irony of course is that the tuned server has 2GB of ram and the stock server has 16GB.  Oh well 🙂

Search the blog for tuning tips but one of the key things is knowing what every apache module does and ditching absolutely every single one you don’t absolutely need.  Trim the fat off apache and then you can work on tuning the actual settings in apache.

PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
Tags: , , , , , , ,

Leave a Comment