๐Ÿš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #39139

Re: NNTP - building the ultimate server

#39139
From: Curt Welch
Date: Fri, 13 Aug 1999 00:00
40 lines
3026 bytes
Etienne <etienne@nospam.fr> wrote:
> Hi all
>
> Curt Welch a ๏ฟฝcrit :
>
> > toby.douglass@arm.com (Comrade Yum Yum) 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 ....
> >
> > Not true at all.  If you are on a single CPU machine, you are running a
> > single thread.  It's only an issue of which way is best for scheduling
> > all the work to do (threads, vs processes, vs select loops, etc).
> > Threads are not the obvious best soulution at all.  They are just one
> > soultion which has it's advantages and disadvantages.
>
>   This is wrong. Once the new thread or the new process is created, then
> switching from one context to another is basically the same.
>   But fork is quite a very heavy work, particularly when it is repeated
> for a high number of connection each second. And this is the same, with
> one or more processors ...
>   So the point is not to know how many processors you have, but how long
> is the process of creating a new thread or a new process.

No.  The point is that fork times and the number of processors are just two
of many design issues that need to be evaluated when designing a news
server. And if you take all the issues into account, then you can build a
good server using threads, or processes, or whaterver.  There are many
soultions and none of them (that I've seen so far) are obviously better
than the others.

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/

Technical Details
Message-ID: <19990812212136.462$zI@newsreader.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> <brad-0208991250220001@brad.techos.skynet.be> <37a87721.1479292265@news.ftech.net> <brad-0208991326230001@brad.techos.skynet.be> <yl672wcwjk.fsf@windlord.stanford.edu> <MPG.121a6f08bc803747989cab@news.earthlink.net> <19990810192829.214$8D@newsreader.com> <37B17055.89EBC5A0@nospam.fr>

Show Full Headers
Complete Article Headers
Message-ID: <19990812212136.462$zI@newsreader.com>
Subject: Re: NNTP - building the ultimate server
Date: Fri, 13 Aug 1999 00:00:00 +0000
From: curt@kcwc.com (Curt Welch)
References: <37a5671a.1475189546@news.ftech.net> <brad-0208991250220001@brad.techos.skynet.be> <37a87721.1479292265@news.ftech.net> <brad-0208991326230001@brad.techos.skynet.be> <yl672wcwjk.fsf@windlord.stanford.edu> <MPG.121a6f08bc803747989cab@news.earthlink.net> <19990810192829.214$8D@newsreader.com> <37B17055.89EBC5A0@nospam.fr>
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: 512078627
X-Face: "p}G*1KH{+F7EYGKLb>ogDguabZ+%,?^epeFB!nzu`)`$=QcvL1KF6<0GH!Tbc!Sqo[|tV5 %IW48mQf3K=Ci&gZ7]]aazx@]Y-nq!r5{yH/#,?@lDdUDvOfByB2hVW0.@OM%{l/{cT'{w
X-User: Curt@NewsReader.Com
Organization: NewsReader.Com
X-Url: http://CurtWelch.Com/
Newsgroups: news.software.nntp