[Dovecot] dovecot.index.cache 1/3rd of INBOX size

Chris Wakelin c.d.wakelin at reading.ac.uk
Fri Jun 17 14:41:15 EEST 2005


Timo Sirainen wrote:
> On 14.6.2005, at 17:35, Chris Wakelin wrote:
> 
>> I've noticed that my dovecot.index.cache file has got very large 
>> (24MB, which is more than 1/3 of my INBOX size). I've tried deleting 
>> (well, renaming) the dovecot.index.* files, and re-opening my INBOX, 
>> and the new dovecot.index.cache is only 90KB so far.
> 
> 
> Fixed in CVS. The mails weren't being marked as deleted in cache file 
> because of a simple mistake ("!=" -> "=="). So after the change the 
> files still won't get compressed immediately, but it'll work in future.

Thanks! I've applied the fix (I think!) to dovecot-stable-20050617 and 
am now using it. My dovecot.index.cache is 5MB or so at the moment, and 
still seems to be growing, even when I delete lots of old messages. 
Presumably there needs to be 20% "deleted space" before anything will 
happen.

Does it ever rebuild the cache from scratch in normal operation? What 
happens if a non-dovecot process deletes messages, do they ever get 
removed from the cache?

Lastly, do you have a tool or utility to analyse the cache files so I 
can see how many messages/headers and how much "deleted space" there is? 
  "strings" isn't too reliable an analysis method ;)

Best Wishes,
Chris

-- 
--+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+-
Christopher Wakelin,                           c.d.wakelin at reading.ac.uk
IT Services Centre, The University of Reading,  Tel: +44 (0)118 378 8439
Whiteknights, Reading, RG6 2AF, UK              Fax: +44 (0)118 975 3094



More information about the dovecot mailing list