From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Thread: fdd80,5cdb0c1dbaceb85b X-Google-NewGroupId: yes X-Google-Thread: 1164f8,5cdb0c1dbaceb85b X-Google-NewGroupId: yes X-Google-Attributes: gide311f70d09,gidd180ab3bd8,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.68.74.201 with SMTP id w9mr18595847pbv.0.1329842526916; Tue, 21 Feb 2012 08:42:06 -0800 (PST) Path: wr5ni51924pbc.0!nntp.google.com!news2.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: Tue, 21 Feb 2012 16:42:00 GMT Organization: Aioe.org NNTP Server Message-ID: <4f45b539.51730368@nntp.aioe.org> References: <4f3d06f0.6951576@nntp.aioe.org> <4f3f4ae9.40953632@nntp.aioe.org> <4f3f6194.19510701@nntp.aioe.org> <4f41dd56.1857737@nntp.aioe.org> <4f4434a7.18816544@nntp.aioe.org> <4f43806e.38215767@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 Tue, 21 Feb 2012 15:16:25 +0100, Johnny Billquist wrote: >On 2012-02-21 12.37, paramucho wrote: >> On Tue, 21 Feb 2012 11:23:02 +0100, Johnny Billquist >> wrote: >> >> >> >>>> But if RSX didn't go into system state you wouldn't need these helper >>>> processes. At present they're not an option. >>> >>> But then you would have to be able to block in the system call, at which >>> point you also need to be able to back out and restart system calls, or >>> else fail system calls with the error saying that you need to redo the >>> system call (EINTR). One is extremely complex, while the other is very >>> ugly. Unix and VMS have gone with the latter. >>> I thought we'd already agreed that Unix was not something to follow. :-) >>> >>> Or we could accept that processes become deaf at certain times, making >>> response times utterly unpredictable. >> >> How does the process become deaf? It can still accept ASTs. What else >> is it supposed to do? > >It wasn't a statement - it was a suggestive question on what to possibly do. >The problem is - if you get an AST while blocking on a system call, what >will you do with that system call. The program can do another system >call in the AST. Can you deal with being blocked in a system call, and >at the same time do another system call? And what do you expect the >stack to look like at that point? And the blocking in the current system >call is somehow reflected in the process status. That needs to be >temporary "forgotten", since the process is not blocked while running in >the AST. But once the AST is finished, I would assume that you expect >the process to go back to being blocked in the outer system call. But >the process state might have changed because of things done in the AST, >including the wish to get out of the system call you were blocked in. >Not to mention what to do if you are blocking on a system call, gets an >AST, and in the AST handler do a system call which blocks you. Then what? System waits ("blocks") may terminate prematurely because of various conditions, including stuff that ASTs do. So, when a system wait returns, the routine has to make sure that it's actual condition has been satisfied, and if it hasn't then it reissues the system wait. The stack is not a problem. In the RT-11 sources you'll see a bunch of calls to $SYSWT which implement this logic for RT-11. $SYSWT uses co-routines, so they're even more convoluted than RT-11 usually is. I had a look at my RUST/XM system wait code tonight, and I think I understand it. The "$stall #10$, prwhi" issues the system wait, with 10$ as the continuation address after the system wait and prwhi. (hibernation) as the system wait state. em$spd:: ;suspend 10$: mov p$hpcr,r4 ;get the pcr $float ;stop the scheduler mov pr.sta(r4),r0 ;get the status bic #prwak$,pr.sta(r4) ;clear the bit bit #stact$,p$hast ;are we in an AST? bne 20$ ;yes - forget the rest bit #prwak$,r0 ;did we get a wake up? bne 20$ ;yes $stall #10$, prwhi. ;hibernate 20$: $land return em$rsm:: ;resume mov p$hpcr,r4 ;get the pcr bis #prwak$,pr.sta(r4) ;set wake pending return >See http://en.wikipedia.org/wiki/PCLSRing for more details. That seems to be some other issue. >> It's still just one specific test. That doesn't measure overall system >> performance or other system specific behaviors. > >Sure. I can dig up a number of more examples showing that response times >in VMS are much worse than RSX. How many do you need to be convinced? How long is a piece of string :-) I once purchased a VAX/730, so you don't need to convince me of anything... But I also spent about five years or so working with VMS and it ain't so bad and I learned a lot by reading the VMS source microfiches. Ian