<!-- MHonArc v2.4.4 --> <!--X-Subject: Re: Just a bit of musing --> <!--X-From-R13: pynjNahyy.arg --> <!--X-Date: from babe.globecomm.net [207.51.48.8] by mx3.ibm.net id 858383635.83462-1 Fri Mar 14 23:53:55 1997 --> <!--X-Message-Id: 3329e15b26e1002#msgSFO01,schwab.com --> <!--X-Content-Type: text/plain --> <!--X-Reference: 199703110226.CAA43471#out1,ibm.net --> <!--X-Head-End--> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> <html> <head> <title>MUD-Dev message, Re: Just a bit of musing</title> <!-- meta name="robots" content="noindex,nofollow" --> <link rev="made" href="mailto:claw#null,net"> </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="msg00113.html">Previous</a> | <a href="msg00115.html">Next</a> ] Thread: [ <a href="msg00110.html">Previous</a> | <a href="msg00115.html">Next</a> ] Index: [ <A HREF="author.html#00114">Author</A> | <A HREF="#00114">Date</A> | <A HREF="thread.html#00114">Thread</A> ] <!--X-TopPNI-End--> <!--X-MsgBody--> <!--X-Subject-Header-Begin--> <H1>Re: Just a bit of musing</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: Just a bit of musing</LI> <LI><em>From</em>: <A HREF="mailto:claw#null,net">claw#null,net</A></LI> <LI><em>Date</em>: Fri, 14 Mar 97 15:28:59 -0800</LI> <LI><em>Reply-to</em>: <A HREF="mailto:claw#null,net">claw#null,net</A></LI> </UL> <!--X-Head-of-Message-End--> <!--X-Head-Body-Sep-Begin--> <HR> <!--X-Head-Body-Sep-End--> <!--X-Body-of-Message--> <PRE> On 08/03/97 at 09:41 AM, cg#ami-cg,GraySage.Edmonton.AB.CA (Chris Gray) said: >>Well, given an SMP machine, with an OS that will intelligently >>distributes threads -- that all semi happens for free with me (its not >>quite so good as I try to minimise thread creations, as few to no >>current OS'es will migrate a thread across processors for load sharing). >Huh? As far as I know, all SMP OS's will readily run a runnable thread on >whatever CPU is free in the SMP. Solaris, AIX4, HPUX all do this, and I >have no reason to believe any other wouldn't as well. Are you suggesting >that once a thread in a process has run on a given CPU, it is somehow >bound to that CPU for execution? If so, can you point me at some docs >that say this - it could be quite significant for us at work. I phrased the above incorrectly. I'll try to clarify. I am not aware of a MT SMP OS which will migrate an already started thread between CPU's. Yes, this means that once you start the thread, it is assigned to a CPU, and there it will stay until it dies. Note: I don't have any supporting documentation, but I recall early docs from Cutler and the Hursley guys mentioning this and the base reasons. I suggest querying your MT SMP OS vendor. The base problem with what I wrote above is that the reasoning is crap. I minimise thread creations because they are expensive. What I should have written with corrections in [squares]: >>Well, given an SMP machine, with an OS that will intelligently >>distributes threads -- that all semi happens for free with me (its not >>quite so good as I try to minimise thread creations, [which] as few to no >>current OS'es will migrate a thread across processors for load sharing, >> [doesn't necessarily gain me much]). I have slated at some point a touch that will preferentially kill older threads as vs newer threads with the idea being that newer threads are more likely to have been allocated to a currently free CPU. Of course its not really true, but what the heck. I haven't thought of a better/cheaper approach. -- J C Lawrence Internet: coder#null,net ----------(*) Internet: coder#ibm,net ...Honourary Member of 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="msg00113.html">Re: Threads, IO handling, and Event Queues</A></STRONG> </LI> <LI>Next by Date: <STRONG><A HREF="msg00115.html">Re: Just a bit of musing</A></STRONG> </LI> <LI>Prev by thread: <STRONG><A HREF="msg00110.html">Re: Just a bit of musing</A></STRONG> </LI> <LI>Next by thread: <STRONG><A HREF="msg00115.html">Re: Just a bit of musing</A></STRONG> </LI> <LI>Index(es): <UL> <LI><A HREF="index.html#00114"><STRONG>Date</STRONG></A></LI> <LI><A HREF="thread.html#00114"><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: Just a bit of musing</STRONG>, <EM>(continued)</EM> <ul compact> <LI><strong><A NAME="00105" HREF="msg00105.html">Re: Just a bit of musing</A></strong>, Jon A. Lambert <a href="mailto:jlsysinc#ix,netcom.com">jlsysinc#ix,netcom.com</a>, Thu 13 Mar 1997, 23:28 GMT </LI> <LI><strong><A NAME="00106" HREF="msg00106.html">Re: Just a bit of musing</A></strong>, Wout Mertens <a href="mailto:Wout.Mertens#rug,ac.be">Wout.Mertens#rug,ac.be</a>, Thu 13 Mar 1997, 23:48 GMT </LI> <LI><strong><A NAME="00108" HREF="msg00108.html">Re: Just a bit of musing</A></strong>, Chris Gray <a href="mailto:cg#ami-cg,GraySage.Edmonton.AB.CA">cg#ami-cg,GraySage.Edmonton.AB.CA</a>, Fri 14 Mar 1997, 11:13 GMT </LI> <LI><strong><A NAME="00110" HREF="msg00110.html">Re: Just a bit of musing</A></strong>, Jon A. Lambert <a href="mailto:jlsysinc#ix,netcom.com">jlsysinc#ix,netcom.com</a>, Fri 14 Mar 1997, 13:17 GMT </LI> <LI><strong><A NAME="00114" HREF="msg00114.html">Re: Just a bit of musing</A></strong>, claw <a href="mailto:claw#null,net">claw#null,net</a>, Sat 15 Mar 1997, 07:53 GMT </LI> <LI><strong><A NAME="00115" HREF="msg00115.html">Re: Just a bit of musing</A></strong>, claw <a href="mailto:claw#null,net">claw#null,net</a>, Sat 15 Mar 1997, 08:02 GMT </LI> <LI><strong><A NAME="00116" HREF="msg00116.html">Re: Just a bit of musing</A></strong>, Chris Gray <a href="mailto:cg#ami-cg,GraySage.Edmonton.AB.CA">cg#ami-cg,GraySage.Edmonton.AB.CA</a>, Sat 15 Mar 1997, 10:54 GMT </LI> <LI><strong><A NAME="00117" HREF="msg00117.html">Re: Just a bit of musing</A></strong>, Jon A. Lambert <a href="mailto:jlsysinc#ix,netcom.com">jlsysinc#ix,netcom.com</a>, Sat 15 Mar 1997, 14:29 GMT </LI> <LI><strong><A NAME="00118" HREF="msg00118.html">Re: Just a bit of musing</A></strong>, Travis Casey <a href="mailto:casey#NU,cs.fsu.edu">casey#NU,cs.fsu.edu</a>, Sat 15 Mar 1997, 21:20 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>