Article View: news.software.nntp
Article #3072Re: Netscape opens new NNTP connection for each article and group?
From: Tom Limoncelli
Date: Wed, 23 Nov 1994 06:22
Date: Wed, 23 Nov 1994 06:22
66 lines
4191 bytes
4191 bytes
In <Czoryo.1Cx@news.cern.ch> hallam@dxal18.cern.ch (Phillip M. Hallam-Baker) writes:
>In article <TML.94Nov22113948@tiuhti.tte.vtt.fi>, tml@hemuli.tte.vtt.fi (Tor Lillqvist) writes:
>|>I am running INN 1.4. I have noticed that when a user reads news with
>|>Netscape (for Windows, presumably), it opens a lot of short NNTP
>|>sessions (`articles 1 groups 0' or `articles 0 groups 1' in the log).
>|>I don't think this is a good idea for obvious reasons.
>|>
>|>Is this how it is supposed to be? What is the rationale behind this?
>|>So far only one of our users seem to be using Netscape to read news,
>|>but I fear that the innd forking will get quite wild when/if more
>|>start using it...
>Nope that is how it should be. NNTP has the paradigm wrong, not the Web.
>Keeping the connection open only makes sense if you intend to interface via
>the NNTP idea of how a client should be structured. This has produced a lot
>of pretty tacky browsers which all have an interface like rn. With hypertext
>the natrual patterns of use tend to make keeping the state in the server
>useless, Web users tend to hop from mail to news to other pages in a pretty
>random order. Locking up an NNTP session for a Web client is not a good thing.
Wow, what a completely backwards understanding of the technology.
>Simple solution to your inetd problem, run the daemon directly. inetd is an
>optimiser to reduce the number of daemons cluttering the place up. If you have
>an nntp server machine then the nntp deamon should run directly on the port
>beacuse it will have a lot of use anyway. Running via inetd is asking for
>trouble because most inetds break if the load goes over a pretty small
>threashold (sometimes as low as 20 connects/sec), Plus inetds often don't
>clean up properly tcp/ip wise.
Wow, what a complete lack of undestanding of the technology. You
are saying, "If inetd can't fork() fast enough, have someone else
do it!" INN and nnrpd must fork() for every netnews reader.
Unless NetScape provides a replacement nnrpd (or nntpd) that doesn't
require fork()ing for every connection... do they? No.
>The nntp daemon should be no worse than an HTTP daemon which on most systems
>will quite happily fork at a pretty nice rate. (Remember forking processes
>is cheap on UNIX, Ken Thompson said it was true so it must be :-). Unless you
>have 20 people connecting per second you should be OK. If this is a problem
>then your existing nntp system must always be running out of processes anyway
>since if each user reads 1 page/min you would have to have 1200 users to
>get your system into the danger zone the traditional NNTP way.
Since HTTP was designed to be forking a lot, it fork()s quickly. On
the other hand, nnrpd and nntpd do a LOT of work per fork(). The
mmap() (or read()) the entire active file, check access, etc.
NetScape Mosaic gets nothing but complaints from tons of people on the
net. It seems to me that the authors got greedy and shipped without
proper testing... or they were so greedy that they weren't willing to
invest the time to design it properly.
Either way, I do not recommend their software to anyone.
--tal
--
Tom Limoncelli -- tal@plts.org (home) -- tal@big.att.com (work)
"I just *LOVE* scanning for life forms!"
Technical Details
Message-ID:
<3aun34$ikn@plts.org>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-comp.infosystems.www.misc.mbox.zip!nntp.gmd.de!xlink.net!howland.reston.ans.net!pipex!uunet!allegra!big.info.att.com!plts!not-for-mailReferences:
<TML.94Nov22113948@tiuhti.tte.vtt.fi> <Czoryo.1Cx@news.cern.ch>Show Full Headers
Complete Article Headers
Message-ID: <3aun34$ikn@plts.org> Subject: Re: Netscape opens new NNTP connection for each article and group? Date: Wed, 23 Nov 1994 06:22:28 +0000 From: tal@plts.org (Tom Limoncelli) References: <TML.94Nov22113948@tiuhti.tte.vtt.fi> <Czoryo.1Cx@news.cern.ch> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-comp.infosystems.www.misc.mbox.zip!nntp.gmd.de!xlink.net!howland.reston.ans.net!pipex!uunet!allegra!big.info.att.com!plts!not-for-mail Newsgroups: news.software.nntp,comp.infosystems.www.misc Organization: P.L.T.S., Bridgewater Twp, New Jersey, USA Lines: 65 Distribution: inet NNTP-Posting-Host: plts.org X-Newsreader: NN version 6.4.19 #3