From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Thread: fdd80,5cdb0c1dbaceb85b X-Google-NewGroupId: yes X-Google-Thread: ffc31,5cdb0c1dbaceb85b X-Google-NewGroupId: yes X-Google-Thread: 1164f8,5cdb0c1dbaceb85b X-Google-NewGroupId: yes X-Google-Attributes: gide311f70d09,gidf4c4f7386e,gidd180ab3bd8,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.68.75.170 with SMTP id d10mr5898159pbw.6.1327078458292; Fri, 20 Jan 2012 08:54:18 -0800 (PST) Path: lh20ni204244pbb.0!nntp.google.com!news2.google.com!goblin3!goblin.stu.neva.ru!news.cgarbs.de!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.net!cs.uu.nl!news.stack.nl!newsfeed.Update.UU.SE!news.Update.UU.SE!not-for-mail From: Johnny Billquist Newsgroups: alt.sys.pdp11,vmsnet.pdp-11,comp.sys.dec Subject: Re: PDP11 Values from MFPT Date: Fri, 20 Jan 2012 17:54:16 +0100 Organization: Update Computer Club Message-ID: References: <4f12e49d$0$295$14726298@news.sunsite.dk> <4f175c07.15409279@nntp.aioe.org> <4f17edcc.11901487@nntp.aioe.org> <4f19229f.41848032@nntp.aioe.org> <4f2121a1.31333128@nntp.aioe.org> NNTP-Posting-Host: 178-83-31-172.dynamic.hispeed.ch Mime-Version: 1.0 X-Trace: Iltempo.Update.UU.SE 1327078457 5274 178.83.31.172 (20 Jan 2012 16:54:17 GMT) X-Complaints-To: newsmaster@Update.UU.SE NNTP-Posting-Date: Fri, 20 Jan 2012 16:54:17 +0000 (UTC) User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:9.0) Gecko/20111222 Thunderbird/9.0.1 In-Reply-To: <4f2121a1.31333128@nntp.aioe.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit On 2012-01-20 14:32, paramucho wrote: > On Thu, 19 Jan 2012 17:50:49 +0100, Johnny Billquist > wrote: > >> On 2012-01-19 15.25, paramucho wrote: >>> On Wed, 18 Jan 2012 19:00:03 +0100, Johnny Billquist >>> wrote: >>> >>>> On 2012-01-18 17:25, paramucho wrote: >>>>> On Wed, 18 Jan 2012 14:18:26 +0100, Johnny Billquist >>>>> wrote: >>>>> >>>>> >>>>> >>>>>>>> In fact, the V11 emulator has a little API which is used to pass >>>>>>>> information between the emulator and the system. It's used to >>>>>>>> relinquish control so that the emulator doesn't hog all the CPU time >>>>>>>> and for various other functions. >>>>>>> >>>>>>> This is one case where VM has it easy. S/370 processors don't use >>>>>>> an idle loop, but a wait state where they stop executing instructions. >>>>>> >>>>>> So does a PDP-11 normally, which is why I wonder what this API is >>>>>> expected to be used for. >>>>> >>>>> Run RSX under SimH and then look at CPU usage and you'll see why :-) >>>>> >>>>> Under SimH, RSX uses up a full CPU slot, just like RT-11 systems which >>>>> don't use the WAIT instruction. >>>>> >>>>> V11 solves the problem for RUST systems, but that doesn't help other >>>>> systems. >>>> >>>> That is because you need to tell SimH to actually release the machine >>>> when the PDP-11 executes a WAIT... :-) >>>> In SimH: set cpu idle >>>> >>>> otherwise, SimH will "emulate" the WAIT instruction by actually doing a >>>> tight loop. >>> >>> Yes, I haven't read the SimH documentation for quite some time :-) >>> >>> From what I can see the SET CPU IDLE code was added in 2006. It >>> applies to RSX and RSTS, but not RT-11 or Unix because they, like >>> RUST, don't use the WAIT instruction. >> >> Eh... Unix definitely use WAIT. > > From what you write, 2.11 BSD Unix definitely uses WAIT. Right. >> Or, what version of Unix are you referring to? I'm looking at (and >> using) 2.11BSD. I haven't really checked older versions. > > I'm quoting from the SimH documentation (that I've very recently found > a reason to reread :-) where Bob Supnik says that the use SET CPU > IDLE "will work for RSTS/E and RSX-11M+ [sic], but not for RT-11 or > UNIX." I assume that that translates to the (correct) use of WAIT > since SET CPU IDLE is hooked to the WAIT instruction. > > The sources for the earlier versions of Unix are available on the web > if you want to find more detail about their usage, but I'm sure you > know that :-) Yes. And I decided to do just that, and V7 also uses WAIT. I do not know why Bob wrote what he did in the documentation. I figured out the command in Simh because of just the cpu hogging when I booted 2.11BSD, which is why I knew a little about it already. More digging have not changed anything so far. The most interesting tidbit so far have been your information that RT-11 don't use WAIT, and I haven't been able to find any use of WAIT after searching through RT-11 after you wrote that. Which in turn led me to my curious question of what RT-11 do to display some idle pattern on the front panel of machines that have such a thing. Still curious about that one, and my first searching through the sources didn't find me any idle pattern display in RT-11 at all. But on a different take - why don't you patch RT-11 to use WAIT, and then have RUST use that to release the CPU instead of implementing a whole new API for this? You still need to patch RT-11 to use that API, and by using WAIT instead, you also gain the potential of all other PDP-11 OSes also getting the benefit, without even having to modify the OSes? Johnny -- Johnny Billquist || "I'm on a bus || on a psychedelic trip email: bqt@softjar.se || Reading murder books pdp is alive! || tryin' to stay hip" - B. Idol