From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Thread: fdd80,20cce773a38e2849 X-Google-NewGroupId: yes X-Google-Thread: 1164f8,20cce773a38e2849 X-Google-NewGroupId: yes X-Google-Thread: ffc31,20cce773a38e2849 X-Google-NewGroupId: yes X-Google-Attributes: gide311f70d09,gidd180ab3bd8,gidf4c4f7386e,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!feeder.news-service.com!94.75.214.39.MISMATCH!aioe.org!news.stack.nl!newsfeed.Update.UU.SE!news.Update.UU.SE!not-for-mail From: Johnny Billquist Newsgroups: alt.sys.pdp11,comp.sys.dec,vmsnet.pdp-11 Subject: Re: Y3K for PDP-11 Operating Systems Date: Wed, 25 May 2011 11:44:30 -0700 Organization: Update Computer Club Message-ID: References: <4d99c3b6$0$23756$14726298@news.sunsite.dk> <4dc1e27c.40366475@news.tpgi.com.au> <93vbcaF3luU1@mid.individual.net> <940bm5Fcc3U1@mid.individual.net> <941ob1Fre1U1@mid.individual.net> <4ddc7062$0$314$14726298@news.sunsite.dk> <4ddcf78e$0$313$14726298@news.sunsite.dk> NNTP-Posting-Host: c-67-180-198-1.hsd1.ca.comcast.net Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: Iltempo.Update.UU.SE 1306349072 2369 67.180.198.1 (25 May 2011 18:44:32 GMT) X-Complaints-To: newsmaster@Update.UU.SE NNTP-Posting-Date: Wed, 25 May 2011 18:44:32 +0000 (UTC) User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.17) Gecko/20110414 Thunderbird/3.1.10 In-Reply-To: <4ddcf78e$0$313$14726298@news.sunsite.dk> Xref: g2news1.google.com alt.sys.pdp11:2172 comp.sys.dec:3388 vmsnet.pdp-11:583 I'll trim this to just the parts that I think are relevant... On 2011-05-25 05.36, Jerome H. Fine wrote: > >Johnny Billquist wrote: > >> >On 2011-05-24 19.59, Jerome H. Fine wrote: >> >>> Can Johnny fill out the RSX-11 values and someone else the >>> RSTS/E values? Also, add operating system features which >>> are felt to be important. >> >> Not really sure what you want me to fill in, but I'll try to make >> comments on your table. > > Thank you. I am already aware of some of the values. But others are > beyond my knowledge. I will attempt to update the table from your > comments. > >>> Maximum RT-11 TSX-Plus RSX-11 RSTS/E >>> ---------- ------- ---------- -------- --------- >>> >>> Instructions: 64 KB 64 KB >> >> What is this? Addressable virtual address space? > > Yes - I assume that RSX-11S (without an MMU) is less than > 64 KB, but when the MMU is available and execution is in > USER space, 64 KB are available. RT-11 is the same. Under > RT11FB (and RT11SJ), only about 32 KB are available. Under > RT11XM and using VBGEXE to initiate a virtual job, 64 KB > are available. Under the RT-11 RTS under RSTS/E, I have > found that a bit less than 56 KB are available. Does anyone > who knows RSTS/E well know if a full 64 KB are available > if a RTS is not in use? So, just to make this clear: This is pretty much not OS-related. It's a hardware questions, and relates to the PDP-11 architecture. I don't see the point of having that in a table for various PDP-11 OSes. The numbers will be the same for all of them, since this is a PDP-11 question. To clarify a little about RTST/E for you. You can never not have an RTS in use. There is always an RTS. However, one RTS does not occupy any memory from the user space, and that is the RSX RTS, which is "invisible", since it is implemented as a part of the kernel. And even with the RT-11 RTS, you 64K of memory. However, 8K of that is reserved for the RTS use. But the address space is still there, and is still used. >>> Data (No I/D) INCL INCL >>> Data (I/D) 64 KB 64KB >> >> I guess we're talking about directly addressable virtual address space. >> This is not OS dependent. It is a function of the architecture, and >> will be the same on all OSes running on a PDP-11, with the following >> caveats: >> If MMU is not enabled, then you have different rules. > > Obviously. I presume that RSX-11S and RT-11 with RT11SJ are > examples. I know that TSX-Plus allows only virtual jobs which > can be allowed the full 64 KB. I presume that RSTS/E also > allows only virtual jobs. Can anyone confirm? Yes. I thought that was obvious. And I started by pointing this out. Without the MMU, the rules are different. Both RSX and RSTS/E always runs with the MMU on. That sets the stage. So, you have virtual addressing, and (obviously) this means that all 16 bits of address space can be played with. >> If the OS don't support split I/D-space, then you cannot use it, even >> if the hardware supports it. > > Also true. Under RT-11, this became available in V05.06 > using the RT11ZM monitor. It is probably used very little > under RT-11. I know of no applications which have been > written to take advantage of I/D space for RT-11. So your list could (should) probable be changed into just a question of wether it supports split I/D space. >> I'm not sure if it is relevant to talk about memory spaces in other >> ways. Like, in RSX, you can create big memory areas which you can map >> into and out of your virtual address space. It's sortof like mmap() in >> Unix, except different. But it gives an understanding about what it is >> to talk about mmap here. > > The same concept can be used in RT-11 under RT11ZM. > However, under the PDP-11 architecture, the maximum > data space at any one time will always be 64 KB. However, > under RT-11, the MMU can be used directly to access > all 4 MB of memory (with only a small overhead of > changing the MMU each time a different page of memory > is to be accessed). Probably only the RT-11 operating > system does this 99% of the time since it should be done > only in KERNAL mode and most of the time with interrupts > disabled. You didn't listen. I said that RSX can allow programs to use larger sections of ram, and it's all done through system calls. You do not play with the MMU. But you do have larger memory spaces. However, you have something like "windows" that you move around in those larger memory spaces, to see different parts of the memory (yes, the underlying mechanism used for this is the MMU mappings). This is totally protected by the OS, fully and seamlessly managed by tge OS, and it is used a lot. All from user space (and interrupts are not disabled). You can choose to build your overlaid programs as memory resident, in which case the overlay scheme will use this feature of the OS to make your program much faster. After all, overlays already resident in memory means you just need to change the mapping instead of reading another overlay in from disk. But it's also used to pass information between programs (one program can send mapping information to another program, so that they can share memory), and it can be used to store larger data sets than fits into 64K of memory. >>> Scheduling: Job# Complex >> >> For RSX, the scheduling is basically a strict priority scheduler. The >> task with the highest priority that wants to run gets the CPU. > > Same with TSX-Plus. However, the priorities are raised > and lowered (within limits) depending on what the job is doing. So it's not the same. RSX does not modify any priorities. If it did, I would have mentioned it. > Can anyone please comment on RSTS/E scheduling? As far as I remember, RSTS/E uses a kind of round-robin scheduling. But RSTS/E have something called run burst level as well, which decides how long a process is on the CPU once it is running. A higher run burst means it runs longer before a context switch. I can't remember there being any scheduling priorities, but it might just be that I don't remember. >>> Device:(Hard Disk) 65536 65536 >> >> Hard disks themself don't have a limit. It's just a question of the >> controller and disk. For SCSI disks and controllers, the current disks >> are reaching into the terabyte range. > > Amazing!!!!!!!! I remember when I first purchased a > MAXTOR XT8760E at $ 1 / MB at an EOL sale > probably around 1995. What is amazing about this? We are talking about something that have basically nothing to do with PDP-11s. Just go to any disk manufacturer today, and you'll see that these are the current disk sizes. >>> File:(FS Hard Disk) 65528 65528 >> >> The RSX file system by default limits disks to 8 GB. In disk blocks >> we're talking about 2^24 blocks. > > The same with RT-11 at present for the normal MSCP > access. Partition numbers up to 255 are supported. > > HOWEVER, my actual question was the size of each > individual file. Is the maximum block number 65535? Oh. Ok. Yes, individual files in RSX also normally can be regarded as having a max of 2^24 blocks. However, I don't know if there is anything in there that prevents it from being 2^32. The API itself from programs to the device driver passes 32-bit disk block numbers, but I haven't checked properly if there might be some field, some where, that are limited to 24 bits. > Namely, is the standard block number a 16 bit word > (as in RT-11) or does RSX-11 support a 32 bit block > number for a file? As said before. The places I can remember off my head actually use 32 bit block numbers, but I might be forgetting some place where it might be just 24 bits. (For a long time, 24 bit block numbers have been a norm, so it might be that some field somewhere, in some function, actually forces this limit because 24 bit block numbers are what internal code was using for such a long time. Support for 32 bit block numbers in the internal file system code handling was only tweaked with in the last release of RSX.) I try to emphasis on the two different sides here. The user-interfacing parts, which I think are 32 bit clean, and have been so from the stone age. And then the internal file system code, which for the longest time only supported 24 bit block numbers. Actually, DEC originally created three schemes for how retrieval pointers in RSX could look like. The retrieval pointers are what the internal file system code deals with. The three schemes were called: 2/2 3/1 4/2 This is basically the size of the disk block number, and the disk block counts. So a retrieval pointer for 2/2 would be capable of addressing a start block in the 2^16 range, and up to 2^16 consecutive blocks from there. In reality, only 3/1 was implemented for a long time. 4/2 support was implemented, and I think functional, first in RSX-11M+ V4.6, but I have not actually tested it. What kind of retrieval pointers that are in use are indicated in the home block of the disk, so you can have different schemes for different disks concurrently. A scheme like 2/2 is only useful for small disks. But since 3/1 takes the same amount of space, and can address larger disks, you might as well use that for smaller disks as well, so 2/2 would appear to have been pretty pointless in the end. But from the program point of view, all this is hidden. You have no idea what type of retrieval pointers are used. You just specify a 32-bit block number when you want to read from disk. >>> Max Files: 255 255 >> >> Max number of files in an RSX system is 65500 files. But then again, >> you can create virtual disks inside a disk, and each of those can have >> 65500 files as well, which means that you can go to very many files on >> a physical disk, by just nesting virtual disks inside it. > > I was actually asking about the maximum number of > OPEN files at any one time. Ah. That would be 255 under RSX. >>> Synchronous I/O Yes Yes >> >> What does this mean? Can RSX do synchronous I/O? Yes, of course. It >> can also do asynchronous I/O. > > Just asking. I always assumed that most operating systems > allowed both types of I/O. I understand that Windows > supports only synchronous I/O. What about RSTS/E? No, windows supports both synchronous and asynchronous I/O as well. As do Unix. It's just more difficult to do under some OSes, and there might be limitations and restrictions. >>> File Sharing No Yes >> >> What do you put into the concept of file sharing? RSX can allow >> concurrent read-only access to files. It can allow one writer with >> many readers, and it can also allow multiple writers to a file. It >> also have disk block locking to control concurrent access to a file, >> so that you can have a controlled consistent view of the contents of a >> file. >> Programs also have control over what access they want to allow other >> programs to have to a file. > > I understand that RSTS/E also supports file sharing? Can > anyone please confirm? Yes, it do. Pretty similar to RSX. Johnny