🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.b
Article #4811

Re: This UUCP site runs INN (was What is the advantage of INN over CNews?)

#4811
From: Matthias Urlichs
Date: Sat, 19 Dec 1992 13:03
43 lines
2643 bytes
In news.software.b, article <1992Dec18.135727.4601@sonyd1.Broadcast.Sony.COM>,
  lilb@sony.compuserve.com (Bruce Lilly) writes:
> 
> Does innd have to be running continuously, or can it be run on an
> as-required basis from inetd (suitable for machines with low
> volume feeds and only occasional newsreader connections (nntpd
> can be run from inetd))?
> 
When innd is not active, it gets mostly paged out. So there shouldn't be any
performance degradation when innd is running and doing nothing.

On the other hand, innd startup takes a few CPU seconds (grab the history
file, scan the newsfeeds file, build all the in-core data structures).
Besides, inetd can't listen on UNIX-domain sockets and innd doesn't have a
way to pass an open file descriptor in (other than the TCP listener socket,
which can only be opened as root under most Unixes).

> What other underlying assumptions and requirements exist for
> INN? For example, somebody else claimed that because INN can
> write to a pipe rather than to a disk file, it's performance can
> be better than C news'.  That assumes that a pipe is
> fundamentally different from a disk file, which is certainly not
> the case for many varieties of the UNIX(R) operating system.

Umm, that depends on what you regard as "fundamentally different".
Read/write froma pipe usually doesn't hit the disk at all, you don't
have to scan a directory and open/close a file every time the reader
catches up with the writer, you can't call select() on a disk file...

> Aside from a socket emulation library, what does INN require
> (does it require BSD-hacked signal(3) calls, e.g.)?
> 
INN doesn't really depend on signals. It uses them to catch SIGC(H)LD and
SIGPIPE, to find out when a piped-to process dies or closes its stdin,
and to shut down gracefully when it gets SIGINT or SIGTERM.
None of these depend on BSD signal semantics.

-- 
The clothes have no emperor.
- C. A. Hoare, about Ada.
-- 
Matthias Urlichs  --  urlichs@smurf.sub.org -- urlichs@smurf.ira.uka.de   /(o\
Humboldtstrasse 7 -- 7500 Karlsruhe 1 -- Germany  --  +49-721-9612521     \o)/
Technical Details
Message-ID: <1gv6i6INNjnn@smurf.smurf.sub.org>
Path: arc1-ca.pugleaf.net!sparky!uunet!spool.mu.edu!yale.edu!ira.uka.de!smurf.sub.org!news
References: <1gll86INNhsv@meaddata.meaddata.com> <1992Dec18.135727.4601@sonyd1.Broadcast.Sony.COM>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!spool.mu.edu!yale.edu!ira.uka.de!smurf.sub.org!news
From: urlichs@smurf.sub.org (Matthias Urlichs)
Newsgroups: news.software.b
Subject: Re: This UUCP site runs INN (was What is the advantage of INN over CNews?)
Date: 19 Dec 1992 14:03:02 +0100
Organization: University of Karlsruhe, FRG
Lines: 43
Message-ID: <1gv6i6INNjnn@smurf.smurf.sub.org>
References: <1gll86INNhsv@meaddata.meaddata.com> <1992Dec18.135727.4601@sonyd1.Broadcast.Sony.COM>
NNTP-Posting-Host: 127.0.0.1