On Sun, 3 Apr 2005, Casey Allen Shobe wrote: >On Thursday 31 March 2005 17:27, Andreas Aardal Hanssen wrote: >> the files are stored in LF/Unix style in Maildir (why, oh why?) 5000 >> messages, calculating the size of each message, renders an average mail >> server useless because of the immense I/O load. >What's wrong with a simple `du` on the maildir?
Yes, or each file could be stat'ed when the maildir is scanned, and this size could be used. It still doesn't solve the load problem, though. Stat'ing 19k files in my qmail folder takes me 2.5 minutes. My INBOX takes 10 seconds with 1500 messages.. Compared to the single stat of mbox, Maildir really can't compete.. :-/ Andy :-) -- Andreas Aardal Hanssen | http://www.andreas.hanssen.name/gpg Author of Binc IMAP | "It is better not to do something http://www.bincimap.org/ | than to do it poorly."
