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 w9mr10155321pbv.0.1329595625249; Sat, 18 Feb 2012 12:07:05 -0800 (PST) Path: wr5ni40875pbc.0!nntp.google.com!news2.google.com!goblin3!goblin1!goblin2!goblin.stu.neva.ru!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: Sat, 18 Feb 2012 21:07:03 +0100 Organization: Update Computer Club Message-ID: References: <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> <4f3faccd.38767714@nntp.aioe.org> NNTP-Posting-Host: 178-83-31-172.dynamic.hispeed.ch Mime-Version: 1.0 X-Trace: Iltempo.Update.UU.SE 1329595624 27284 178.83.31.172 (18 Feb 2012 20:07:04 GMT) X-Complaints-To: newsmaster@Update.UU.SE NNTP-Posting-Date: Sat, 18 Feb 2012 20:07:04 +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: <4f3faccd.38767714@nntp.aioe.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit On 2012-02-18 15:28, paramucho wrote: > On Sat, 18 Feb 2012 12:24:59 +0100, Johnny Billquist > wrote: > > > >> 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 USR does not block scheduling or ASTs in RT-11. Processes queue > for directory services, that's all. An RSX system with a single F11ACP > (and/or a single system disk) would be more or less equivalent for the > great majority of programs which issue synchronous directory services. If you have a single disk, then yes, calls like open and close will be serialized for that disk. But you can still do operations on other disks. A single F11ACP does not serialize access to different disks, so the point is the number of disks, not the number of ACPs. > The RSX systems I use have a single F11ACP, and since they mostly have > a single system device there wouldn't be much point in having more > than one. I don't think any of the software I use depends on > asynchronous directory services. It's just not something most folk > need to have. In previous posts I've described how one can circumvent > the USR queueing behavior when it's actually necessary. Indeed, if you only have one disk, it is totally pointless to have more than one ACP, as a device can only be using one ACP. But a single ACP does not mean that the ACP is single threaded. It performs operations on different disks in parallel. >>>>>> 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. > > Life wasn't meant to be easy for an O/S. There is no good point for making it harder than it already is. > I addressed this point in my other post where I pointed out that VMS > system services make extensive use of SETIPL. It's everywhere in the > system service code. > > VMS, like RT-11, avoids blocking the scheduler and ASTs as little as > possible by selectively using a range of devices. RSX wraps everything > in system state. It gains some simplicity in doing so but loses, I > think, by increasing scheduling and AST latencies. I'll happily challenge that. Latencies in RSX are very good in fact. If anything, VMS could do with some improvement (rip out the cruft added, and get back to its roots). The claim that RT-11 avoids blocking the scheduler is true in as much as scheduling can happen sometimes while the process is inside the kernel. However, RT-11 blocks processes from some operations if any other process is doing the same (or similar operation), which makes the avoided scheduling block more like smoke than actual value. And interrupts are occasionally locked out in various places in RT-11, even if for just short intervals, while they are locked out much less in RSX. > The RSX approach of wrapping system calls in system state means that > system calls can't afford to hang about in the kernel because of the > increased scheduling and AST latencies. That's a hard discipline to > maintain across the life of a system. System creep is unavoidable. I > don't have access to the M+ sources, but I notice a significant > increase in the number of executive directives and think to myself: "I > bet some of these are taking a lot longer than would have been > permitted in early versions of RSX." Right. System calls cannot afford to hang around. They are always required to finish without any sleeps, delays, mutex hangs, or so on. It is really not a hard discipline to follow, I think. In fact, I think it is wonderful, makes a lot of sense, and is much better than the alternative. However, I do recognize that it takes a little more thinking, and a different approach to some problems than the traditional, straight forward one. But it is an effort well worth it. And no, the "new" system services in M+ do not take much more time than the "old" ones. It still behaves the same way. If it would not, then the system would not be usable, and RSX systems have been used (traditionally) in plenty of hard realtime system applications. That's the normal place where you still find RSX systems (yes, I know of plenty still in use in the industry). It's partly just because of the very good response times and latencies that RSX was so successful. >>>> 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 ";;;"). > >> By the way, checking in M+ V4.6, I get about 6500 hits when searching >> for ;;; > > :-) > > GRDRV.MAC, LSDRV.MAC are the heaviest users... Heh. Neither even exists in M+. But that is two device drivers, if they follow the normal RSX naming conventions. Biggest offenders in M+ are: CRASH.MAC - which is the crash dump code, run only when the system have crashed. TTICH.MAC - input part of the terminal device driver (Actually, all of the terminal driver is a big contributor, the terminal driver in RSX is horribly complex.) Both of these have more than 1000 occurances of ;;; each. 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