🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
4 messages
4 total messages Started by Ben Rosengart Mon, 11 Feb 2002 19:22
db_checkpoint hanging around
#56453
Author: Ben Rosengart
Date: Mon, 11 Feb 2002 19:22
17 lines
1563 bytes
I'm using INN 2.3.2.  When I run "rc.news stop", the "dbprocs start"
process doesn't go away.  Reading it, I think it's waiting for
db_checkpoint to exit.  db_checkpoint should exit when "dbprocs stop"
is called from "rc.news stop".  But it doesn't -- it doesn't respond
to signal 2 (which the db documentation says should be used), signal
15 (which is used by "dbprocs stop"), nor signal 1.  Signal 9 kills
it.

DB version is 3.2.9.

Has anyone seen this?  

-- 
Ben Rosengart     (212) 741-4400 x215

"For values of 'whatever'."
Re: db_checkpoint hanging around
#56455
Author: Ben Rosengart
Date: Mon, 11 Feb 2002 19:43
25 lines
1991 bytes
In article <slrna6g6g1.178.br@panix2.panix.com>, Ben Rosengart wrote:
> I'm using INN 2.3.2.  When I run "rc.news stop", the "dbprocs start"
> process doesn't go away.  Reading it, I think it's waiting for
> db_checkpoint to exit.  db_checkpoint should exit when "dbprocs stop"
> is called from "rc.news stop".  But it doesn't -- it doesn't respond
> to signal 2 (which the db documentation says should be used), signal
> 15 (which is used by "dbprocs stop"), nor signal 1.  Signal 9 kills
> it.
> 
> DB version is 3.2.9.
> 
> Has anyone seen this?  
 
I forgot to mention one thing.  I ktrace'd db_checkpoint and found
that it was looping -- running "select" over and over again, about
once a second.  The weird thing is that the first four arguments were
all zero.  The man page for select doesn't say anything about select's
behavior in that case, which makes me think it's a programming error,
because I can't see why one would want to select on zero fd's.

-- 
Ben Rosengart     (212) 741-4400 x215

"For values of 'whatever'."
Re: db_checkpoint hanging around
#56459
Author: Andrew Gierth
Date: Tue, 12 Feb 2002 00:39
21 lines
1916 bytes
>>>>> "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.

-- 
Andrew.
Re: db_checkpoint hanging around
#56671
Author: Ben Rosengart
Date: Wed, 20 Feb 2002 00:22
28 lines
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'."
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads