Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
 Post subject: I/O token scheduling?
PostPosted: Wed Oct 05, 2005 9:58 am 
Offline
Senior Member

Joined: Thu Apr 15, 2004 3:18 am
Posts: 52
Website: http://www.rumble.net/
Location: London, UK
My other half has a habit of never filing her emails, so everything goes in the inbox and never gets cleared out. Squirrelmail/IMAP, in its infinite wisdom, seems to really thrash my I/O tokens, so I end up getting timeouts on my site (and MY email, which is well-managed).

Any ideas how I can keep the number of I/O tokens taken by IMAP down to a reasonable level? (That is, apart from hitting the other half with a clue stick 8)


Top
   
 Post subject:
PostPosted: Wed Oct 05, 2005 1:03 pm 
Offline
Senior Member

Joined: Sat Dec 13, 2003 12:39 pm
Posts: 98
I put in a request some time ago for an "ionice" type feature, and it seemed that it had been planned for the kernel. I'm not sure where that's at, but it would probably help your situation. You might also consider modifying the mail client code to scan "/proc/io_tokens" and throttle itself.


Top
   
 Post subject:
PostPosted: Wed Oct 05, 2005 1:06 pm 
Offline
Senior Member

Joined: Sat Dec 13, 2003 12:39 pm
Posts: 98
http://www.linode.com/forums/viewtopic.php?t=1147


Top
   
 Post subject:
PostPosted: Thu Oct 06, 2005 3:06 am 
Offline
Senior Member

Joined: Thu Nov 25, 2004 10:05 am
Posts: 52
What IMAP server are you using?
Are you sure its accessing the mailbox thats using up IO tokens, and not swap thrashing?

I use squirrelmail/courier imap and don't notice problems even accessing large mailboxes (opening a folder with 1000 messages brings me down ~2000 io tokens). People on these forums have reported even better performance with the dovecot IMAP server.

Any hacks that limit the IO usage are going to slow your webmail down a lot, as well as any other services your box runs, so I don't recommend that really.


Top
   
 Post subject:
PostPosted: Thu Oct 06, 2005 3:28 am 
Offline
Senior Member

Joined: Thu Nov 25, 2004 10:05 am
Posts: 52
I should add that its not just your IMAP server that's to blame: squirrelmail isn't the best choice if you are low on resources - it makes loads and loads of connections to your IMAP server, which will cause all sorts of problems with the UW IMAP server.

At work we use prayer which uses persistent connections to the IMAP server, which should also help lower your IO usage if you are using UW-IMAP as I suspect.

You'll neeed to build it yourself though...
http://www-uxsup.csx.cam.ac.uk/~dpc22/prayer/


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


Who is online

Users browsing this forum: No registered users and 4 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