If you are getting 5000 pageviews per day, this is one every 17 seconds. A 1GB Linode should be able to handle this easily unless you are using an incredibly bloated web application or are running many, many other services on the same Linode.
Having some of your swap being used is a good thing; it means that little-used memory pages aren't consuming your RAM. If you are actively transferring data into and out of swap*, this
is a problem and a sign that you are using too much memory. Fooling with swap size or swappiness values is not likely to help.
You can reduce memory usage by lowering the MaxClients value for Apache, or change to another MPM (or another webserver) as noted above.
*I don't know if Longview gives you visibility into this. You could run something like the following to get a look at swap activity every five minutes over a 12-hour period. The si and so columns show data being read from and written to swap.
Code:
vmstat 300 144
srpurdy wrote:
You should definitely get away from mod_php as this is not a secure way to run php.
srpurdy, what is your source for this?