On 05/06/2011 08:53 PM, Jack wrote:
Hello All,
Im trying to figure out how I can speed up the "cleanup process" when
receiving messages from one of my own servers.
We are flushing about 600+ messages from the backup server to the
primary. In that process cleanup is crawling and bringing up the load
on the server to like 110.
Is it that we are filtering those messages?
No.
I do have the IP's from all of our servers in the mynetworks config of
the main.cf.
That's irrelevant to the issue.
Is there anything I can do to process that a little quicker and not
choke the box to death?
Cleanup(8) accesses many *_maps.
Don't use bog-slow storage methods for any maps that cleanup(8) needs
for every message.
For anything under 100K entries, hash or cdb or cidr maps will be faster
than network-based lookups (mysql, ldap, tcp).
If I had to WAG, you're using mysql maps - bad ones, with useless
indexes, and for no reason anyone can discern.
--
J.