Article View: news.software.nntp
Article #56671Re: db_checkpoint hanging around
From: Ben Rosengart
Date: Wed, 20 Feb 2002 00:22
Date: Wed, 20 Feb 2002 00:22
28 lines
2210 bytes
2210 bytes
In article <87r8nrpm8e.fsf@erlenstar.demon.co.uk>, Andrew Gierth wrote: >>>>>> "Ben" == Ben Rosengart <br@panix.com> writes: > > Ben> I forgot to mention one thing. I ktrace'd db_checkpoint and > Ben> found that it was looping -- running "select" over and over > Ben> again, about once a second. The weird thing is that the first > Ben> four arguments were all zero. The man page for select doesn't > Ben> say anything about select's behavior in that case, which makes > Ben> me think it's a programming error, because I can't see why one > Ben> would want to select on zero fd's. > > Selecting on no fds is a trick for doing short (e.g. <1sec) delays > (it's somewhat more portable than most of the alternatives like > nanosleep()). > > BerkeleyDB uses its own locking, which on some platforms is > implemented by looping using initially short delays with exponential > backoff up to 1 second. So it's probably waiting on one of its locks. Hmm. Now I'm wondering: why would db_checkpoint be unwilling to exit on all signals other than KILL, and how likely am I to experience data corruption if I don't solve this problem? Any thoughts? -- Ben Rosengart (212) 741-4400 x215 "For values of 'whatever'."
Technical Details
Message-ID:
<slrna75r3g.rkc.br@panix2.panix.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!bloom-beacon.mit.edu!panix!not-for-mailReferences:
<slrna6g6g1.178.br@panix2.panix.com> <slrna6g7mk.178.br@panix2.panix.com> <87r8nrpm8e.fsf@erlenstar.demon.co.uk>Show Full Headers
Complete Article Headers
Message-ID: <slrna75r3g.rkc.br@panix2.panix.com> Subject: Re: db_checkpoint hanging around Date: Wed, 20 Feb 2002 00:22:51 +0000 From: Ben Rosengart <br@panix.com> References: <slrna6g6g1.178.br@panix2.panix.com> <slrna6g7mk.178.br@panix2.panix.com> <87r8nrpm8e.fsf@erlenstar.demon.co.uk> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!bloom-beacon.mit.edu!panix!not-for-mail Newsgroups: news.software.nntp Organization: PANIX Public Access Internet and UNIX, NYC Lines: 27 NNTP-Posting-Host: panix2.panix.com X-Trace: reader1.panix.com 1014164571 10479 166.84.1.2 (20 Feb 2002 00:22:51 GMT) X-Complaints-To: abuse@panix.com NNTP-Posting-Date: Wed, 20 Feb 2002 00:22:51 +0000 (UTC) User-Agent: slrn/0.9.7.3 (NetBSD)