1

Topic: swap file usage

==== Required information ====
- iRedMail version: 0.8.3
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):  MySQL
- Linux/BSD distribution name and version: Centos 6.3
- Related log if you're reporting an issue:
====

i have one virtual cpu on a cloud host with only 512MB RAM.. and i am attempting to run iredmail alongside a website on the same server. the website is a social network.
with no visitors other than me, it all works ok; however, the website gradually becomes slower until i restart httpd service.
i realise that this is at least partially caused by the system using the swap file more and more.

since i am the only email user, i am wondering if anyone can provide tips or a link as to how to configure the swap file system to favour the email apps for swapping, rather than the webserver apps, so that the webserver apps have minimal swapping and hopefully speeding up the website a bit.

anyone?
thanks

2

Re: swap file usage

I suggest turning off spam scanning in Amavisd to save some memory for several days.
You can find below line on top of file /etc/amavisd/amavisd.conf:

# @bypass_spam_checks_maps  = (1);  # controls running of anti-spam code

Remove the first '#' and restart Amavisd service, then track the swap issue.