🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #39201

Re: NNTP - building the ultimate server

#39201
From: bill davidsen
Date: Mon, 16 Aug 1999 00:00
34 lines
2593 bytes
In article <7opp11$b3r@netaxs.com>, Avi Freedman <freedman@netaxs.com> wrote:
| Comrade Yum Yum (toby.douglass@arm.com) wrote:
| 
| : I couldn't agree more.  I'm thinking about writing an NNTP server, and 
| : threading is an obviously sensible and useful programming method for 
| : servicing requests.  If you agree with that, and use threads, the better 
| : your threads are, the better your service will be.  And if you've no 
| : threads at all, you're either running single threaded (not viable, 
| : surely) or you're forced to start a full, heavyweight process for each 
| : request - which, as I understand matters, was the one of the two reasons 
| : Linux running Apache was slower than NT; the need to run a new process 
| : for each request and the lack of multithreaded TCP/IP.

I'm not sure that's been true for some years, either. Tests run by folks
who don't care which o/s looks better find little overall difference
between Linux and NT in threads. The thread creation is marginally
faster in one and context switching is marginally faster in the other,
but in general comparing a stable Linux release with NT doesn't show
much to choose.

| Or just sit in a select() loop, servicing tens or hundreds per process.

Nope, as the number of fd's gets higher the performance goes to hell
(relatively), because the search is order N. I believe N is about 20 for
BSD, see the Diablo stuff for some references, I believe that's where I
saw the latest set of measurements.

-- 
bill davidsen <davidsen@tmr.com>  CTO, TMR Associates, Inc
  The Internet is not the fountain of youth, but some days it feels like
the fountain of immaturity.


Technical Details
Message-ID: <7pa56v$3sb8$1@newssvr03-int.news.prodigy.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
References: <37a5671a.1475189546@news.ftech.net> <yl672wcwjk.fsf@windlord.stanford.edu> <MPG.121a6f08bc803747989cab@news.earthlink.net> <7opp11$b3r@netaxs.com>

Show Full Headers
Complete Article Headers
Message-ID: <7pa56v$3sb8$1@newssvr03-int.news.prodigy.com>
Subject: Re: NNTP - building the ultimate server
Date: Mon, 16 Aug 1999 00:00:00 +0000
From: davidsen@tmr.com (bill davidsen)
References: <37a5671a.1475189546@news.ftech.net> <yl672wcwjk.fsf@windlord.stanford.edu> <MPG.121a6f08bc803747989cab@news.earthlink.net> <7opp11$b3r@netaxs.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
X-Deja-AN: 513569182
X-Complaints-To: abuse@prodigy.net
X-Trace: newssvr03-int.news.prodigy.com 934844447 127336 199.4.137.118 (16 Aug 1999 23:00:47 GMT)
Organization: TMR Associates, Schenectady NY
NNTP-Posting-Date: 16 Aug 1999 23:00:47 GMT
Newsgroups: news.software.nntp
Originator: davidsen@darkstar.prodigy.com