[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: general server performance (was Re: apache svn server memory usage?)

From: Branko Čibej <brane_at_xbc.nu>
Date: 2003-07-03 00:55:16 CEST

Mukund wrote:

>On Wed, Jul 02, 2003 at 06:10:12PM +0200, Branko Čibej wrote:
>| Let's just make one thing clear here -- the fsync that happens at every
>| BDB transaction commit has nothing to do with how many times you open
>| the database. Keeping the DB open will help, yes, but it won't
>| significantly decrease the number of fsyncs.
>Hi Branko
>Perhaps you have not understood what I had meant. You can disable the
>fsync which happens at every transaction commit, using the DB_TXN_NOSYNC
>option. But however, when you close the DB, the fsync still happens.
>When the DB is opened and closed at every request, the whole point of
>DB_TXN_NOSYNC is defeated, as you are literally syncing every small bunch of
>transactions per request as they happen. In an active repository, this
>keeps the disk constantly busy. Keeping an open connection pool
>helps in this case.
>I wonder if the sync at DB close can be disabled.
It can, but not with an option in DB_CONFIG. You can pass the DB_NOSYNC
flag to the DB->close function. I would recommend against doing that in
our code, though.

Brane Čibej   <brane_at_xbc.nu>   http://www.xbc.nu/brane/
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Jul 3 00:56:11 2003

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.