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.238.198 with SMTP id vm6mr9195275pbc.3.1329564300106; Sat, 18 Feb 2012 03:25:00 -0800 (PST) Path: wr5ni39335pbc.0!nntp.google.com!news2.google.com!eweka.nl!lightspeed.eweka.nl!feeder.erje.net!eternal-september.org!feeder.eternal-september.org!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: Sat, 18 Feb 2012 12:24:59 +0100 Organization: Update Computer Club Message-ID: References: <4f396a03.27713593@nntp.aioe.org> <4f37ec05.63303162@nntp.aioe.org> <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> NNTP-Posting-Host: 178-83-31-172.dynamic.hispeed.ch Mime-Version: 1.0 X-Trace: Iltempo.Update.UU.SE 1329564299 17220 178.83.31.172 (18 Feb 2012 11:24:59 GMT) X-Complaints-To: newsmaster@Update.UU.SE NNTP-Posting-Date: Sat, 18 Feb 2012 11:24:59 +0000 (UTC) User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:10.0.2) Gecko/20120216 Thunderbird/10.0.2 In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit On 2012-02-17 18:13, Johnny Billquist wrote: > On 2012-02-17 13.41, paramucho wrote: >> On Thu, 16 Feb 2012 21:15:55 +0100, Johnny Billquist >> wrote: >> >> >> >>> Not to mention >>> that a process doing a call to open or create a file actually is not >>> blocked in RSX. It can continue running happily on for ever before that >>> call completes. >> >> I don't recall anyone *ever* requesting an asynchronous USR under >> RT-11. It's just not functionality which is needed most of the time. >> When I have needed it, there have been workarounds. In one instance I >> was able to keep the continuous activity going in chained ASTs. In >> another case I used two tasks. That was a long time ago. > > It is somewhat popular when you want to maximize performance in RSX. > Keep doing other work while file operations are being processed. > Asynchronous I/O, you know... > > But when it don't exist, I would not expect people to ask for it. It might be pointing out the obvious, but in RSX, when you open a file, or do whatever file operations, scheduling is still going on. So, not only can your program continue running while the file open is in progress, other programs will also be scheduled during this, and can have their file operations processed at the same time, as well as doing anything else. >> The need to open files asynchronously occurs fairly rarely. All >> systems have their little advantages here and there. In RUST/XM each >> process effectively has it's own private generic ACP. Multiple >> processes can perform overlapping file opens on the same volume. >> Processes only queue when they want to modify the directory structure >> of the same volume. Now, that's probably something you can't do on >> RSX, but I wouldn't use the difference to characterize RSX as doing >> "way more locking than" RUST/XM does. It's a nice feature. I seem to >> recall that later versions of VMS did something similar. > > For pure read-only operations it is an optimization you might want to > do, but it is not possible in either VMS or RSX. > When you open a file in those operating systems, you can specify if > others are allowed to open the file or not, and thus you must have a > clear concept of one process opening the file completely before another > can, so you can enforce protections like that. > So it is doing more locking that RUST/XM does. And it provides more > services, by doing this. (And obviously at a cost...) >>>> RT-11 uses IPL for hardware synchonisation in just the same way that >>>> RSX does. The fork routine is a good example. Here's the RSX code. A clarification of my view might help here: Both OSes use IPL to protect/synchronize access to some structures. However, in RSX this is basically just one structure, while RT-11 uses the IPL way to protect many things. In RSX, protection from multiple processes and drivers manipulating shared data in an uncontrolled way is through the fork. No other way is allowed. You cannot bump just bump the IPL and then think you are safe in RSX. So it is not done. This is different than RT-11, where this is clearly done. The RSX way is not cheaper, but it does make things more uniform and easy to follow (I think), and it makes it much easier to make the system work in an MP environment. I'm not sure I'd use the term "hardware synchronization", since it is essentially synchronization between processes. Yes, IPLs are also used for hardware synchronization, but that is essentially talking about interrupt handlers preventing additional interrupts while processing one (or at least that is my quick reflection on what hardware synchronization is). >> But on the matter of IPL and RSX, I note that RSX also raises IPL to >> complete certain tasks, in the system and in drivers. Indeed, I count >> about 5000! occurrences of raised IPL in the RSX sources (by searching >> for ";;;"). > > Yes. Not surprised, since all instructions in device drivers which > happens between an interrupt, and the creation of the fork, for example, > will be running at a raised IPL. > Also, if you search for ";;;", you also be getting a lot of empty lines, > which is just because comments are running over several lines, and each > line is prefixed with ;;;, if the code being commented is running at a > raised IPL. But it's arguable how relevant empty lines with just a > comment is... > > Another nice point here is that device drivers structures are not being > manipulated by more than one CPU, since a device can only be attached to > one CPU at a time, so those pieces are the only ones where IPL is > enough, and you don't have to worry about MP issues in RSX. The fork > queue, however, is shared between all processors, and needs to be > properly protected. By the way, checking in M+ V4.6, I get about 6500 hits when searching for ;;; 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