🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #38447

Re: Submitting to Freenix

#38447
From: bill davidsen
Date: Tue, 06 Jul 1999 00:00
34 lines
2382 bytes
In article <7l127f$24lt$1@twwells.com>,
T. William Wells <bill@twwells.com> wrote:

| A context switch does not involve serious overhead. It's just a
| matter of entering the kernel, fiddling a few registers and
| loading others, and leaving the kernel. That's CPU time but
| measured in microseconds; it's just not terribly significant
| compared to other delays. Admittedly, a good thread context switch
| is faster, since it can skip the kernel entry/exit, but the
| difference just isn't meaningful compared to other slowdowns in
| the process.

I'm not sure what you mean by "a good thread context switch" here, there
are two kinds of threads, user level and kernel level. The kernel does
have a minimal kernel overhead, while all the user level libraries I've
seen are blindingly fast using a total on one processor. The kernel has
to know if you want SMP.

I've seen some discussion of mixed modes, multiple kernel threads each
running a bunch of user level threads, and I believe that Diablo mixes
multiple processes (not threads) with some form of select loop (also not
threads). I haven't looked at Diablo in months, so I may be making this
up.

If you have a bunch of sockets open you will still get worse performance
than kernel level threads, even with only one processor. Big selects are
expensive.
-- 
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: <7lu4fs$3kmm$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: <7g24e7$ckh$1@info.cs.uofs.edu> <7ktqaa$k06$1@twwells.com> <yl3dzg28yw.fsf@windlord.stanford.edu> <7l127f$24lt$1@twwells.com>

Show Full Headers
Complete Article Headers
Message-ID: <7lu4fs$3kmm$1@newssvr03-int.news.prodigy.com>
Subject: Re: Submitting to Freenix
Date: Tue, 06 Jul 1999 00:00:00 +0000
From: davidsen@tmr.com (bill davidsen)
References: <7g24e7$ckh$1@info.cs.uofs.edu> <7ktqaa$k06$1@twwells.com> <yl3dzg28yw.fsf@windlord.stanford.edu> <7l127f$24lt$1@twwells.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: 498182470
X-Complaints-To: abuse@prodigy.net
X-Trace: newssvr03-int.news.prodigy.com 931304764 119510 199.4.137.118 (6 Jul 1999 23:46:04 GMT)
Organization: TMR Associates, Schenectady NY
NNTP-Posting-Date: 6 Jul 1999 23:46:04 GMT
Newsgroups: news.software.nntp
Originator: davidsen@darkstar.prodigy.com