Article View: news.software.nntp
Article #38276News server architecture (was: Submitting to Freenix)
From: Russ Allbery
Date: Sat, 26 Jun 1999 00:00
Date: Sat, 26 Jun 1999 00:00
29 lines
2159 bytes
2159 bytes
Chris Sedore <cmsedore@maxwell.syr.edu> writes: > As Joe correclty pointed out (in a part trimmed), you have to be careful > wrt threads packages. FreeBSD's threads are userland wrappers around > select(), etc and they really won't do anything significant to improve > the situation. I believe Linux is in this boat also. (Both offer > kernel threads, but the implementations are a bit immature and suffer > from other problems). I believe threads under Linux are currently implemented as separate processes that share their address spaces, which is close enough to true kernel threads for me. (My primary development platform is Solaris, which certainly has real POSIX kernel threads; it even has a multithreaded kernel.) > One other area worth noting is select(). Select becomes considerably > less efficient as more connections are added to check. For the aio > routines (which are not as efficient as I hope they will eventually be), > there is a crossover at about 40 descriptors where it becomes faster to > use aio routines over select. The crossover is FreeBSD specific, but I > suspect it holds true for any OS that implements select() by running > through the descriptor table and setting a flag for each. Would it make any difference to use poll() on OSes where that's supported? -- Russ Allbery (rra@stanford.edu) <URL:http://www.eyrie.org/~eagle/>
Technical Details
Message-ID:
<ylzp1ns9ds.fsf_-_@windlord.stanford.edu>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:
<7g24e7$ckh$1@info.cs.uofs.edu> <yl3dzg28yw.fsf@windlord.stanford.edu> <37731731$0$374@news.execpc.com> <ylg13gyawh.fsf@windlord.stanford.edu> <3773780d$0$374@news.execpc.com> <9303290311991906734-1@dp-news.maxwell.syr.edu>Show Full Headers
Complete Article Headers
Message-ID: <ylzp1ns9ds.fsf_-_@windlord.stanford.edu> Subject: News server architecture (was: Submitting to Freenix) Date: Sat, 26 Jun 1999 00:00:00 +0000 From: Russ Allbery <rra@stanford.edu> References: <7g24e7$ckh$1@info.cs.uofs.edu> <yl3dzg28yw.fsf@windlord.stanford.edu> <37731731$0$374@news.execpc.com> <ylg13gyawh.fsf@windlord.stanford.edu> <3773780d$0$374@news.execpc.com> <9303290311991906734-1@dp-news.maxwell.syr.edu> 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: 494065201 Organization: The Eyrie Newsgroups: news.software.nntp