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

Re: Subversion Perforce with of BDB_TXN_NOSYNC enabled vs disabled

From: B. W. Fitzpatrick <fitz_at_red-bean.com>
Date: 2003-02-27 18:56:28 CET

Greg Hudson <ghudson@MIT.EDU> writes:
> On Thu, 2003-02-27 at 10:08, Brandon Ehle wrote:
> > I realize that its supposedly not safe to run with BDB_TXN_NOSYNC, but I
> > am going to conduct some real world multi-user testing with this flag
> > enabled and see what kind of results I get.
>
> Removing fsync calls won't cause any failures for multi-user operation,
> or for processes terminating unexpectedly.
>
> You will see failures for the case where the system loses power. Data
> which was supposed to have been "committed" may be lost in the kernel's
> write cache without the fsync calls.

So if I understand this correctly, if my system loses power, and I'm
running with NOSYNC, odds are that I'll lose any commit that is
in-progress when I lose power, but my database as a whole will be fine
(after I run recover, of course).

Is that correct?

-Fitz

--
Brian W. Fitzpatrick    <fitz_at_red-bean.com>   http://www.red-bean.com/fitz/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Feb 27 18:58:01 2003

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