How to reduce disk io load in exim.
In exim, most of read/writes are going to /var/exim/spool/db, where DBs for callout/ratelimit/domain keys caching resides. Since this are simply cache, this could be miunted on tmpfs. Follow the below steps to achieve this,
=-=-=-=-=-=-
cp -ax /var/spool/exim/db /var/spool/exim/db.tmp
mount -t tmpfs -o size=128m tmpfs /var/spool/exim/db
mv /var/spool/exim/db.tmp/* /var/spool/exim/db/
rm -rf /var/spool/exim/db.tmp/
=-=-=-=-=-=-
In exim, most of read/writes are going to /var/exim/spool/db, where DBs for callout/ratelimit/domain keys caching resides. Since this are simply cache, this could be miunted on tmpfs. Follow the below steps to achieve this,
=-=-=-=-=-=-
cp -ax /var/spool/exim/db /var/spool/exim/db.tmp
mount -t tmpfs -o size=128m tmpfs /var/spool/exim/db
mv /var/spool/exim/db.tmp/* /var/spool/exim/db/
rm -rf /var/spool/exim/db.tmp/
=-=-=-=-=-=-