"Niels Dettenbach" <nd%syndicat.com@localhost> writes: > volume of 5 GB swap. The swap is needed as there are peaks of required > memory sometimes (once or twice a month) where the system stops with > out of mem otherwise. In most time the swap is not required, but used > (I assume i.e. for file caching). If i restart several of that > mem-pigs / deamons (i.e. once a day) within the system the swap was > wiped out and the sytsm seems to run faster (with less load). There > are daemons who doenst offer control of their caching or mem-usage > behaviour byself. As others said, your problem is badly-behaved daemons. Daemons that intend to run forever should not accumulate memory usage. So if they do, add a cron job to restart them daily. If it's apache, you might try an hourly reload and a daily restart. apache might be ok but with embedded python it can get leaky. reload is nice in that child server processes are allowed to finish and new ones are started, but the main process remains, so there is no losss of service. However it does not recover from leaks in the main process.
Attachment:
pgpwGkhOABFM8.pgp
Description: PGP signature