Article View: news.software.nntp
Article #39200Re: NNTP - building the ultimate server
From: bill davidsen
Date: Mon, 16 Aug 1999 00:00
Date: Mon, 16 Aug 1999 00:00
29 lines
2227 bytes
2227 bytes
In article <37B17055.89EBC5A0@nospam.fr>, Etienne <etienne@nospam.fr> wrote: | This is wrong. Once the new thread or the new process is created, then | switching from one context to another is basically the same. Yes. No. You can have kernel level process switch (fork), kernel level thread switch, and user level "context switch" to consider. User level becomes less desirable as the price of SMP machines goes down and the reliability of SMP o/s goes up. | 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. As above, using user level threads keeps overhead very low on a uniprocessor, but doesn't allow other processors to work. The time to create a process or thread and the time to context switch are o/s dependent. Some do it really well, Linux and NT, some do it well, freeBSD, and some pay a high penalty for context switch at the kernel level. -- 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:
<7pa5n2$3bka$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-mailReferences:
<37a5671a.1475189546@news.ftech.net> <MPG.121a6f08bc803747989cab@news.earthlink.net> <19990810192829.214$8D@newsreader.com> <37B17055.89EBC5A0@nospam.fr>Show Full Headers
Complete Article Headers
Message-ID: <7pa5n2$3bka$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> <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: 513572342 X-Complaints-To: abuse@prodigy.net X-Trace: newssvr03-int.news.prodigy.com 934844962 110218 199.4.137.118 (16 Aug 1999 23:09:22 GMT) Organization: TMR Associates, Schenectady NY NNTP-Posting-Date: 16 Aug 1999 23:09:22 GMT Newsgroups: news.software.nntp Originator: davidsen@darkstar.prodigy.com