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.73.229 with SMTP id o5mr5422591pbv.7.1327066374795; Fri, 20 Jan 2012 05:32:54 -0800 (PST) Path: lh20ni203718pbb.0!nntp.google.com!news1.google.com!news.glorb.com!aioe.org!.POSTED!not-for-mail From: paramucho@hotmail.com (paramucho) Newsgroups: alt.sys.pdp11,vmsnet.pdp-11,comp.sys.dec Subject: Re: PDP11 Values from MFPT Date: Fri, 20 Jan 2012 13:32:49 GMT Organization: Aioe.org NNTP Server Message-ID: <4f2121a1.31333128@nntp.aioe.org> References: <4f12e49d$0$295$14726298@news.sunsite.dk> <4f175c07.15409279@nntp.aioe.org> <4f17edcc.11901487@nntp.aioe.org> <4f19229f.41848032@nntp.aioe.org> Reply-To: paramucho@hotmail.com NNTP-Posting-Host: yPe0Vz9rK3epnEf2vEo6yg.user.speranza.aioe.org Mime-Version: 1.0 X-Complaints-To: abuse@aioe.org X-Notice: Filtered by postfilter v. 0.8.2 X-Newsreader: Forte Agent 1.5/32.451 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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. >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 :-) Ian