Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Sendmail is installed on the server.

It sends an average of 6 emails at 3K per second and writes 18 files in /var/spool/mqueue-client.

Because of this high disk writes iotop: Total DISK WRITE: 1605.77 K/s. On another test server I wrote a script that sends 20 emails at 3K and DISK WRITE increases from 0 to 1500 K/s

Who can tell why such a high Total DISK WRITE depends sendmail and how can I reduce it?

share|improve this question
    
Are you sending 6 mails (with size of 3K) per second or are you sending 6 mails at a 3K per second rate? –  adamo Mar 6 '12 at 8:48

1 Answer 1

If your /var/spool/mqueue and your /var/spool/mqueue-client directories have qf, df and xf subdirectories, then you can mount the xf ones in memory. If such subdirectories do not exist, wait for your queue to empty, then stop sendmail, create them and mount as appropriately.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.