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.74.201 with SMTP id w9mr13383115pbv.0.1329717204762; Sun, 19 Feb 2012 21:53:24 -0800 (PST) Path: wr5ni46300pbc.0!nntp.google.com!news1.google.com!eweka.nl!lightspeed.eweka.nl!194.109.133.85.MISMATCH!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!news.stack.nl!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: Mon, 20 Feb 2012 05:53:20 GMT Organization: Aioe.org NNTP Server Message-ID: <4f41dd56.1857737@nntp.aioe.org> References: <4f3a87d9.14307647@nntp.aioe.org> <4f3ca414.21534066@nntp.aioe.org> <4f3dab02.35785786@nntp.aioe.org> <4f3d06f0.6951576@nntp.aioe.org> <4f3f4ae9.40953632@nntp.aioe.org> <4f3f6194.19510701@nntp.aioe.org> Reply-To: paramucho@hotmail.com NNTP-Posting-Host: CmgvwL3sOlojnxUjt8znzA.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 Sat, 18 Feb 2012 21:58:28 +0100, Johnny Billquist wrote: >On 2012-02-18 12:55, paramucho wrote: >> On Fri, 17 Feb 2012 18:13:44 +0100, Johnny Billquist >> wrote: >> >> >>>> The opening section of code is more or less duplicated in RMONFB.MAC >>>> (later RMON.MAC). Look for the "C$SIGN:". The code in the USR is only >>>> used for the single-threaded single-user RT-11/SJ (and later for >>>> RT-11/SB). >>> >>> I was looking in RMONFB.MAC. >>> C$SIGN almost immediately do an EMT 374, which ends up in USR. >>> What am I missing? >> >> .CSIGEN (C$SIGN:) purges all channels before prompting for a new >> command and opening files. Thus, it begins with a loop to purge >> channels. Control is passed to the USR only if a *new* file is open on >> a "special device", such as magtape or cassette. (In fact, "special >> devices" have their own built-in ACPs and can be called without using >> the USR, but that's a complication I've been avoiding introducing >> here.) >> >> Note, .CSISPC (C$SISP:) does not purge or open files. > >Must be looking at different versions of something, this is C$SIGN: from >RMONFB: > >.SBTTL .CSIGEN AND .CSISPC - CSI CALL EMTS > .ENABL LSB >C$SIGN: CLR R4 > MOV (PC)+,R0 > .BYTE 8.,3 ; R0 = [ 3 | 8. ] >10$: EMT 374 ; .purge #8., .purge #7, etc > DECB R0 ; next channel > BGE 10$ ; more channels to do > BR 11$ ; join common code EMT 374, subcode 3 is .PURGE. Channels 8. down to 0 are purged. .PURGE checks the conditions I listed. >If I remember right, this is from RT-11 V5.5, so it might be that things >got changed after that? It's pretty much the same. >> I could extend the functionality to handle access control fairly >> easily. It would just be a matter of having a queue for open >> operations with potential sharing conflicts. > >Right. But then you need to figure out if an open request is for a file >that is already open or not, and then do two different paths, depending >on that. And the paths are pretty much the same, except without the >shared access checks on one of them. And if you have lots of open files, >then the checking can become a noticeable part of the operation. But >yes, there are possibly some optimization that could be done here. I >have not looked deep enough at it to tell for sure if they would be >enough to be worth the code. At some point in the OPEN process you'd have to "register" an open with the fully qualified, normalized file name/id and the access mode. >> But that's a bad thing because it's put everything into fork/system >> and that increases AST and scheduling latencies. RT-11 and VMS can >> perform most of their system call tasks with no impact at all on AST >> delivery or scheduling latencies. That's the real issue we're talking >> about. > >Instead potentially affecting interrupt latencies... :-) Latency is typically measured as "average" and "worst" case. Occasional short sequences of four or so instructions doesn't alter either of those measures. >As you are not expected to spend large amounts of time in forks in RSX, >this is not really a big issue. But yes, forks do affect AST delivery >and task execution (let's take the big picture here, scheduling is just >a subset of task execution, which is really what is being delayed by forks). >But since you only have one CPU, it can either be running a user >process, or run the fork. The fork needs to be completed sooner or >later, especially since the device related to the fork cannot issue >another fork until the previous is completed. Is there a point in >delaying the fork? The point is that in RSX an executive directive is effectively a "fork routine", and these directives can take quite a considerable time to complete. Creating a new task is not a simple, short process. The worst-case fork latency in RSX is the time it takes to execute the longest executive directive. It is utterly clear that VMS could not handled system calls in system state--thousands of instructions are sometimes required. >> My original list had RT-11, RUST/XM and VMS. It's RUST/XM and VMS >> which use mutexes. > >I seem to remember seeing something that looked like mutexes in RT-11 as >well, but I might have been confused. > >Hmm, I think I was thinking of the "blocking conditions" bits you have >for jobs in RT-11. They smelled somewhat like mutexes in RT-11, but I >bet I read them wrong. I must be getting old...I'm starting to forget RT-11... This post addresses the points raised in the other post... Ian