Re: [Evolution-hackers] libdb performance issue? (was: Re: libebook: errors when using asynchronous contact addition/removal functions)

2011-05-16 Thread Patrick Ohly
On Mo, 2011-05-16 at 13:05 +0200, Milan Crha wrote: > On Mon, 2011-05-16 at 11:35 +0200, Patrick Ohly wrote: > > And it works beautifully. One word added to the source code and the > > stress test passes reliably and quickly :-) > > > > Patch attached. Okay to submit into master (not tested there,

Re: [Evolution-hackers] libdb performance issue? (was: Re: libebook: errors when using asynchronous contact addition/removal functions)

2011-05-16 Thread Milan Crha
On Mon, 2011-05-16 at 11:35 +0200, Patrick Ohly wrote: > And it works beautifully. One word added to the source code and the > stress test passes reliably and quickly :-) > > Patch attached. Okay to submit into master (not tested there, though) > and gnome-2-32 branches (which is where I have test

Re: [Evolution-hackers] libdb performance issue? (was: Re: libebook: errors when using asynchronous contact addition/removal functions)

2011-05-16 Thread Patrick Ohly
[Milan, can you please keep other people on CC? I know that you personally prefer to not be CCed on mailing list emails and I try to remember that in my own replies, but others are not on the list and may depend on being CCed. For example, I don't know whether Chris is subscribed.] On Mo, 2011-05

Re: [Evolution-hackers] libdb performance issue? (was: Re: libebook: errors when using asynchronous contact addition/removal functions)

2011-05-16 Thread Patrick Ohly
On Mo, 2011-05-16 at 08:11 +0200, Milan Crha wrote: > On Fri, 2011-05-13 at 15:44 +0200, Patrick Ohly wrote: > > In libebook, I get a "Timeout was reached" because the asynchronous > > operation doesn't complete quickly enough. Same for the attempt to > > delete the contacts. The gError->code is 24

Re: [Evolution-hackers] libdb performance issue? (was: Re: libebook: errors when using asynchronous contact addition/removal functions)

2011-05-15 Thread Milan Crha
On Fri, 2011-05-13 at 15:44 +0200, Patrick Ohly wrote: > In libebook, I get a "Timeout was reached" because the asynchronous > operation doesn't complete quickly enough. Same for the attempt to > delete the contacts. The gError->code is 24, which is indeed > E_BOOK_ERROR_NOT_SUPPORTED. Hi

Re: [Evolution-hackers] libdb performance issue? (was: Re: libebook: errors when using asynchronous contact addition/removal functions)

2011-05-13 Thread sean finney
On Fri, May 13, 2011 at 03:44:08PM +0200, Patrick Ohly wrote: > I tried the LD_PRELOAD=libeatmydata.so workaround suggested in the mail > above and it does avoid the problem. If eatmydata removes the bottleneck, then it's likely that either (a) each operation is corresponding to an fsync/fsyncdata

[Evolution-hackers] libdb performance issue? (was: Re: libebook: errors when using asynchronous contact addition/removal functions)

2011-05-13 Thread Patrick Ohly
On Fr, 2011-05-13 at 12:42 +0100, Christophe Dumez wrote: > On my machine some of the insertions often fail with error: > E_BOOK_ERROR_NOT_SUPPORTED. What is the error explanation in that case? See gError->message. When I run the test program, I see that e-addressbook-factory starts consuming 100