<!-- MHonArc v2.4.4 --> <!--X-Subject: Re: [MUD-Dev] Introduction --> <!--X-From-R13: Xrss Yrffryzna <wrssxNgrargjbex.pbz> --> <!--X-Date: from babe.globecomm.net [207.51.48.8] by mx4.ibm.net id 863582792.36424-1 Wed May 14 04:06:32 1997 --> <!--X-Message-Id: 3.0.32.19970513211558.00b74bc4#mail,tenetwork.com --> <!--X-Content-Type: text/plain --> <!--X-Head-End--> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> <html> <head> <title>MUD-Dev message, Re: [MUD-Dev] Introduction</title> <!-- meta name="robots" content="noindex,nofollow" --> <link rev="made" href="mailto:jeffk#tenetwork,com"> </head> <body background="/backgrounds/paperback.gif" bgcolor="#ffffff" text="#000000" link="#0000FF" alink="#FF0000" vlink="#006000"> <font size="+4" color="#804040"> <strong><em>MUD-Dev<br>mailing list archive</em></strong> </font> <br> [ <a href="../">Other Periods</a> | <a href="../../">Other mailing lists</a> | <a href="/search.php3">Search</a> ] <br clear=all><hr> <!--X-Body-Begin--> <!--X-User-Header--> <!--X-User-Header-End--> <!--X-TopPNI--> Date: [ <a href="msg00453.html">Previous</a> | <a href="msg00456.html">Next</a> ] Thread: [ <a href="msg00461.html">Previous</a> | <a href="msg00456.html">Next</a> ] Index: [ <A HREF="author.html#00455">Author</A> | <A HREF="#00455">Date</A> | <A HREF="thread.html#00455">Thread</A> ] <!--X-TopPNI-End--> <!--X-MsgBody--> <!--X-Subject-Header-Begin--> <H1>Re: [MUD-Dev] Introduction</H1> <HR> <!--X-Subject-Header-End--> <!--X-Head-of-Message--> <UL> <LI><em>To</em>: <A HREF="mailto:mud-dev#null,net">mud-dev#null,net</A></LI> <LI><em>Subject</em>: Re: [MUD-Dev] Introduction</LI> <LI><em>From</em>: Jeff Kesselman <<A HREF="mailto:jeffk#tenetwork,com">jeffk#tenetwork,com</A>></LI> <LI><em>Date</em>: Tue, 13 May 1997 21:16:01 -0700</LI> </UL> <!--X-Head-of-Message-End--> <!--X-Head-Body-Sep-Begin--> <HR> <!--X-Head-Body-Sep-End--> <!--X-Body-of-Message--> <PRE> At 07:16 PM 5/13/97 PST8PDT, you wrote: >>(FWIW, someone mentioned that process context switching was >>expensive. This is true, but your server is going to be switched out >>anyways, as it's unlikely that nothing else is running on the machine >>at all.) As JL poinetd out its EQUALLY unlikely that you have 500 system processes. But if you spwan a process per user you will get tehre pretty good. Three snickers bar don't cost me much money... 500... JK > >Context switching is cheap if it does not become a significant part of >your total process expense (obviously). Run a single process, or even >just a couple/few processes and is stays cheap. Start running one >process for every connection or something else equally silly and of a >sudden context switches start becoming a major fraction of the total >expense of running your system. > >Wanna try something? > >Write a little program (shell script will do fine) that does nothing >but print out numbers and delay a couple seconds every now and then. >Run a couple copies. They'll run very nicely and very rapidly, The >price of context switching between the simultaneously executing copies >is small. Watch your CPU utilisation and it should stay quite low. > >Now start up 300 instances of this little trivial program and watch >your system crawl into the drain. Why? The price of context >switching between your programs suddenly became a significant >percentage of the total work your CPU was doing. (Graciously ignoring >swap, RAM etc aspects that also chime in here). > >-- >J C Lawrence Internet: claw#null,net >(Contractor) Internet: coder#ibm,net >---------------(*) Internet: clawrenc#cup,hp.com >...Honorary Member Clan McFUD -- Teamer's Avenging Monolith... > > > </PRE> <!--X-Body-of-Message-End--> <!--X-MsgBody-End--> <!--X-Follow-Ups--> <HR> <!--X-Follow-Ups-End--> <!--X-References--> <!--X-References-End--> <!--X-BotPNI--> <UL> <LI>Prev by Date: <STRONG><A HREF="msg00453.html">Re: [MUD-Dev] RP thesis...</A></STRONG> </LI> <LI>Next by Date: <STRONG><A HREF="msg00456.html">Re: [MUD-Dev] Introduction</A></STRONG> </LI> <LI>Prev by thread: <STRONG><A HREF="msg00461.html">Re: [MUD-Dev] Disk v. Mem</A></STRONG> </LI> <LI>Next by thread: <STRONG><A HREF="msg00456.html">Re: [MUD-Dev] Introduction</A></STRONG> </LI> <LI>Index(es): <UL> <LI><A HREF="index.html#00455"><STRONG>Date</STRONG></A></LI> <LI><A HREF="thread.html#00455"><STRONG>Thread</STRONG></A></LI> </UL> </LI> </UL> <!--X-BotPNI-End--> <!--X-User-Footer--> <!--X-User-Footer-End--> <ul><li>Thread context: <BLOCKQUOTE><UL> <LI><STRONG>Re: [MUD-Dev] Re: Prepositions and parsing</STRONG>, <EM>(continued)</EM> <ul compact> <ul compact> <LI><strong><A NAME="00638" HREF="msg00638.html">Re: [MUD-Dev] Re: Prepositions and parsing</A></strong>, clawrenc <a href="mailto:clawrenc#cup,hp.com">clawrenc#cup,hp.com</a>, Wed 21 May 1997, 03:30 GMT <UL> <LI><strong><A NAME="00815" HREF="msg00815.html">Re: [MUD-Dev] Re: Prepositions and parsing</A></strong>, Marian Griffith <a href="mailto:gryphon#iaehv,nl">gryphon#iaehv,nl</a>, Tue 27 May 1997, 04:52 GMT <UL> <LI><strong><A NAME="00868" HREF="msg00868.html">Re: [MUD-Dev] Re: Prepositions and parsing</A></strong>, clawrenc <a href="mailto:clawrenc#cup,hp.com">clawrenc#cup,hp.com</a>, Wed 28 May 1997, 06:21 GMT </LI> </UL> </LI> </UL> </LI> </ul> </ul> </LI> <LI><strong><A NAME="00461" HREF="msg00461.html">Re: [MUD-Dev] Disk v. Mem</A></strong>, Chris Gray <a href="mailto:cg#ami-cg,GraySage.Edmonton.AB.CA">cg#ami-cg,GraySage.Edmonton.AB.CA</a>, Wed 14 May 1997, 21:13 GMT <LI><strong><A NAME="00455" HREF="msg00455.html">Re: [MUD-Dev] Introduction</A></strong>, Jeff Kesselman <a href="mailto:jeffk#tenetwork,com">jeffk#tenetwork,com</a>, Wed 14 May 1997, 11:06 GMT <UL> <li><Possible follow-up(s)><br> <LI><strong><A NAME="00456" HREF="msg00456.html">Re: [MUD-Dev] Introduction</A></strong>, Jeff Kesselman <a href="mailto:jeffk#tenetwork,com">jeffk#tenetwork,com</a>, Wed 14 May 1997, 11:16 GMT </LI> </UL> </LI> <LI><strong><A NAME="00453" HREF="msg00453.html">Re: [MUD-Dev] RP thesis...</A></strong>, Jeff Kesselman <a href="mailto:jeffk#tenetwork,com">jeffk#tenetwork,com</a>, Wed 14 May 1997, 10:58 GMT <UL> <LI><strong><A NAME="00476" HREF="msg00476.html">Re: [MUD-Dev] RP thesis...</A></strong>, Nathan Yospe <a href="mailto:yospe#hawaii,edu">yospe#hawaii,edu</a>, Thu 15 May 1997, 05:58 GMT </LI> <LI><strong><A NAME="00494" HREF="msg00494.html">Re: [MUD-Dev] RP thesis...</A></strong>, clawrenc <a href="mailto:clawrenc#cup,hp.com">clawrenc#cup,hp.com</a>, Fri 16 May 1997, 08:19 GMT </LI> </UL> </LI> </UL></BLOCKQUOTE> </ul> <hr> <center> [ <a href="../">Other Periods</a> | <a href="../../">Other mailing lists</a> | <a href="/search.php3">Search</a> ] </center> <hr> </body> </html>