<<< Date Index >>>     <<< Thread Index >>>

Re: maildir_cache_page_size



Hi Nicolas,

> How can I do this? db_dump.html does not help me.

I don't know. This is from Brian Feldman <green@xxxxxxxxxxx> however. I
did some tests and db4 does only support a pagesize up2 16kbyte. And it
got better with higher values. So I use 16kbyte.

I attached my initial benchmark. First line is cache build up second one
is cached.  This was my typical 90Mbyte 32thousand message maildir. DB4
only supports blocksizes till 16kbyte but gdbm doesn't perform that much
better on bigger blocksizes.

This was on my SunFIRE 280R with 8kbyte pagesize.

Sincerely,
        Thomas
--- Begin Message ---
Hi Brian,

> Well, I'm just proposing what is readily available now: the output
> that mutt -v shows you.

The problem is that this string is save in puts("..."); so we can't use
it. :-(

I fixed a little glitch: The page size has to be short not a int. DB4
ignored the size, but gdbm started to create 400Mbyte big databases. :-)

here are my benchmarking results:

bs      gdbm                    db-4

1024    real    0m17.047s       real    0m21.656
        real    0m2.933s        real    0m3.140s

2048    real    0m16.499s       real    0m29.033
        real    0m2.935s        real    0m3.270s

4096    real    0m17.760s       real    0m21.380
        real    0m2.927s        real    0m2.826s

8192    real    0m18.656s       real    0m18.344
        real    0m2.620s        real    0m3.062s

16384   real    0m20.814s       real    0m17.710
        real    0m2.553s        real    0m3.631s


        Thomas

--- End Message ---