Re: [binc] Maildirsize

Peter Stuge <[email protected]>
Newsgroups gmane.mail.imap.binc.general
Message-ID <[email protected]>
On Thu, Apr 07, 2005 at 09:51:16PM +0200, Andreas Aardal Hanssen wrote:
> 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. 

Quite right. The du command does just that, too.

One thing to consider is that the underlying filesystem used for the
mailbox volume can make quite a difference. ext2 and ext3 perform
notably poor with large directories, reiserfs may be a better choice.


//Peter
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.