Huge difference between the lucene index size created by v2.1 and v2.2

Timo Sirainen tss at iki.fi
Wed Aug 20 11:34:06 UTC 2014


Just this one. The previous one was a mistake.

On 20 Aug 2014, at 13:31, Akash <akbwiz+dovecot at gmail.com> wrote:

> So should I now be trying just this patch or both (including the one
> you posted before) ?
> 
> On Wed, Aug 20, 2014 at 4:54 PM, Timo Sirainen <tss at iki.fi> wrote:
>> Actually that same header indexing behavior was already in v2.1. But I found the real problem now: http://hg.dovecot.org/dovecot-2.2/rev/febedba15c7e
>> 
>> That bug was actually already in v2.1, but because memory was always allocated from stack it wasn't causing as many problems.
>> 
>> On 18 Aug 2014, at 13:34, Akash <akbwiz+dovecot at gmail.com> wrote:
>> 
>>> Thanks for checking. The patch didn't make any significant difference. Now its 1.3G instead of 1.5G.
>>> 
>>> root at server:~# ls -lh /home/admin/mails/lucene-indexes
>>> total 1.3G
>>> -rw------- 1 nobody nogroup 1.3G Aug 18 11:30 _4a.cfs
>>> -rw------- 1 nobody nogroup   20 Aug 18 11:30 segments.gen
>>> -rw------- 1 nobody nogroup   46 Aug 18 11:30 segments_8n
>>> 
>>> On 18-08-2014 14:17, Timo Sirainen wrote:
>>>> On 18 Aug 2014, at 09:42, Akash <akbwiz+dovecot at gmail.com> wrote:
>>>>> 390M vs 1.5G. That is a huge difference in size. Why is that?
>>>> Can you test if the attached patch shrinks it back? I had been
>>>> planning on making that also configurable. There might be something
>>>> else also causing it.
>> 



More information about the dovecot mailing list