Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
 Post subject: Mail Server Performance
PostPosted: Tue Nov 12, 2013 7:24 pm 
Offline
Senior Newbie

Joined: Tue Nov 12, 2013 5:51 pm
Posts: 6
Hi there,

I've had a Postfix/Dovecot installation running for a couple of months now and generally I'm very happy with everything.

The only issue I'm running into is performance at peak times, with roughly a hundred messages sitting in the queue for ten to fifteen minutes waiting for local delivery. Loads, according to "sar", are averaging around 0.25 (just eyeballing it), with peaks never going over 0.50 and plenty (outside of peak times) at or very close to 0.00. If I'm not mistaken, this is just fine, especially on a machine with eight cores.

However, the I/O rate hovers consistently between about 1500 and 1900 during peak times, so I suspect that's where the problem lies.

I'm happy with the overall configuration of the server, so I'm not really looking for suggestions to disable this or fine-tune that and therefore I don't think there's any point in listing all of the components that make up the system. (That said, I've read elsewhere that Amavisd-new is a bit of a hog, so if you do think this is relevant, let me know and I'll list away.) I'm running a 2 GB linode and am happy to upgrade as necessary. In fact, I will probably upgrade to 3 or 4 GB within the next couple of hours (before the next peak), unless a response to this comes in first suggesting something else.

I've read conflicting opinions about running a mail server on a VPS; in fact, the mail accounts on this linode are ones moved from a dedicated server that I'll be retiring soon. However, I've also read that a "modern" VPS should do just fine.

Any suggestions on possible ways to mitigate the performance issue at peak times, or will doubling the RAM likely solve the issue?

Thanks very much.


Craig


Top
   
PostPosted: Tue Nov 12, 2013 7:46 pm 
Offline
Senior Member
User avatar

Joined: Thu Feb 16, 2012 9:01 pm
Posts: 52
Try using a nice tool called iotop


Top
   
PostPosted: Tue Nov 12, 2013 7:59 pm 
Offline
Senior Newbie

Joined: Tue Nov 12, 2013 5:51 pm
Posts: 6
Hi danblack,

Thanks for your reply. OK, maybe I'll delay the upgrade and watch iotop during the next peak. (Things are quiet right now.) But if I already suspect that I/O is the issue (and assuming I'm right), how will this help me determine whether or not a RAM upgrade will address the issue?

Thanks.


Craig


Top
   
PostPosted: Tue Nov 12, 2013 8:12 pm 
Offline
Junior Member

Joined: Fri May 29, 2009 8:40 am
Posts: 37
Sounds rather high. I've currently got a 4GB Linode doing a Postfix/Dovecot setup, average I/O according to the graphs is between 200-250.

Use iotop to find the issue - as upgrading isn't going to fix your excessive I/O.


Top
   
PostPosted: Tue Nov 12, 2013 8:18 pm 
Offline
Senior Member
User avatar

Joined: Thu Feb 16, 2012 9:01 pm
Posts: 52
You linode manager graphs will show IO for swap separately (if you've setup the disk allocations right) so you should know this already.

iotop does have a swapin column.

If you want to see what a application is doing use strace -fe trace=file -p {pid}

I'm thinking its something other than memory though with spam handling apps is quite easy to tweek them accidentally into high memory using configurations.


Top
   
PostPosted: Tue Nov 12, 2013 8:59 pm 
Offline
Senior Newbie

Joined: Tue Nov 12, 2013 5:51 pm
Posts: 6
Hi Alex and Dan,

Thanks. You've reminded that I should have included the current graph, which shows what I already knew about swap usage (pretty steady at about 50 MB), so you're probably both right about an upgrade not being likely to help.

The peaks in the graph below are even worse than the averages (of course), so if the averages are almost ten times higher than what Alex is getting, I do have some component that is causing the problem. I suspect it's Amavisd-new. I'll look into it some more.

Appreciate the help.


Craig


Image


Top
   
PostPosted: Wed Nov 13, 2013 11:54 am 
Offline
Junior Member

Joined: Fri May 29, 2009 8:40 am
Posts: 37
Use iotop for 5 to 10 minutes with: iotop -oa

Then the processes which are causing the highest I/O can be identified easily.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group