Article View: news.software.nntp
Article #39220Re: NNTP - building the ultimate server
From: Avi Freedman
Date: Tue, 17 Aug 1999 00:00
Date: Tue, 17 Aug 1999 00:00
28 lines
1733 bytes
1733 bytes
bill davidsen (davidsen@tmr.com) wrote: : | 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 But searching is quick compared to full-weight context switches; don't know about thread switches. Even doing 20 means you can support 1000 readers with only 50 processes. Doing tests with some custom code it appears that a few normal processes with 200 connections per in a select() loop is actually faster under Linux and BSD than having a separate thread per reader, and a lot more portable to boot... I'll look at the diablo stuff again; I didn't remember seeing measurements and discussion in the docs; maybe in the code... Avi
Technical Details
Message-ID:
<7pcptu$c8r@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-mailReferences:
<37a5671a.1475189546@news.ftech.net> <yl672wcwjk.fsf@windlord.stanford.edu> <MPG.121a6f08bc803747989cab@news.earthlink.net> <7opp11$b3r@netaxs.com> <7pa56v$3sb8$1@newssvr03-int.news.prodigy.com>Show Full Headers
Complete Article Headers
Message-ID: <7pcptu$c8r@netaxs.com> Subject: Re: NNTP - building the ultimate server Date: Tue, 17 Aug 1999 00:00:00 +0000 From: freedman@netaxs.com (Avi Freedman) References: <37a5671a.1475189546@news.ftech.net> <yl672wcwjk.fsf@windlord.stanford.edu> <MPG.121a6f08bc803747989cab@news.earthlink.net> <7opp11$b3r@netaxs.com> <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 X-Deja-AN: 513990946 Organization: Philadelphia's Complete Internet Provider Newsgroups: news.software.nntp