I have an old Slackware 9.0 mail server on a VM at Linode.com. It has around 130GB of mail hosted on it, in Maildir format on partitioned, separate Ext3 filesystems (largest one is 92GB). I'm in the process of planning a server upgrade (completely new installation with most recent Slackware) within 2 weeks, or so, but it's non-trivial, hence wishing to solve the current issue before the situation worsens.
Over the past few months various utilities began segfaulting and some processes have been sporadically shutting down. The primary applications running on the server are qpsmtpd, qmail, Dovecot, ClamAV and bogofilter and the server typically has a very low system load, though around 300 active IMAP users with approx 1 mail per second entering, or leaving the system.
The VM was moved to an 8GB Linode about 3 weeks ago and the issue appears to have worsened. I have a hunch that the issue is related to running a 32 bit OS with more memory than the OS can use. I have limited experience with the kernel and how it handles memory.
ClamAV restarts 2-3 times per day and qpsmptpd (written in Perl, but preforked) every few hours.
Also, running 'ls' in Maildirs with a large number of messages (files) segfaults, with an example strace log found here:
More info:
Linux kernel = 3.9.3-x86
Memory = 8GB
$ free
total used free shared buffers cached
Mem: 8286016 3672400 4613616 0 266632 2442144
-/+ buffers/cache: 963624 7322392
Swap: 1048572 0 1048572
I'd greatly appreciate some pointers and will gladly supply more detail for a diagnosis.