Discussion:
save-aggregates-copy-sequence
Matteo Faleschini
2008-02-22 16:49:47 UTC
Permalink
I cross-posted this message on the mailing list and the usenet. I hope
not to annoy anybody.


At our departement we were testing pine on a distributed filesystem
with bad results.
It required 30 secs to move 1000 messages between two mboxes of 10000
msgs size (about 150Mb).

The inner issue was the fs slowdown, but we were wondering why only
pine had such a bad performance.
We discovered that the problem was in a visualisation option: "reverse
sort of messages".

Looking at strace output we noticed that with this option active, each
message was handled separately. I mean that each message required
* opening destination mbox
* locking destination mbox
* copyng the message
* fsync'ing (!!!!) the destination mbox
* closing the destination mbox

fsync is too costly on our fs.

One of our staff dicovered a hidden feature in the source code of
pine: save-aggregates-copy-sequence
With this feature active the copy process works quickly with only one
fsync at the end even when messages are reverse sorted.

We are now wondering why isn't this feature added as a default one. Is
there some problematic context where this feature slows down
operations or produces unconsistent state of mailbox?

Thanks,
Matteo Faleschini
Steve Hubert
2008-02-22 17:03:58 UTC
Permalink
Post by Matteo Faleschini
One of our staff dicovered a hidden feature in the source code of
pine: save-aggregates-copy-sequence
With this feature active the copy process works quickly with only one
fsync at the end even when messages are reverse sorted.
We are now wondering why isn't this feature added as a default one. Is
there some problematic context where this feature slows down
operations or produces unconsistent state of mailbox?
Thanks,
Matteo Faleschini
In Alpine (http://www.washington.edu/alpine/), the successor to Pine, the
default has indeed been changed so that this is now turned on by default.
The reason you might not want to have this turned on is that some IMAP
servers do not preserve the order of the messages being saved when it is
done as an aggregate operation.

Steve

Continue reading on narkive:
Loading...