Re: MANY folders...

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Feb 8, 2010 at 9:17 AM, Tomas Kuliavas <tokul@xxxxxxxxxxxxxxxxxxxxx> wrote:
2010.02.08 18:59 Freddie Cash rašė:
> On Mon, Feb 8, 2010 at 8:27 AM, Ken D'Ambrosio <ken@xxxxxxxx> wrote:
>
>> Hey, all.  For various reasons, I've been asked to have an account with
>> slightly over a million e-mails divvied up between thousands of folders.
>> Shockingly (that's a joke), SquirrelMail doesn't seem too happy with
>> thousands of folders; after (roughly) 30 seconds, it times out, never
>> showing me either the messages in the inbox, nor the side panel with
>> folders.  I've grepped for "timeout" in both the Squirrelmail sourcecode
>> and php.ini, and don't see anything that seems appropriate that I
>> haven't
>> already tweaked.  (Note that I'm assuming it's a timeout issue, but I
>> suppose it could also be a memory consumption issue.)
>>
>> Since I don't need zippy response times, and I've got lots of memory,
>> I'm
>> more than willing to throw in otherwise-unreasonable values... but some
>> pointers on what to tweak (and where) would be gratefully accepted.
>>
>> Which IMAP server is this connecting to?  What format are the folders on
> the server?  And are there any local filters enabled in SM?

It does not depend on IMAP server. 1000 folders. When SquirrelMail
generates mailbox listing, it issues one IMAP command for any subscribed
IMAP folder. Magic point where processing of one big IMAP response in PHP
is faster than issuing one command for any IMAP folder is somewhere near
20 folders. If user has more than 20 folders, mailbox listing is not done
in optimal way. Now imagine how not optimal it can be with 1000 folders or
do little math. 1000 / 20 = ?

Correct fix is to fix mailbox cache generation.

Hrm, makes sense.  I have an account with just under 100 folders (just under 2 GB of mail storage), and everything is quick (less than 5 seconds to generate mailbox list and initial page of inbox).  Figured that would scale out to 1000 as that would still fall within the 60s deadline we have for php scripts.  But, guess it's not a linear scale.

Good to know for the future.  :)

--
Freddie Cash
fjwcash@xxxxxxxxx
------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
-----
squirrelmail-users mailing list
Posting guidelines: http://squirrelmail.org/postingguidelines
List address: squirrelmail-users@xxxxxxxxxxxxxxxxxxxxx
List archives: http://news.gmane.org/gmane.mail.squirrelmail.user
List info (subscribe/unsubscribe/change options): https://lists.sourceforge.net/lists/listinfo/squirrelmail-users

[Index of Archives]     [Video For Linux]     [Yosemite News]     [Yosemite Photos]     [gtk]     [KDE]     [Cyrus SASL]     [Gimp on Windows]     [Steve's Art]     [Webcams]

  Powered by Linux