On Thu, 2008-01-24 at 00:18 +0800, Dino Ming wrote:
open("/dap/mstorage/example.com/dino/Maildir/cur", O_RDONLY| O_NONBLOCK|O_DIRECTORY) = 8 <0.000098> .. getdents64(8, /* 114 entries */, 8192) = 8128 <0.347680> getdents64(8, /* 113 entries */, 8192) = 8136 <1.385329> getdents64(8, /* 113 entries */, 8192) = 8144 <1.668419> getdents64(8, /* 113 entries */, 8192) = 8136 <2.942874> getdents64(8, /* 107 entries */, 8192) = 7712 <5.346971> getdents64(8, /* 0 entries */, 8192) = 0 <0.000046>
This means that a simple "ls" call on that cur directory would take about 11 seconds (when the directory entries aren't already cached). You could verify that this happens.
So I can't really say anything else than that the problem is somewhere outside Dovecot..