🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
5 messages
5 total messages Started by Jeff Garzik Tue, 11 Mar 1997 00:00
Background ctlinnd renumber?
#15739
Author: Jeff Garzik
Date: Tue, 11 Mar 1997 00:00
34 lines
1546 bytes
news.daily's renumber process hangs INN 1.5.1 on my system for 10-20
minutes each night.  When you consider readers can still connect over 23
hours a day, it's not so bad, but the renumber step gets longer and
longer as Usenet grows.

I saw somewhere that a patch is being worked on to renumber from the
history file.  Great, but won't the server still freeze for this length
of time?

Here's what I'm thinking -- 'ctlinnd renumber' will set a 'renumber'
flag.

The innd processing loop would, if the renumber flag was set, renumber
one group each interation of the loop.  The renumber step would take a
little longer, but the server would never go down.  Posting and reading
could continue.

Are there any flaws in the plan?

I don't know the innd processing loop at all, but I'll work up a patch
if anybody's interested.

	Thanks!
	Jeff



-- 
Galbraith's Law of Human Nature:
	Faced with the choice between changing one's mind and proving that
	there is no need to do so, almost everybody gets busy on the proof.

Re: Background ctlinnd renumber?
#15725
Author: Per Hedeland
Date: Tue, 11 Mar 1997 00:00
22 lines
1473 bytes
In article <3324EB72.783EA40A@spinne.com>, Jeff Garzik
<jeff.garzik@spinne.com> writes:
|> I saw somewhere that a patch is being worked on to renumber from the
|> history file.  Great, but won't the server still freeze for this length
|> of time?

Presumably the idea is that *expire* would generate the low-number info
as it did its normal processing of the history file, and this would then
be passed to innd. This has the bug/feature that articles missing from
history will also become missing from active.

Anyway, the point is innd shouldn't spend a lot of time reading the
directories as it does now (or using any other time-consuming process),
but rather just be fed the new numbers that are produced by whatever
external method - the time needed to do the actual update of the active
file should be neglible.

--Per Hedeland
per@erix.ericsson.se

Re: Background ctlinnd renumber?
#15743
Author: Rod
Date: Tue, 11 Mar 1997 00:00
46 lines
2427 bytes
Per Hedeland, per@erix.ericsson.se wondered, perhaps too loudly:
 >In article <3324EB72.783EA40A@spinne.com>, Jeff Garzik
 ><jeff.garzik@spinne.com> writes:
 >|> I saw somewhere that a patch is being worked on to renumber from the
 >|> history file.  Great, but won't the server still freeze for this length
 >|> of time?
[...]
 >Anyway, the point is innd shouldn't spend a lot of time reading the
 >directories as it does now (or using any other time-consuming process),
 >but rather just be fed the new numbers that are produced by whatever
 >external method - the time needed to do the actual update of the active
 >file should be neglible.

	Well, news.daily script uses the output from wc -l on the active
	file as input to ctlinnd:
	
	ctlinnd -s -t`wc -l <${ACTIVE}` renumber ''
	
	which I would take to mean that the server is tied up for
	quite some time. Since I am about to simply add norenumber
	to the news.daily flags and do a renumber after news.daily
	runs adapted from the original scheme:
	
	ACTIVE=/usr/lib/news/active
	while read GROUP lo hi flag
	do
		[ `expr $hi - $lo` -gt 1 ] && {
		ctlinnd renumber ${GROUPS} >/dev/null 2>&1
		sleep 1
		}
	done <${ACTIVE}
	
	from cron. That way each group takes what it takes to renumber
	and between newsgroups it still allows newsreaders to do thier
	thing. It will still take a while to renumber, but the server
	won't be held up while it's happening. Any problems with this,
	or do I misunderstand the interaction of ctlinnd renumber and
	innd?

-- 
davids@davids.psyberlink.net| Any email arriving at this address carries an
     Steinberger:           | implicit agreement to agressive scanning of the
State of the Instrument     | sender's network, without restrictions.

Re: Background ctlinnd renumber?
#15763
Author: Per Hedeland
Date: Tue, 11 Mar 1997 00:00
44 lines
2374 bytes
In article <slrn5ibn48.qn5.serling@davids.isource.net>
serling@davids.psyberlink.net (Rod) writes:
>Per Hedeland, per@erix.ericsson.se wondered, perhaps too loudly:

"wondered"?

> >Anyway, the point is innd shouldn't spend a lot of time reading the
> >directories as it does now (or using any other time-consuming process),
> >but rather just be fed the new numbers that are produced by whatever
> >external method - the time needed to do the actual update of the active
> >file should be neglible.
>
>	Well, news.daily script uses the output from wc -l on the active
>	file as input to ctlinnd:
>	
>	ctlinnd -s -t`wc -l <${ACTIVE}` renumber ''
>	
>	which I would take to mean that the server is tied up for
>	quite some time.

It certainly is, with the *current* scheme - that's (obviously) why
*alternate* methods are discussed, as in my article and the one I
followed up to.

[ description of non-news.daily a-group-at-a-time renumbering ]

>	 That way each group takes what it takes to renumber
>	and between newsgroups it still allows newsreaders to do thier
>	thing. It will still take a while to renumber, but the server
>	won't be held up while it's happening. Any problems with this,
>	or do I misunderstand the interaction of ctlinnd renumber and
>	innd?

No, it should work fine, and solve the problem if it's only a matter of
the delay for connecting readers - assuming you manage to finish in 24
hours:-). Of course innd will spend the same total amount (or rather
slightly more, due to the ctlinnd interaction) of time renumbering, time
that on many servers might be better spent processing incoming articles.

--Per Hedeland
per@erix.ericsson.se

Re: Background ctlinnd renumber?
#15820
Author: Katsuhiro Kondou
Date: Wed, 12 Mar 1997 00:00
14 lines
967 bytes
In article <3324EB72.783EA40A@spinne.com>,
	Jeff Garzik <jeff.garzik@spinne.com> writes:

} I saw somewhere that a patch is being worked on to renumber from the
} history file.  Great, but won't the server still freeze for this length
} of time?

ftp://ftp.iafrica.com/pri/apb/inn-patch-apb-19970129
-- 
Katsuhiro Kondou JH5GHM/1
NEC Corporation, Tokyo JAPAN

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