FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian User

 
 
LinkBack Thread Tools
 
Old 07-13-2008, 10:31 PM
Jochen Schulz
 
Default Maildir vs mbox again (was: IMAP is teh r0x0rz!)

Steve Lamb:
>
> Right now my trash is 2000 messages at 14Mb. 50,000 messages would be
> ~350Mb. Certainly doesn't take me 20 minutes to begin to work with a 350Mb
> flat file. Hell, at work I've opened larger flat files over the network in
> shorter time.

I don't see a problem with several thousand files in one directory:

# echo 3 > /proc/sys/vm/drop_caches

$ time ls -1 ~/Maildir/.debian.user/cur | wc -l
10997

real 0m2.529s
user 0m0.284s
sys 0m0.332s

$ du -hs ~/Maildir/.debian.user/cur
87M .

The first line flushes the filesystem cache. Subsequent runs take about
0.3 seconds. Filesystem is XFS on a 2.6.18 kernel from etch. It
shouldn't be significantly worse with ext3 (at least when it is created
with -O dir_index).

J.
--
Atrocities committed in Rwanda pervade my mind when I am discussing
mundanities with acquaintances.
[Agree] [Disagree]
<http://www.slowlydownward.com/NODATA/data_enter2.html>
 
Old 07-17-2008, 02:09 PM
Michelle Konzack
 
Default Maildir vs mbox again (was: IMAP is teh r0x0rz!)

Hallo Jochen,

Am 2008-07-14 00:31:03, schrieb Jochen Schulz:
> I don't see a problem with several thousand files in one directory:

Me too

> # echo 3 > /proc/sys/vm/drop_caches
>
> $ time ls -1 ~/Maildir/.debian.user/cur | wc -l
> 10997
>
> real 0m2.529s
> user 0m0.284s
> sys 0m0.332s
>
> $ du -hs ~/Maildir/.debian.user/cur
> 87M .

My "~/Maildir/.ML_devel.linux-kernel@vger_kernel_org/cur" has currently
153.000 messages with arround 3 GByte and even mutt open it localy in
less then 4 minutes without "hcache"

> The first line flushes the filesystem cache. Subsequent runs take about
> 0.3 seconds. Filesystem is XFS on a 2.6.18 kernel from etch. It
> shouldn't be significantly worse with ext3 (at least when it is created
> with -O dir_index).

I am using ext3 and used "tune2fs" to add the "dir_index" which
increased the speed by faktor 6. I should note, that I am already using
a Raid-1 with two 74 GByte SCA drives plus Hotfix of 15.000 RpM.

Thanks, Greetings and nice Day/Evening
Michelle Konzack
Systemadministrator
24V Electronic Engineer
Tamay Dogan Network
Debian GNU/Linux Consultant


--
Linux-User #280138 with the Linux Counter, http://counter.li.org/
##################### Debian GNU/Linux Consultant #####################
Michelle Konzack Apt. 917 ICQ #328449886
+49/177/9351947 50, rue de Soultz MSN LinuxMichi
+33/6/61925193 67100 Strasbourg/France IRC #Debian (irc.icq.com)
 

Thread Tools




All times are GMT. The time now is 03:44 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org