From: Johnny Billquist <bqt@softjar.se>
Subject: Re: Y3K for PDP-11 Operating Systems
Date: Wed, 25 May 2011 11:44:30 -0700 [thread overview]
Message-ID: <irjime$2a1$1@Iltempo.Update.UU.SE> (raw)
In-Reply-To: <4ddcf78e$0$313$14726298@news.sunsite.dk>
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
next prev parent reply other threads:[~2011-05-25 18:44 UTC|newest]
Thread overview: 146+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-04 13:12 Y3K for PDP-11 Operating Systems Jerome H. Fine
2011-04-04 13:40 ` Dennis Grevenstein
2011-04-04 18:58 ` Jerome H. Fine
2011-04-04 20:55 ` Johnny Billquist
2011-04-30 22:27 ` billy
2011-05-01 14:01 ` Jerome H. Fine
2011-05-01 17:27 ` Johnny Billquist
2011-05-02 0:53 ` Jerome H. Fine
2011-05-01 21:16 ` glen herrmannsfeldt
2011-05-02 0:54 ` Jerome H. Fine
2011-05-02 4:07 ` Johnny Billquist
2011-05-02 13:37 ` Jerome H. Fine
2011-05-02 15:39 ` Johnny Billquist
2011-05-02 5:15 ` glen herrmannsfeldt
2011-05-03 1:20 ` jjh
2011-05-03 13:18 ` Bob Koehler
2011-05-03 16:51 ` Jerome H. Fine
2011-05-03 17:50 ` VAXTREK Bob Koehler
[not found] ` <j0Y9tTme9SEK@eisner.encompasserve.org>
2011-05-03 18:39 ` Y3K for PDP-11 Operating Systems Henry Crun
2011-05-03 19:56 ` Jerome H. Fine
2011-05-03 22:52 ` onedbguru
2011-05-04 0:07 ` Bill Gunshannon
2011-05-04 5:16 ` Richard B. Gilbert
2011-05-04 13:01 ` Bill Gunshannon
2011-05-04 14:19 ` Richard B. Gilbert
2011-05-04 14:58 ` Scott Dorsey
2011-05-04 16:33 ` Bill Gunshannon
2011-05-05 1:51 ` Richard B. Gilbert
2011-05-06 18:08 ` G Cornelius
2011-05-06 18:47 ` Richard B. Gilbert
2011-05-06 22:13 ` Johnny Billquist
2011-05-08 1:00 ` Rich Alderson
2011-05-08 1:51 ` Johnny Billquist
2011-05-08 11:19 ` Richard B. Gilbert
2011-05-09 21:32 ` Rich Alderson
2011-05-09 15:40 ` Rob Brown
2011-05-09 15:43 ` Johnny Billquist
2011-05-09 21:47 ` vandys
2011-05-09 22:05 ` Johnny Billquist
2011-05-09 23:05 ` vandys
2011-05-09 23:20 ` Johnny Billquist
2011-05-10 0:12 ` vandys
2011-05-10 1:36 ` Johnny Billquist
2011-05-10 2:01 ` glen herrmannsfeldt
2011-05-10 13:31 ` Bob Koehler
[not found] ` <iqa6a7$gu8$1@dont-Organization: Encompasserve <fXiU1i6RQYr0@eisner.encompasserve.org>
2011-05-10 16:56 ` John Wallace
2011-05-10 17:50 ` Bob Koehler
2011-05-11 16:04 ` G Cornelius
2011-05-04 17:02 ` Johnny Billquist
2011-05-04 17:20 ` Bob Koehler
2011-05-04 18:10 ` glen herrmannsfeldt
2011-05-04 19:21 ` John Wallace
2011-05-04 22:06 ` MetaEd
2011-05-05 3:17 ` Johnny Billquist
2011-05-10 13:20 ` Bob Koehler
2011-05-10 13:29 ` Bob Koehler
2011-05-10 15:29 ` Johnny Billquist
2011-05-10 17:16 ` G Cornelius
2011-05-10 17:45 ` Bob Koehler
2011-05-10 21:34 ` Johnny Billquist
2011-05-10 17:58 ` Bob Koehler
2011-05-10 21:36 ` Johnny Billquist
2011-05-03 16:38 ` Jerome H. Fine
2011-05-03 11:28 ` paramucho
2011-05-03 16:09 ` Jerome H. Fine
2011-05-23 3:41 ` billy
2011-05-23 4:51 ` Johnny Billquist
2011-05-23 14:47 ` jjh
2011-05-23 15:04 ` Bill Gunshannon
2011-05-23 22:52 ` Johnny Billquist
2011-05-24 0:16 ` Bill Gunshannon
2011-05-24 0:40 ` Johnny Billquist
2011-05-24 12:58 ` Bill Gunshannon
2011-05-24 14:02 ` glen herrmannsfeldt
2011-05-24 14:36 ` Johnny Billquist
2011-05-24 16:42 ` Bill Gunshannon
2011-05-24 18:17 ` Johnny Billquist
2011-05-24 20:07 ` Bill Gunshannon
2011-05-25 1:07 ` Rich Alderson
2011-05-25 10:34 ` Johnny Billquist
2011-05-25 15:46 ` Bill Gunshannon
2011-05-25 23:00 ` Johnny Billquist
2011-05-26 15:50 ` Fritz Wuehler
2011-05-26 16:53 ` Johnny Billquist
2011-05-26 20:20 ` Fritz Wuehler
2011-05-28 18:01 ` Bill Gunshannon
2011-05-26 0:58 ` Rich Alderson
2011-05-26 1:23 ` glen herrmannsfeldt
2011-05-26 13:01 ` Bob Koehler
2011-05-27 0:54 ` glen herrmannsfeldt
2011-05-26 20:15 ` Rich Alderson
2011-05-26 23:56 ` glen herrmannsfeldt
2011-05-27 18:37 ` Rich Alderson
2011-05-27 0:02 ` glen herrmannsfeldt
2011-05-27 3:17 ` Johnny Billquist
2011-05-27 18:51 ` Rich Alderson
2011-05-27 19:48 ` Johnny Billquist
2011-05-27 18:35 ` Rich Alderson
2011-05-26 1:14 ` Jerome H. Fine
2011-05-26 1:32 ` glen herrmannsfeldt
2011-05-26 20:39 ` Jerome H. Fine
2011-05-26 15:50 ` Fritz Wuehler
2011-05-25 1:01 ` Rich Alderson
2011-05-26 12:53 ` Bob Koehler
2011-05-26 16:59 ` Johnny Billquist
2011-05-26 8:03 ` Fritz Wuehler
2011-05-26 14:21 ` paramucho
2011-05-26 18:50 ` billy
2011-05-27 11:58 ` paramucho
2011-05-27 17:23 ` billy
2011-05-26 17:04 ` Johnny Billquist
2011-05-27 1:30 ` Fritz Wuehler
2011-05-27 2:17 ` Scott Dorsey
2011-05-27 3:26 ` Johnny Billquist
2011-05-30 21:09 ` John Wallace
2011-05-31 1:15 ` Johnny Billquist
2011-05-31 18:02 ` jjh
2011-05-31 20:54 ` Bob Koehler
2011-05-31 21:37 ` glen herrmannsfeldt
2011-05-25 2:59 ` Jerome H. Fine
2011-05-25 10:51 ` Johnny Billquist
2011-05-25 12:36 ` Jerome H. Fine
2011-05-25 17:25 ` Tom Lake
2011-05-25 18:01 ` Jerome H. Fine
2011-05-25 18:44 ` Johnny Billquist [this message]
2011-05-26 1:20 ` Rich Alderson
2011-05-26 16:53 ` Rob Brown
2011-05-26 20:27 ` Rich Alderson
2011-05-27 3:27 ` Johnny Billquist
2011-05-26 20:38 ` Jerome H. Fine
2011-05-27 4:44 ` Johnny Billquist
2011-05-24 12:02 ` paramucho
2011-05-23 14:48 ` Jerome H. Fine
2011-05-23 22:46 ` Johnny Billquist
2011-05-24 0:19 ` Bill Gunshannon
2011-05-24 0:43 ` Johnny Billquist
2011-05-25 18:41 ` Jerome H. Fine
2011-05-24 2:54 ` billy
2011-05-24 13:03 ` Bill Gunshannon
2011-05-24 14:39 ` Johnny Billquist
2011-05-24 15:10 ` billy
2011-05-24 15:48 ` Johnny Billquist
2011-05-24 16:54 ` Bill Gunshannon
2011-05-24 14:42 ` billy
2011-05-24 16:56 ` Bill Gunshannon
2011-05-25 18:05 ` Jerome H. Fine
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox