5 Nov
2010
5 Nov
'10
1:24 a.m.
On 4.11.2010, at 23.09, Stan Hoeppner wrote:
That shows that mdbox is twice as fast as maildir for uncached searches, which I'm guessing are the majority of searches. I'd really be interested in seeing numbers for mbox as well.
Here's a way to do it in Linux:
- Fill up the mailbox with messages:
imaptest logout=0 - append=100,50 msgs=10000 user=testaccount
When it finishes, imaptest goes to infinite loop and you have to kill -9 it. I guess I should fix that some day.
Flush page cache: echo 1 > /proc/sys/vm/drop_caches
time doveadm search mailbox inbox text asdfasd
After 3 the mailbox should be cached, so you can run it again. Get imaptest from http://imapwiki.org/ImapTest
In non-Linux step 2 can be achieved by rebooting. :)