🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
6 messages
6 total messages Started by Nigel Metheringham Tue, 11 Nov 1997 00:00
Should INN pass unlinks to an unlinkd?
#23171
Author: Nigel Metheringham
Date: Tue, 11 Nov 1997 00:00
49 lines
2770 bytes
In the squid cache, a few versions back, an unlinkd was added so that
the non-blocking main process could pass all files than need unlinking
to unlinkd and so remove a blocking system call from normal
operations.

Inn works in much the same way as squid - its a single threaded
non-blocking server process.  It already hands off as much work as it
can to external processes (ie crosspost, overchan etc).  Adding an
interface so that cancels are processed by doing the history twiddles
in-line (no need then to do difficult history file locking), and
passing the file names of cancelled articles to an external process
which can handle them outside the main loop would appear to be a
logical and useful extension of inn.

Now that cancels (whether cancel articles or NoCem) account for large
proportions of received articles, the efficiency gains of doing this
would appear to be significant.

If this model was adapted there is an additional advantage.  The
unlink process, or another process fired off in the same way using the
same data, could then also remove the article references from the
overview files (well probably not remove, but invalidate within the
overview file).  This keeps the overview files in sync with the spool.
Once this is done nnrpd could then trust the overview data for
information on which articles exist and not bother ennumerating the
spool directory - which could give another speed up [this probably
needs to be examined, but for my system with relatively slow news
disks, a very fast overview disk, and the majority of groups having
very little read from them each time, this conclusion would seem
valid].

So what am I getting at:-

 1. Is this a reasonable idea?

 2. Has it been done before/Is anyone working on it?

 3. Should I forget the whole thing and look at CNFS instead?

	Nigel.


-- 
[ Nigel.Metheringham@theplanet.net   -  Systems Software Engineer ]
[ Tel : +44 113 251 6012                   Fax : +44 113 224 0003 ]
[      Real life is but a pale imitation of a Dilbert strip       ]

Re: Should INN pass unlinks to an unlinkd?
#23177
Author: coneill
Date: Tue, 11 Nov 1997 00:00
47 lines
2801 bytes
Nigel.Metheringham@theplanet.net (Nigel Metheringham) writes:
> If this model was adapted there is an additional advantage.  The
> unlink process, or another process fired off in the same way using the
> same data, could then also remove the article references from the
> overview files (well probably not remove, but invalidate within the
> overview file).  This keeps the overview files in sync with the spool.
> Once this is done nnrpd could then trust the overview data for
> information on which articles exist and not bother ennumerating the
> spool directory - which could give another speed up [this probably
> needs to be examined, but for my system with relatively slow news
> disks, a very fast overview disk, and the majority of groups having
> very little read from them each time, this conclusion would seem
> valid].
> 
> So what am I getting at:-
> 
>  1. Is this a reasonable idea?

Sounds reasonable to me.

>  2. Has it been done before/Is anyone working on it?

I'm working on the overview cancelling stuff already in 1.8-current.
Going to a storage API in 1.8 is pretty much requiring that we
consider it authoritative since it serves as the article number ->
token index.  I was just working on the code for making overchan
record cancels in the overview indices.

>  3. Should I forget the whole thing and look at CNFS instead?

Well, it looks like there is a good chance that CNFS will be
integrated as as storage method in 1.8.  If one of the CNFS crowd
doesn't write it then I probably will, regardless I've got about a
half dozen different ideas for storage methods and I'm pretty excited
about coding them, but I've got to get the work for 1.8 done to
support them. 

I've said in the past that I think we can get 1.8 out around feb 98,
and things pretty much seen to be on schedule, primarily due to things 
falling into place nicer than I thought they would.  

BTW, for everyone that doesn't know already, 1.8 is a open development 
model, we're always looking for people that don't mind running
development code and can contribute.

Re: Should INN pass unlinks to an unlinkd?
#23199
Author: coneill
Date: Wed, 12 Nov 1997 00:00
33 lines
2299 bytes
Mark-Oliver Wolter <root@mow.physik.uni-bremen.de> writes:

> coneill@blah.erols.com wrote:
> :> Once this is done nnrpd could then trust the overview data for
> :> information on which articles exist and not bother ennumerating the
> :> spool directory - which could give another speed up [this probably
> 
> Only when the overview data is always up to date, and overchan
> doesn't barf backlog. That requires a frequently running expireover, I think ...

Or you can run it in batches from cron.  It you're using anything but
the standard spool layout in 1.8 then you'll have to be running
overchan in some form or fashion for reader support.

> : I'm working on the overview cancelling stuff already in 1.8-current.
> : Going to a storage API in 1.8 is pretty much requiring that we
> : consider it authoritative since it serves as the article number ->
> : token index.  I was just working on the code for making overchan
> : record cancels in the overview indices.
> 
> Speaking of cancels, will there be a way to not create overview
> data for certain groups? *Especially* control.cancel?
> I currently use /cyberspam in my overchan feed entry. It surely
> speeds things up. But this causes problems with certain path 
> preloads ... A way to use newsgroup blocks for these special
> groups in the same way than with normal groups would be nice.

It's not currently planned, but I tend to think that the i/o you'll
save by not running the traditional spool will make up for most
overchan bottlenecks.

Re: Should INN pass unlinks to an unlinkd?
#24090
Author: James Brister
Date: Sat, 06 Dec 1997 00:00
18 lines
1324 bytes
drechsau@yuck.net (Mike Horwath) writes:

> coneill@blah.erols.com wrote:
> : BTW, for everyone that doesn't know already, 1.8 is a open development 
> : model, we're always looking for people that don't mind running
> : development code and can contribute.
> 
> How is the new code being released?  CVSUP ...

Exactly. The machine the CVS pool lives on is inn-cvs.isc.org.

James
-- 
James Brister                                            brister@vix.com
Internet Software Consortium      http://www.isc.org     inn@isc.org 

Re: Should INN pass unlinks to an unlinkd?
#24114
Author: Jean-Claude MICHOT
Date: Sun, 07 Dec 1997 00:00
14 lines
1048 bytes
Another possible method instead of unlinkd is thread
(if your systeme support).

Actualy my customized 1.5.1 (+ lot's of patch) server
start a thread for each unlinks. It's realy fast.

JC,

-- 
Jean-Claude MICHOT     jcmichot@teaser.fr       Phone: +33 1 47508136
France-Teaser          http://www.teaser.fr     Fax:   +33 1 47506293

Re: Should INN pass unlinks to an unlinkd?
#24149
Author: Marc G. Fournier
Date: Mon, 08 Dec 1997 00:00
39 lines
2042 bytes
In article <yy3iut2m8dv.fsf@velo.pp.vix.com>,
	James Brister <brister@velo.pp.vix.com> writes:
> drechsau@yuck.net (Mike Horwath) writes:
> 
>> coneill@blah.erols.com wrote:
>> : BTW, for everyone that doesn't know already, 1.8 is a open development 
>> : model, we're always looking for people that don't mind running
>> : development code and can contribute.
>> 
>> How is the new code being released?  CVSUP ...
> 
> Exactly. The machine the CVS pool lives on is inn-cvs.isc.org.
> 
> James

Bearing in mind that this accesses unstable code, you can grab CVSup clients
for various operating systems from ftp.postgresql.org/pub/CVSup, and the
config file you'll need is:

=================[ cut here ]==================
*default host=inn-cvs.isc.org
*default base=/news/src
*default prefix=/news/src
*default release=cvs tag=.
*default delete use-rel-suffix

# If your network link is a T1 or faster, comment out the following line.
*default compress

## Main Source Tree.
#
# The easiest way to get the main source tree is to use the "src-all"
# mega-collection.  It includes all of the individual "src-*" collections,
# except for "src-eBones" and "src-secure".
inn
=================[ cut here ]==================

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