Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: Johnny Billquist <bqt@softjar.se>
Subject: Re: KDA-50 on eBay
Date: Tue, 05 Jul 2011 00:06:30 +0200	[thread overview]
Message-ID: <iutdh7$gqe$1@Iltempo.Update.UU.SE> (raw)
In-Reply-To: <4e12242f$0$312$14726298@news.sunsite.dk>

On 2011-07-04 22.37, Jerome H. Fine wrote:
>  >Johnny Billquist wrote:
>> >On 2011-07-04 14.03, Jerome H. Fine wrote:
>>> I do appreciate your patience in my attempts to understand the aspects
>>> of RSX-11 and RSTS/E which restrict how the hardware can be used.
>>>
>>> On the other hand, I assume that RSX-11 is able to restrict access to
>>> certain hardware such as a tape drive to just ONE user at a time? Or
>>> even a specific data disk drive? Please confirm these assumptions if
>>> they are true.
>>
>> Yes, RSX do support the concept of having a device only accessible to
>> one user at a time. This is implemented as a part of the device driver
>> infrastructure.
>>
>> Once more does that magic word "device driver" pop up... :-)
> I do appreciate your suggestions since at this point
> they will be used to see if there is a way to work
> within the limitations of RSX-11. Note that this
> will ONLY be the start of the concept and not
> even a solution.

Well, like I said. The device driver itself it not difficult. It's 
deciding how you want to do things that makes it interesting...

>>> If my assumptions are correct, then perhaps RSX-11 could provide
>>> access to the "new" PC memory one user at a time?
>> Yes. Through a device driver. (Didn't I already suggest this?)
>>
>> A device driver both provides you with serialized access, so that no
>> two programs clobber each other right in the middle of a transaction,
>> but it also gives you the ability to give a program exclusive access,
>> if you want. These are two different things, equally important.
> Since E11 can perform rather interesting emulation,
> it would probably be possible to assign all of the "new"
> PC memory to a single job via a device driver. It might
> even be possible to allow the "new" PC memory to be
> segmented and assign portions to different jobs, but
> that would be an enhancement after the initial concept
> was implemented.

Sure. Having the device available for only one user at a time is 
definitely easy. Pretty sad though, if several people are using the 
machine, and only one can run your nifty program at a time.

>>> While I very much doubt that anyone will want to spend the effort
>>> to implement the required code in the next few years (even assuming
>>> that a solution that is consistent with the multi-user aspects of RSX-11
>>> can be found), perhaps the concept can be kept in mind.
>> It would actually be pretty simple. Writing a device driver is nothing
>> magic. However, one should probably try to figure out exactly how to
>> implement it, and what to go about when doing it. Maybe you should use
>> it as a very fast disk? Or perhaps add some other infrastructure so
>> that several users could use it at the same time? Or maybe someone can
>> come up with some other cool idea?
> The fast disk concept is already available under RT-11
> via the HD(X).SYS device driver. This is actually a
> completely separate aspect which would require an
> RSX-11 style device driver which would probably
> almost trivial for an experienced person such as
> yourself with so many years of experience with RSX-11.
>
> If you look at the RT-11 source code for HD.MAC,
> this supports a maximum of 32 MB of disk usage via:
> MOUNT HDA0: RAM: /SIZE:65536
> An actual disk file can also be used which most Windows
> operating systems will almost immediately put into cache
> if there is sufficient memory available. You just need to
> write an RSX-11 version of HD.MAC which looks very
> much like an RK05, but has more storage available and
> is even less complicated with regard to the IOPAGE
> register usage.
>
> Until John started to emulate the MSCP devices, the
> HD: device was often used.
>
> I assume that an RSX-11 version of the HD: device
> driver was never produced. Can you confirm that?
> If you do decide to produce an RSX-11 flavour for
> the HD: device, let me know since there are a few
> details which are helpful to know about in an MMU
> environment.

I have no knowledge of any HD driver, and I do not know the exact 
details of how that device works, so I can't really make much comment on it.
But I can easily see how I would write a device driver for any kind of 
storage available on the PDP-11 to make it look enough like a disk for 
the RSX file system to then make use of it like any other disk.

>> I can say that it would be very much nicer if it was usable by more
>> than one program at a time. (This is my main gripe about the DOS
>> device in E11. It is so stupid that you have to limit it to just one
>> user at a time, because the actual device have no way of keeping
>> separate transactions running at the same time.)
> I know that John did a DO(X).SYS for RT-11, Is there one
> available for RSX-11 as well? Please confirm if there is?

There are several. John got one from some guy, whose name escapes me 
right now, which works like a normal privileged program, which grabs the 
device and have a full interface in the program to copy files to/from 
the device to RSX.
I wrote a normal device driver for the thing, so that you can use the 
normal RSX tools to access files on the device. However, the DO device 
is unfortunately so badly designed so that I have to fake it looking 
like a tape device to make it work in a sensible way.

But it works just fine:

.dev do:
DO0:     Public Loaded Type=UNIX
.dir do:"e11"


Directory DO0:
4-JUL-11 23:53

e11                 ;0        0.

Total of 0./0. blocks in 1. file

.

Notice that the DO: device do not report actual file sizes, nor any 
dates, which is sad. Also, I cannot allow several users access the 
device at the same time, since the DO: device is also designed in a way 
that cannot allow that.

>>> If a problem arises in the future and the solution is a couple of
>>> GB of data memory or conversion of a working system which
>>> already has access to the memory, the effort might then be worth
>>> while. At the moment, it looks like the old "solution looking for
>>> a problem" situation and since I am unlikely to ever become even
>>> 10% as capable running RSX-11 as you are (probably will never
>>> run RSX-11 at all), I will make no additional comments on aspects
>>> which fit RT-11 quite well, but which have no place in RSX-11 at
>>> the present time.
>> Running RSX is easy. However, it does put totally different
>> restrictions at your feet than RT-11. But on the other hand, it also
>> gives you totally different capabilities than RT-11. It's a different
>> type of shoe. If you are in an RT-11 mindset, RSX is going to be
>> difficult, yes. But so will any OS, since it's OSes like RT-11 which
>> are the odd one out.
> I have used VMS on a VAX along with RSTS/E and TSX-Plus on
> a PDP-11. So I used to be very aware of multi-job environments.
> However, I rarely use any of them any more except in regard to
> programs which also run under RT-11.
>
> I suspect that it might be possible under E11 to grant exclusive
> access to a device (actually via RSX-11) which can be passed
> to E11 via a password or some other code which then allows
> only that job to execute certain specific (normally illegal) instructions.

If you go through a device driver, the problem is already solved without 
any passwords or other codes sent to E11. Not using a device driver, you 
will not make it work, since E11 does not know when a context switch 
happens in RSX, which means that some other program is running, which 
should not be allowed. So you cannot solve the problem that way.

> If the "solution looking for a problem" never manages to be
> found, then it seems rather doubtful that the use of PC memory
> will ever be resolved under RSX-11.

You are constantly trying to stick the cart in front of the donkey 
instead of behind it, where it should be.

> Since I am probably the only person using it under RT-11 and
> then only for a buffer when I decided to see if it would be a
> useful method to sieve for Prime Numbers, it seems very
> doubtful that any other problem will use this "new" feature.

Well, I can't honestly see any big need for your special solution to 
your special problem. If I were to do something like that in RSX, I'd 
probably stick the data in a file anyway, which means I can already get 
the same amount of data in, without going outside of the current system.
But in general, if you have problems that require large amounts of 
memory to solve, then a PDP-11 is probably the wrong tool. And your 
solution isn't really much help in the general case either, since very 
few large memory problems only need to look at such a small subset as 
one word for a specific instance.
In general, I'd say a disk based solution, where you can work on larger 
entries, while still having very large data sets will probably be 
easier, and just as efficient in the long run.

> However, if you do use the DOS device under RSX-11 to
> move data back and forth between RSX-11 running under
> E11 and a Windows file system, that would be something
> that is very interesting. Please let me know.

I do, except I run e11 under Unix. But the RSX device driver works just 
as fine talking to the device if it's on a Windows machine.

> Also, an RSX-11 flavour of the HD: device is probably useful
> only if speed is an extremely high priority. The HD: device is
> almost certainly faster than MSCP emulation, but if that is not the
> time critical aspect of any implementation, then MSCP can do
> the identical file I/O without the need to introduce a new type
> of hardware into RSX-11. Again, if you do decide to implement
> the HD: device driver in RSX-11, hints on MMU aspects might
> be useful.

Hints on MMU aspects will most likely be totally worthless. RSX always 
runs with the MMU enabled, and there are a whole bunch of routines that 
handles address translations between 16, 18 and 22 bits, absolute 
addresses, virtual addresses in the kernel as well as for the user 
program, and all other aspects needed to be solved, since the problems 
have all been seen so many times already.
Also, if the HD device don't do DMA, it becomes even easier, because 
then I don't even have to deal with some aspects of memory translations, 
but instead can just use the existing functions that store/read the user 
requested buffer word by word for the device driver.

But if you point me to some specification of the HD device, I can tell 
you how much work a device driver would be.

	Johnny


  reply	other threads:[~2011-07-04 22:06 UTC|newest]

Thread overview: 85+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-19 20:48 KDA-50 on eBay Bill Gunshannon
2011-06-20 18:48 ` Fritz Wuehler
2011-06-28 12:12   ` Bill Gunshannon
2011-06-28 17:28     ` glen herrmannsfeldt
2011-06-29 15:29       ` Rob Brown
2011-06-28 21:01     ` Dave Wade
2011-06-29 13:10       ` Bill Gunshannon
2011-06-28 21:56     ` Nomen Nescio
2011-06-28 22:27       ` Scott Dorsey
2011-06-29 13:30         ` Bill Gunshannon
2011-06-29 13:49           ` Scott Dorsey
2011-06-29 14:45             ` Bill Gunshannon
2011-06-29 13:23       ` Bill Gunshannon
2011-06-29  1:35     ` Jerome H. Fine
2011-06-29  1:58       ` Johnny Billquist
2011-07-01  0:32         ` Jerome H. Fine
2011-07-01  5:57           ` Johnny Billquist
2011-07-02  1:18             ` Jerome H. Fine
2011-07-01 23:49               ` Johnny Billquist
2011-07-01 23:56                 ` glen herrmannsfeldt
2011-07-02  0:01                   ` Johnny Billquist
2011-07-03 11:47                     ` Jerome H. Fine
2011-07-03 16:23                       ` Johnny Billquist
2011-07-03 16:28                         ` Scott Dorsey
2011-07-03 16:35                           ` Johnny Billquist
2011-07-03 18:19                         ` Jerome H. Fine
2011-07-03 19:40                           ` Johnny Billquist
2011-07-04  0:19                             ` Jerome H. Fine
2011-07-04  9:54                               ` Johnny Billquist
2011-07-04 12:03                                 ` Jerome H. Fine
2011-07-04 13:44                                   ` Johnny Billquist
2011-07-04 18:21                                     ` ChrisQ
2011-07-04 22:20                                       ` Johnny Billquist
2011-07-08 22:04                                         ` ChrisQ
2011-07-08 23:21                                           ` Johnny Billquist
2011-07-10 10:49                                           ` Jerome H. Fine
2011-07-04 20:37                                     ` Jerome H. Fine
2011-07-04 22:06                                       ` Johnny Billquist [this message]
2011-07-02  2:10                   ` Jerome H. Fine
2011-07-05 13:20                 ` Bob Koehler
2011-07-05 13:34                   ` Johnny Billquist
2011-07-05 14:12                     ` paramucho
2011-07-05 17:33                     ` Bob Koehler
2011-07-05 23:13                       ` Johnny Billquist
2011-07-06 16:09                         ` Rob Brown
2011-07-06 17:01                           ` Johnny Billquist
2011-07-06 17:52                             ` Johnny Billquist
2011-07-06 18:13                             ` Rob Brown
2011-07-07  3:03                           ` paramucho
2011-07-07  3:19                             ` paramucho
2011-07-07  5:11                               ` paramucho
2011-07-07 22:27                             ` Johnny Billquist
2011-07-08  9:57                               ` Hans Vlems
2011-07-08 12:16                                 ` Jerome H. Fine
2011-07-08 19:40                                 ` Jerome H. Fine
2011-07-06 13:56                       ` Bob Koehler
2011-07-06 16:41                         ` Johnny Billquist
2011-07-06 11:38                   ` John Wallace
2011-07-06 13:59                     ` Bob Koehler
2011-07-01 23:54               ` glen herrmannsfeldt
2011-06-29  2:07     ` Johnny Billquist
2011-06-29 13:40       ` Bill Gunshannon
2011-06-29 21:11         ` Johnny Billquist
2011-06-30 13:19           ` Bill Gunshannon
2011-07-01  0:21             ` Jerome H. Fine
2011-07-01 18:56             ` jjh
2011-07-01  6:45       ` Hans Vlems
2011-06-30 17:58     ` Rob Doyle
2011-07-01 17:55       ` Tom Lake
2011-07-01 23:04         ` glen herrmannsfeldt
2011-07-02 13:34         ` Thomas Laus
2011-07-02 14:30           ` Bill Gunshannon
2011-07-02 14:56             ` Tom Lake
2011-07-02 21:44             ` Nomen Nescio
2011-07-03 15:45               ` David Riley
2011-07-07  7:29 ` glen herrmannsfeldt
2011-07-12 13:01 ` Free Stuff Was: " Bill Gunshannon
2011-07-12 18:08   ` Bill Gunshannon
2011-07-12 21:11     ` Jerome H. Fine
2011-07-12 21:53     ` Nomen Nescio
  -- strict thread matches above, loose matches on Subject: below --
2011-06-29 13:52 Dale R Worley
2011-06-29 15:06 ` Bill Gunshannon
2011-06-29 15:09   ` Scott Dorsey
2011-06-29 15:22     ` Bill Gunshannon
2011-06-30 15:36 Dale R Worley
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