* QBUS Prototyping
@ 2010-04-08 13:52 Bill Gunshannon
2010-04-08 14:38 ` Scott Dorsey
` (2 more replies)
0 siblings, 3 replies; 146+ messages in thread
From: Bill Gunshannon @ 2010-04-08 13:52 UTC (permalink / raw)
Does anyone know where I might find QBUS prototyping boards?
On an even longer shot, is there any chance someone here actually
has some sitting around collecting dust that they would be willing
to let go for a reasonable price?
I have a hardware experiment I am interested in trying if I can
find a couple of boards to play with.
bill
--
Bill Gunshannon | de-moc-ra-cy (di mok' ra see) n. Three wolves
billg999@cs.scranton.edu | and a sheep voting on what's for dinner.
University of Scranton |
Scranton, Pennsylvania | #include <std.disclaimer.h>
^ permalink raw reply [flat|nested] 146+ messages in thread* Re: QBUS Prototyping 2010-04-08 13:52 QBUS Prototyping Bill Gunshannon @ 2010-04-08 14:38 ` Scott Dorsey 2010-04-08 14:58 ` Al Kossow 2010-04-08 20:18 ` JF Mezei 2 siblings, 0 replies; 146+ messages in thread From: Scott Dorsey @ 2010-04-08 14:38 UTC (permalink / raw) In article <8265dgFs33U3@mid.individual.net>, Bill Gunshannon <billg999@cs.uofs.edu> wrote: >Does anyone know where I might find QBUS prototyping boards? > >On an even longer shot, is there any chance someone here actually >has some sitting around collecting dust that they would be willing >to let go for a reasonable price? > >I have a hardware experiment I am interested in trying if I can >find a couple of boards to play with. I think I just pitched my last few Vectorboards. But.... you can take a bus grant card and drill some holes in it. Also you can just lay out some boards and order them with expresspcb.com. It's not all THAT expensive.... --scott -- "C'est un Nagra. C'est suisse, et tres, tres precis." ^ permalink raw reply [flat|nested] 146+ messages in thread
* Re: QBUS Prototyping 2010-04-08 13:52 QBUS Prototyping Bill Gunshannon 2010-04-08 14:38 ` Scott Dorsey @ 2010-04-08 14:58 ` Al Kossow 2010-04-08 15:44 ` Bill Gunshannon 2010-04-08 20:18 ` JF Mezei 2 siblings, 1 reply; 146+ messages in thread From: Al Kossow @ 2010-04-08 14:58 UTC (permalink / raw) On 4/8/10 6:52 AM, Bill Gunshannon wrote: > Does anyone know where I might find QBUS prototyping boards? > http://www.douglas.com/hardware/pcbs/breadboards/digital.html ^ permalink raw reply [flat|nested] 146+ messages in thread
* Re: QBUS Prototyping 2010-04-08 14:58 ` Al Kossow @ 2010-04-08 15:44 ` Bill Gunshannon 2010-04-08 20:46 ` John Wallace 0 siblings, 1 reply; 146+ messages in thread From: Bill Gunshannon @ 2010-04-08 15:44 UTC (permalink / raw) In article <hpkqui$ug$1@news.eternal-september.org>, Al Kossow <aek@bitsavers.org> writes: > On 4/8/10 6:52 AM, Bill Gunshannon wrote: >> Does anyone know where I might find QBUS prototyping boards? >> > http://www.douglas.com/hardware/pcbs/breadboards/digital.html This looks promising. Have to figure out which board I need. Thanks. bill -- Bill Gunshannon | de-moc-ra-cy (di mok' ra see) n. Three wolves billg999@cs.scranton.edu | and a sheep voting on what's for dinner. University of Scranton | Scranton, Pennsylvania | #include <std.disclaimer.h> ^ permalink raw reply [flat|nested] 146+ messages in thread
* Re: QBUS Prototyping 2010-04-08 15:44 ` Bill Gunshannon @ 2010-04-08 20:46 ` John Wallace 2010-04-08 21:01 ` Bill Gunshannon 2010-04-09 1:00 ` Richard 0 siblings, 2 replies; 146+ messages in thread From: John Wallace @ 2010-04-08 20:46 UTC (permalink / raw) On Apr 8, 4:44 pm, billg...@cs.uofs.edu (Bill Gunshannon) wrote: > In article <hpkqui$u...@news.eternal-september.org>, > Al Kossow <a...@bitsavers.org> writes: > > > On 4/8/10 6:52 AM, Bill Gunshannon wrote: > >> Does anyone know where I might find QBUS prototyping boards? > > >http://www.douglas.com/hardware/pcbs/breadboards/digital.html > > This looks promising. Have to figure out which board I need. > > Thanks. > > bill > > -- > Bill Gunshannon | de-moc-ra-cy (di mok' ra see) n. Three wolves > billg...@cs.scranton.edu | and a sheep voting on what's for dinner. > University of Scranton | > Scranton, Pennsylvania | #include <std.disclaimer.h> Do you want chips with that? Or is it just the empty board? There was a discussion on one of the related ngs recently, can't remember (or easily find) exactly where, about the availability of Qbus transceiver chips and the like (DC00x ?) or close substitutes. I can't remember how it ended but I do remember subsequently wandering across the Digital Brothers Group website at dbgweb.com, who say they have some flavours of them. Their prices mostly say "call", but... ^ permalink raw reply [flat|nested] 146+ messages in thread
* Re: QBUS Prototyping 2010-04-08 20:46 ` John Wallace @ 2010-04-08 21:01 ` Bill Gunshannon 2010-04-08 21:58 ` Rob Jarratt ` (3 more replies) 2010-04-09 1:00 ` Richard 1 sibling, 4 replies; 146+ messages in thread From: Bill Gunshannon @ 2010-04-08 21:01 UTC (permalink / raw) In article <21555570-8094-4f6f-b790-18566557980f@h27g2000yqm.googlegroups.com>, John Wallace <johnwallace4@yahoo.co.uk> writes: > On Apr 8, 4:44�pm, billg...@cs.uofs.edu (Bill Gunshannon) wrote: >> In article <hpkqui$u...@news.eternal-september.org>, >> � � � � Al Kossow <a...@bitsavers.org> writes: >> >> > On 4/8/10 6:52 AM, Bill Gunshannon wrote: >> >> Does anyone know where I might find QBUS prototyping boards? >> >> >http://www.douglas.com/hardware/pcbs/breadboards/digital.html >> >> This looks promising. �Have to figure out which board I need. >> >> Thanks. >> >> bill >> >> -- >> Bill Gunshannon � � � � �| �de-moc-ra-cy (di mok' ra see) n. �Three wolves >> billg...@cs.scranton.edu | �and a sheep voting on what's for dinner. >> University of Scranton � | >> Scranton, Pennsylvania � | � � � � #include <std.disclaimer.h> � > Do you want chips with that? Or is it just the empty board? > There was a discussion on one of the related ngs recently, can't > remember (or easily find) exactly where, about the availability of > Qbus transceiver chips and the like (DC00x ?) or close substitutes. I > can't remember how it ended but I do remember subsequently wandering > across the Digital Brothers Group website at dbgweb.com, who say they > have some flavours of them. Their prices mostly say "call", but... Yeah, chips could be a problem. I may end out trying what I have in mind using one of the paralel interfaces as hooking directly to the QBUS may cost more than the whole project wold be worth. For those who's curiosity has been piqued, I heve recently seen a few examples of boards that interface IDE disks to the raw bus on a few old microcomputers. Very few parts required and the cost is minimal. I got curious about trying it for the PDP-11 and maybe even the VAX. On another note, I have also recently seen a system that uses a serial connection to a PC or MAC as a disk interface. Giving some thought to that as well. It will be slow, but when you come right down to it, probably not much slower than an RD51. :-) And my most ambitious project (and the one I am least likely to find enough time to do before retirement) is a board that can emulate an ST-506 disk while utilizing something icheaper and easier to find. Anybody with ideas, feel free to jump in/ bill -- Bill Gunshannon | de-moc-ra-cy (di mok' ra see) n. Three wolves billg999@cs.scranton.edu | and a sheep voting on what's for dinner. University of Scranton | Scranton, Pennsylvania | #include <std.disclaimer.h> ^ permalink raw reply [flat|nested] 146+ messages in thread
* Re: QBUS Prototyping 2010-04-08 21:01 ` Bill Gunshannon @ 2010-04-08 21:58 ` Rob Jarratt 2010-04-08 23:00 ` John Wallace ` (2 more replies) 2010-04-08 21:59 ` glen herrmannsfeldt ` (2 subsequent siblings) 3 siblings, 3 replies; 146+ messages in thread From: Rob Jarratt @ 2010-04-08 21:58 UTC (permalink / raw) "Bill Gunshannon" <billg999@cs.uofs.edu> wrote in message news:826uhoFu5dU1@mid.individual.net... > In article > <21555570-8094-4f6f-b790-18566557980f@h27g2000yqm.googlegroups.com>, > John Wallace <johnwallace4@yahoo.co.uk> writes: >> On Apr 8, 4:44 pm, billg...@cs.uofs.edu (Bill Gunshannon) wrote: >>> In article <hpkqui$u...@news.eternal-september.org>, >>> Al Kossow <a...@bitsavers.org> writes: >>> > For those who's curiosity has been piqued, I heve recently seen a few > examples of boards that interface IDE disks to the raw bus on a few > old microcomputers. Very few parts required and the cost is minimal. > I got curious about trying it for the PDP-11 and maybe even the VAX. > > On another note, I have also recently seen a system that uses a serial > connection to a PC or MAC as a disk interface. Giving some thought to > that as well. It will be slow, but when you come right down to it, > probably not much slower than an RD51. :-) > > And my most ambitious project (and the one I am least likely to find > enough time to do before retirement) is a board that can emulate an > ST-506 disk while utilizing something icheaper and easier to find. > > Anybody with ideas, feel free to jump in/ > > bill > > -- > Bill Gunshannon | de-moc-ra-cy (di mok' ra see) n. Three wolves > billg999@cs.scranton.edu | and a sheep voting on what's for dinner. > University of Scranton | > Scranton, Pennsylvania | #include <std.disclaimer.h> There was some discussion recently about creating an FPGA-based QBUS card with an SD interface which could then be programmed to emulate any disk you might be interested in. Of course the programming would not be trivial (I don't know anything about FPGAs, yet). I would still be interested in this project as I want something that looks like an RD54 (I only have a single functioning RD53). Regards Rob ^ permalink raw reply [flat|nested] 146+ messages in thread
* Re: QBUS Prototyping 2010-04-08 21:58 ` Rob Jarratt @ 2010-04-08 23:00 ` John Wallace 2010-04-09 11:22 ` David Riley 2010-04-09 18:08 ` Johnny Billquist 2010-04-09 19:14 ` glen herrmannsfeldt 2 siblings, 1 reply; 146+ messages in thread From: John Wallace @ 2010-04-08 23:00 UTC (permalink / raw) On Apr 8, 10:58 pm, "Rob Jarratt" <nos...@nospam.no> wrote: > "Bill Gunshannon" <billg...@cs.uofs.edu> wrote in message > > news:826uhoFu5dU1@mid.individual.net... > > > > > In article > > <21555570-8094-4f6f-b790-185665579...@h27g2000yqm.googlegroups.com>, > > John Wallace <johnwalla...@yahoo.co.uk> writes: > >> On Apr 8, 4:44 pm, billg...@cs.uofs.edu (Bill Gunshannon) wrote: > >>> In article <hpkqui$u...@news.eternal-september.org>, > >>> Al Kossow <a...@bitsavers.org> writes: > > > For those who's curiosity has been piqued, I heve recently seen a few > > examples of boards that interface IDE disks to the raw bus on a few > > old microcomputers. Very few parts required and the cost is minimal. > > I got curious about trying it for the PDP-11 and maybe even the VAX. > > > On another note, I have also recently seen a system that uses a serial > > connection to a PC or MAC as a disk interface. Giving some thought to > > that as well. It will be slow, but when you come right down to it, > > probably not much slower than an RD51. :-) > > > And my most ambitious project (and the one I am least likely to find > > enough time to do before retirement) is a board that can emulate an > > ST-506 disk while utilizing something icheaper and easier to find. > > > Anybody with ideas, feel free to jump in/ > > > bill > > > -- > > Bill Gunshannon | de-moc-ra-cy (di mok' ra see) n. Three wolves > > billg...@cs.scranton.edu | and a sheep voting on what's for dinner. > > University of Scranton | > > Scranton, Pennsylvania | #include <std.disclaimer.h> > > There was some discussion recently about creating an FPGA-based QBUS card > with an SD interface which could then be programmed to emulate any disk you > might be interested in. Of course the programming would not be trivial (I > don't know anything about FPGAs, yet). I would still be interested in this > project as I want something that looks like an RD54 (I only have a single > functioning RD53). > > Regards > > Rob FPGAs are amazing things, I've had a brief tinker with Xilinx Spartan stuff in recent months. Starting from scratch with a bare FPGA chip and a hand-built prototype is verging on the insane (and certainly not very productive) unless you have good reason to enjoy high precision surface mount soldering and the like. Classical wire-wrap-style prototyping may not be appropriate. Instead, amateurs might prefer to pick one of the variety of ready made FPGA development cards with various quantities of configurable IO, memory, etc, which are available from companies like Digilent (US based, but widely available) from around $100 or so depending on capabilities, and connect *that* to your signals of interest. A "production" design without the "development" stuff (switches, LEDs, extra header pins, maybe USB, etc) around it could cost substantially less than that (though maybe still a few dozen dollars in consumer quantities). A more than adequate (for this kind of thing) flavour of Xilinx's development tools is freely downloadable (Webpack ISE). The Internerd finds many people who have started things like PDP11s in FPGA. There seem to be not so many who have finished the job. For introductory FPGA info, www.fpga4fun.com (yes, honestly) is worth a look. ^ permalink raw reply [flat|nested] 146+ messages in thread
* Re: QBUS Prototyping 2010-04-08 23:00 ` John Wallace @ 2010-04-09 11:22 ` David Riley 0 siblings, 0 replies; 146+ messages in thread From: David Riley @ 2010-04-09 11:22 UTC (permalink / raw) On Apr 8, 7:00 pm, John Wallace <johnwalla...@yahoo.co.uk> wrote: > On Apr 8, 10:58 pm, "Rob Jarratt" <nos...@nospam.no> wrote: > > > > > > > "Bill Gunshannon" <billg...@cs.uofs.edu> wrote in message > > >news:826uhoFu5dU1@mid.individual.net... > > > > In article > > > <21555570-8094-4f6f-b790-185665579...@h27g2000yqm.googlegroups.com>, > > > John Wallace <johnwalla...@yahoo.co.uk> writes: > > >> On Apr 8, 4:44 pm, billg...@cs.uofs.edu (Bill Gunshannon) wrote: > > >>> In article <hpkqui$u...@news.eternal-september.org>, > > >>> Al Kossow <a...@bitsavers.org> writes: > > > > For those who's curiosity has been piqued, I heve recently seen a few > > > examples of boards that interface IDE disks to the raw bus on a few > > > old microcomputers. Very few parts required and the cost is minimal. > > > I got curious about trying it for the PDP-11 and maybe even the VAX. > > > > On another note, I have also recently seen a system that uses a serial > > > connection to a PC or MAC as a disk interface. Giving some thought to > > > that as well. It will be slow, but when you come right down to it, > > > probably not much slower than an RD51. :-) > > > > And my most ambitious project (and the one I am least likely to find > > > enough time to do before retirement) is a board that can emulate an > > > ST-506 disk while utilizing something icheaper and easier to find. > > > > Anybody with ideas, feel free to jump in/ > > > > bill > > > > -- > > > Bill Gunshannon | de-moc-ra-cy (di mok' ra see) n. Three wolves > > > billg...@cs.scranton.edu | and a sheep voting on what's for dinner. > > > University of Scranton | > > > Scranton, Pennsylvania | #include <std.disclaimer.h> > > > There was some discussion recently about creating an FPGA-based QBUS card > > with an SD interface which could then be programmed to emulate any disk you > > might be interested in. Of course the programming would not be trivial (I > > don't know anything about FPGAs, yet). I would still be interested in this > > project as I want something that looks like an RD54 (I only have a single > > functioning RD53). > > > Regards > > > Rob > > FPGAs are amazing things, I've had a brief tinker with Xilinx Spartan > stuff in recent months. Starting from scratch with a bare FPGA chip > and a hand-built prototype is verging on the insane (and certainly not > very productive) unless you have good reason to enjoy high precision > surface mount soldering and the like. Classical wire-wrap-style > prototyping may not be appropriate. Instead, amateurs might prefer to > pick one of the variety of ready made FPGA development cards with > various quantities of configurable IO, memory, etc, which are > available from companies like Digilent (US based, but widely > available) from around $100 or so depending on capabilities, and > connect *that* to your signals of interest. > > A "production" design without the "development" stuff (switches, LEDs, > extra header pins, maybe USB, etc) around it could cost substantially > less than that (though maybe still a few dozen dollars in consumer > quantities). I'm actually still working on the card Rob mentioned (slowly, though, because I have a $6500 tax bill and a wedding coming up plus grad school and... well, these things build up). I design embedded systems by day which include lots of FPGAs, so I'm fairly familiar with the task. The bottom line is that in production quantities for this type of audience (i.e. I could probably get away with making 100 ever, but probably only as much as 25 at a time if I had a lot of money to blow building them), the boards cost $200-$250 a pop to build correctly. That includes the PCB and assembly cost, which make up generally 1/3 of the total (though the PCB cost goes down dramatically as the quantity goes up; they're about $87 each in quantity 10, but about $10 in quantity 100). But yeah, FPGAs are amazing things. My advice: don't stop at Xilinx. Their Spartan 6 is the first actually compelling FPGA I've seen from them in years, whereas Altera has been making fantastic devices with fewer bugs for a long time. Also, Altera's software is leaps and bounds ahead, and they have very nice eval boards; my personal favorite is the one they sell as the "Cyclone II Starter Kit" for $150 (it's a design Terasic did for them called the DE2). Decent amounts of SDRAM and flash, SD slot, VGA out, RS232, etc. with the programmer built in! If you're looking to start somewhere, I'd say that's an ideal board (I liked it so much I have two). ^ permalink raw reply [flat|nested] 146+ messages in thread
* Re: QBUS Prototyping 2010-04-08 21:58 ` Rob Jarratt 2010-04-08 23:00 ` John Wallace @ 2010-04-09 18:08 ` Johnny Billquist 2010-04-09 18:22 ` Bill Gunshannon ` (3 more replies) 2010-04-09 19:14 ` glen herrmannsfeldt 2 siblings, 4 replies; 146+ messages in thread From: Johnny Billquist @ 2010-04-09 18:08 UTC (permalink / raw) Rob Jarratt wrote: > There was some discussion recently about creating an FPGA-based QBUS > card with an SD interface which could then be programmed to emulate any > disk you might be interested in. Of course the programming would not be > trivial (I don't know anything about FPGAs, yet). I would still be > interested in this project as I want something that looks like an RD54 > (I only have a single functioning RD53). The thing is, you will not emulate an RD54. You will "emulate" MSCP. And MSCP itself allows for disks of just about any size, so once you have done this, you might as well go for the full monty instead of just pretending to be an RD54. The RQDX controller was just DECs MSCP controller for IDE disks, and the IDE side was rather limited. From the PDP-11 it's just MSCP though, and very much more unlimited. But MSCP is a complex protocol for a disk interface. Not saying that it can't be done, but it is not trivial. (MSCP controllers exists for IDE, SCSI, SDI, DSSI, and probably other disk interfaces as well.) But if you would do one, a lot of people would be interested. If you don't implement some existing DEC controller interface on the PDP-11 side, no existing boot roms will be able to boot it. No existing device drivers will be able to access it, and so on... Less than ideal... 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 ^ permalink raw reply [flat|nested] 146+ messages in thread
* Re: QBUS Prototyping 2010-04-09 18:08 ` Johnny Billquist @ 2010-04-09 18:22 ` Bill Gunshannon 2010-04-10 19:29 ` Johnny Billquist 2010-04-09 19:20 ` glen herrmannsfeldt ` (2 subsequent siblings) 3 siblings, 1 reply; 146+ messages in thread From: Bill Gunshannon @ 2010-04-09 18:22 UTC (permalink / raw) In article <hpnqfi$6mk$1@iltempo.update.uu.se>, Johnny Billquist <bqt@softjar.se> writes: > Rob Jarratt wrote: >> There was some discussion recently about creating an FPGA-based QBUS >> card with an SD interface which could then be programmed to emulate any >> disk you might be interested in. Of course the programming would not be >> trivial (I don't know anything about FPGAs, yet). I would still be >> interested in this project as I want something that looks like an RD54 >> (I only have a single functioning RD53). > > The thing is, you will not emulate an RD54. You will "emulate" MSCP. And > MSCP itself allows for disks of just about any size, so once you have > done this, you might as well go for the full monty instead of just > pretending to be an RD54. The difference between the above and what I am trying to do is cost. As you can see from the links I posted itnerfacing IDE to a raw bus is apparently not all that difficult because the disk is a lot smarter than the old disks we are used to working with. > The RQDX controller was just DECs MSCP controller for IDE disks, and the > IDE side was rather limited. Huh?? RQDX is not IDE it is ST-506 and a very limited collection of them at that. IO have never seen a QBUS IDE controller. Thus my rationale!! :-) > From the PDP-11 it's just MSCP though, and > very much more unlimited. > > But MSCP is a complex protocol for a disk interface. Not saying that it > can't be done, but it is not trivial. Which is why I suggested:;;; a. go straight to IDE b. make something using some cheap embeded processor (I would bet even an 8051 could do it) that talks ST-506 on one end and IDE on the other. > > (MSCP controllers exists for IDE, SCSI, SDI, DSSI, and probably other > disk interfaces as well.) I have never seen one for IDE but if it is in the same family as the rest price and availability make it the wrong answer. > > But if you would do one, a lot of people would be interested. If you > don't implement some existing DEC controller interface on the PDP-11 > side, no existing boot roms will be able to boot it. No existing device > drivers will be able to access it, and so on... Less than ideal... My intent with IDE was not to emulate anything. It was to create a raw interface to the IDE disk just like was done on the other micros I have seen this done for (at least 5 that I know of). Writing boot roms and device drivers would be part of the game. It's not like most of us are doing this for a living. I see it as an academic exercise that, if successful, would also provide me with a very useful resource as I have a number of PDP-11 and VAX systems and a dwindling supply of disks that I can hook up to them. bill -- Bill Gunshannon | de-moc-ra-cy (di mok' ra see) n. Three wolves billg999@cs.scranton.edu | and a sheep voting on what's for dinner. University of Scranton | Scranton, Pennsylvania | #include <std.disclaimer.h> ^ permalink raw reply [flat|nested] 146+ messages in thread
* Re: QBUS Prototyping 2010-04-09 18:22 ` Bill Gunshannon @ 2010-04-10 19:29 ` Johnny Billquist 2010-04-10 21:05 ` Bill Gunshannon 0 siblings, 1 reply; 146+ messages in thread From: Johnny Billquist @ 2010-04-10 19:29 UTC (permalink / raw) Bill Gunshannon wrote: > In article <hpnqfi$6mk$1@iltempo.update.uu.se>, > Johnny Billquist <bqt@softjar.se> writes: >> Rob Jarratt wrote: >>> There was some discussion recently about creating an FPGA-based QBUS >>> card with an SD interface which could then be programmed to emulate any >>> disk you might be interested in. Of course the programming would not be >>> trivial (I don't know anything about FPGAs, yet). I would still be >>> interested in this project as I want something that looks like an RD54 >>> (I only have a single functioning RD53). >> The thing is, you will not emulate an RD54. You will "emulate" MSCP. And >> MSCP itself allows for disks of just about any size, so once you have >> done this, you might as well go for the full monty instead of just >> pretending to be an RD54. > > The difference between the above and what I am trying to do is cost. Indeed. Cost, and usability. > As you can see from the links I posted itnerfacing IDE to a raw bus > is apparently not all that difficult because the disk is a lot smarter > than the old disks we are used to working with. Depending on what disks you are comparing to. I usually used SCSI or SDI disks. Lots of smarts in those disks... >> The RQDX controller was just DECs MSCP controller for IDE disks, and the >> IDE side was rather limited. > > Huh?? RQDX is not IDE it is ST-506 and a very limited collection of > them at that. IO have never seen a QBUS IDE controller. Thus my > rationale!! :-) Sigh. You are correct. It was ST-506. Brain fart or something. Substitute ST-506 for IDE all over my text and it will be "right". :-) >> From the PDP-11 it's just MSCP though, and >> very much more unlimited. >> >> But MSCP is a complex protocol for a disk interface. Not saying that it >> can't be done, but it is not trivial. > > Which is why I suggested:;;; > a. go straight to IDE > b. make something using some cheap embeded processor (I would bet even > an 8051 could do it) that talks ST-506 on one end and IDE on the > other. I don't get it. Are you suggesting that your controller would connect to an IDE disk at one end, and an RQDX on the other end??? If so, then I can understand the comment about making it look like an RD54. However, in this case I totally fail to see the point of talking about "Qbus", since it is not a Qbus controller at all. You might want to put it on the Qbus just to draw power, but that's it. You definitely don't need to worry about any Qbus interface chips at all. But I know that I would never want to go down this path unless I was very desperate. The RQDX controllers are slow as molass. Not the thing I would want to keep in the loop anywhere. >> (MSCP controllers exists for IDE, SCSI, SDI, DSSI, and probably other >> disk interfaces as well.) > > I have never seen one for IDE but if it is in the same family as the > rest price and availability make it the wrong answer. ST-506. Which means the RQDX, which should have been half-suspected anyway, since otherwise I would have missed the RQDX controllers... But yes, price and availability is a problem, and it won't get any better with time. >> But if you would do one, a lot of people would be interested. If you >> don't implement some existing DEC controller interface on the PDP-11 >> side, no existing boot roms will be able to boot it. No existing device >> drivers will be able to access it, and so on... Less than ideal... > > My intent with IDE was not to emulate anything. It was to create a > raw interface to the IDE disk just like was done on the other micros > I have seen this done for (at least 5 that I know of). Writing boot > roms and device drivers would be part of the game. It's not like > most of us are doing this for a living. I see it as an academic > exercise that, if successful, would also provide me with a very useful > resource as I have a number of PDP-11 and VAX systems and a dwindling > supply of disks that I can hook up to them. Then I totally fail to understand the IDE - ST-506 comment above. Why are you involving ST-506 anywhere? Also, yes, sure, this can be done. Will it actually be done? I doubt it. Writing the device drivers and so on, will be very tricky to say the least. Yes, I can whip together a device driver for RSX. But it will not be able to boot from it. There is very specialized code located in other places that are also needed for a bootable device, and not all of those parts comes with source code. And writing boot proms might also be a headache, since we don't have the sources to those either, and there is a lot of code in them, and some of that you want to keep around. And boot proms comes in different formats depending on the system. I will definitely not stop you from doing this, but my suspicion is that it will end up being just a disk controller that proves that you can build a disk controller, but it will not actually be usable for any of the systems mentioned. That's why I keep saying that if you want something actually usable, you should probably go with emulating an existing controller. And of those, MSCP is the only one with the properties needed to actually make it meaningful. Just my $.02. 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 ^ permalink raw reply [flat|nested] 146+ messages in thread
* Re: QBUS Prototyping 2010-04-10 19:29 ` Johnny Billquist @ 2010-04-10 21:05 ` Bill Gunshannon 2010-04-11 9:50 ` Johnny Billquist 0 siblings, 1 reply; 146+ messages in thread From: Bill Gunshannon @ 2010-04-10 21:05 UTC (permalink / raw) In article <hpqji9$vka$1@iltempo.update.uu.se>, Johnny Billquist <bqt@softjar.se> writes: > Bill Gunshannon wrote: >> In article <hpnqfi$6mk$1@iltempo.update.uu.se>, >> Johnny Billquist <bqt@softjar.se> writes: >>> Rob Jarratt wrote: >>>> There was some discussion recently about creating an FPGA-based QBUS >>>> card with an SD interface which could then be programmed to emulate any >>>> disk you might be interested in. Of course the programming would not be >>>> trivial (I don't know anything about FPGAs, yet). I would still be >>>> interested in this project as I want something that looks like an RD54 >>>> (I only have a single functioning RD53). >>> The thing is, you will not emulate an RD54. You will "emulate" MSCP. And >>> MSCP itself allows for disks of just about any size, so once you have >>> done this, you might as well go for the full monty instead of just >>> pretending to be an RD54. >> >> The difference between the above and what I am trying to do is cost. > > Indeed. Cost, and usability. > >> As you can see from the links I posted itnerfacing IDE to a raw bus >> is apparently not all that difficult because the disk is a lot smarter >> than the old disks we are used to working with. > > Depending on what disks you are comparing to. I usually used SCSI or SDI > disks. Lots of smarts in those disks... SCSI controllers aree rare and tend to be extremely expensive. SCSI disks have always been expensive but not a problem when compared to the price and lack of availability of QBUS SCSI controllers. SDI, well, I got rid of all of them. I'm a guy who has no problem with the power consumed by leaving a PDP-11 or a VAX on all the time. I have had several running 24/7 for extended periods of time but I had to get rid of all my RAXX and Fuji Eagle disks primarily because ot the power requirements. Now, I had no problem running them at the University but once they told me to adios all that big iron, me and big disks parted ways. > >>> The RQDX controller was just DECs MSCP controller for IDE disks, and the >>> IDE side was rather limited. >> >> Huh?? RQDX is not IDE it is ST-506 and a very limited collection of >> them at that. IO have never seen a QBUS IDE controller. Thus my >> rationale!! :-) > > Sigh. You are correct. It was ST-506. Brain fart or something. > Substitute ST-506 for IDE all over my text and it will be "right". :-) > >>> From the PDP-11 it's just MSCP though, and >>> very much more unlimited. >>> >>> But MSCP is a complex protocol for a disk interface. Not saying that it >>> can't be done, but it is not trivial. >> >> Which is why I suggested:;;; >> a. go straight to IDE >> b. make something using some cheap embeded processor (I would bet even >> an 8051 could do it) that talks ST-506 on one end and IDE on the >> other. > > I don't get it. Are you suggesting that your controller would connect to > an IDE disk at one end, and an RQDX on the other end??? Two different projects, actually. (a) is an IDE controller directly on the QBUS based on the idea that most of the smarts reside on the disk and the example I posted pictures of is about $8 worth of parts to interface to the bus of a Z80/6809/6502. And (b) was another project to use a cheap micro-controler (actually I have a couple of 80186 based experimenter boards that the physics dept. used to use that might do the trick) boards to emulate an ST-506 drive. This would allow the use of things like the RQDX family of controllers and you should be able to emulate any real hard disk in software enough to fool it into thinking it actually sees RD-class disks. > > If so, then I can understand the comment about making it look like an RD54. > > However, in this case I totally fail to see the point of talking about > "Qbus", since it is not a Qbus controller at all. You might want to put > it on the Qbus just to draw power, but that's it. You definitely don't > need to worry about any Qbus interface chips at all. Well, I was hoping thaaat the simple QBUS <--> IDE might be the easiest solution, but with the vagaries of the QBUS that may not be the case. > > But I know that I would never want to go down this path unless I was > very desperate. The RQDX controllers are slow as molass. Not the thing I > would want to keep in the loop anywhere. Yes, but they are well supported in PDP-11 software and if speed was your concern you wouldn't be running a PDP-11 anyway. :-) > >>> (MSCP controllers exists for IDE, SCSI, SDI, DSSI, and probably other >>> disk interfaces as well.) >> >> I have never seen one for IDE but if it is in the same family as the >> rest price and availability make it the wrong answer. > > ST-506. Which means the RQDX, which should have been half-suspected > anyway, since otherwise I would have missed the RQDX controllers... > > But yes, price and availability is a problem, and it won't get any > better with time. Thus my brainstorming to find alternatives. > >>> But if you would do one, a lot of people would be interested. If you >>> don't implement some existing DEC controller interface on the PDP-11 >>> side, no existing boot roms will be able to boot it. No existing device >>> drivers will be able to access it, and so on... Less than ideal... >> >> My intent with IDE was not to emulate anything. It was to create a >> raw interface to the IDE disk just like was done on the other micros >> I have seen this done for (at least 5 that I know of). Writing boot >> roms and device drivers would be part of the game. It's not like >> most of us are doing this for a living. I see it as an academic >> exercise that, if successful, would also provide me with a very useful >> resource as I have a number of PDP-11 and VAX systems and a dwindling >> supply of disks that I can hook up to them. > > Then I totally fail to understand the IDE - ST-506 comment above. Why > are you involving ST-506 anywhere? > > Also, yes, sure, this can be done. Will it actually be done? I doubt it. > Writing the device drivers and so on, will be very tricky to say the > least. Yes, I can whip together a device driver for RSX. But it will not > be able to boot from it. There is very specialized code located in other > places that are also needed for a bootable device, and not all of those > parts comes with source code. > And writing boot proms might also be a headache, since we don't have the > sources to those either, and there is a lot of code in them, and some of > that you want to keep around. And boot proms comes in different formats > depending on the system. > > I will definitely not stop you from doing this, but my suspicion is that > it will end up being just a disk controller that proves that you can > build a disk controller, but it will not actually be usable for any of > the systems mentioned. Well, while booting RSX would be nice, I don't expect to ever actually be able to use RSX (or my favorite RSTS) as a hobbyist so, it becomes much less of a concern. I would expect that support for BSD would be possible, even booting but it's still along ways from that. Just running ideas thru my head at the moment and looking for people comments. > > That's why I keep saying that if you want something actually usable, you > should probably go with emulating an existing controller. And of those, > MSCP is the only one with the properties needed to actually make it > meaningful. > > Just my $.02. Thans, Johnny. As always, they are appreciated. bill -- Bill Gunshannon | de-moc-ra-cy (di mok' ra see) n. Three wolves billg999@cs.scranton.edu | and a sheep voting on what's for dinner. University of Scranton | Scranton, Pennsylvania | #include <std.disclaimer.h> ^ permalink raw reply [flat|nested] 146+ messages in thread
* Re: QBUS Prototyping 2010-04-10 21:05 ` Bill Gunshannon @ 2010-04-11 9:50 ` Johnny Billquist 2010-04-11 14:13 ` Bill Gunshannon 0 siblings, 1 reply; 146+ messages in thread From: Johnny Billquist @ 2010-04-11 9:50 UTC (permalink / raw) Bill Gunshannon wrote: > In article <hpqji9$vka$1@iltempo.update.uu.se>, > Johnny Billquist <bqt@softjar.se> writes: >> Bill Gunshannon wrote: >>> As you can see from the links I posted itnerfacing IDE to a raw bus >>> is apparently not all that difficult because the disk is a lot smarter >>> than the old disks we are used to working with. >> Depending on what disks you are comparing to. I usually used SCSI or SDI >> disks. Lots of smarts in those disks... > > SCSI controllers aree rare and tend to be extremely expensive. SCSI disks > have always been expensive but not a problem when compared to the price and > lack of availability of QBUS SCSI controllers. SDI, well, I got rid of all > of them. I'm a guy who has no problem with the power consumed by leaving > a PDP-11 or a VAX on all the time. I have had several running 24/7 for > extended periods of time but I had to get rid of all my RAXX and Fuji Eagle > disks primarily because ot the power requirements. Now, I had no problem > running them at the University but once they told me to adios all that big > iron, me and big disks parted ways. If you said SCSI controllers for Unibus I would definitely agree. SCSI controllers for the Qbus is really not all that rare. And while they cost money, they are still no where near unattainable. Browsing through ebay right now, I think I found 10 controllers up for bids, with prices ranging from about $150 to $800 (the latter is probably more wishful thinking than realistic). >>>> From the PDP-11 it's just MSCP though, and >>>> very much more unlimited. >>>> >>>> But MSCP is a complex protocol for a disk interface. Not saying that it >>>> can't be done, but it is not trivial. >>> Which is why I suggested:;;; >>> a. go straight to IDE >>> b. make something using some cheap embeded processor (I would bet even >>> an 8051 could do it) that talks ST-506 on one end and IDE on the >>> other. >> I don't get it. Are you suggesting that your controller would connect to >> an IDE disk at one end, and an RQDX on the other end??? > > Two different projects, actually. Ah. Misunderstood you then. :-) > (a) is an IDE controller directly on the QBUS based on the idea that most > of the smarts reside on the disk and the example I posted pictures of is > about $8 worth of parts to interface to the bus of a Z80/6809/6502. > And (b) was another project to use a cheap micro-controler (actually I > have a couple of 80186 based experimenter boards that the physics dept. > used to use that might do the trick) boards to emulate an ST-506 drive. > This would allow the use of things like the RQDX family of controllers > and you should be able to emulate any real hard disk in software enough > to fool it into thinking it actually sees RD-class disks. I don't think IDE is very future proof. But I see what you are trying. As I said below, this is probably very doable, but probably not very useful. Emulating ST-506 is so horrible I won't even consider it. You'll limit yourself to a disk size of max 156 Meg, or whatever the RD54 is... Not to mention the RQDX3 requirement. >> If so, then I can understand the comment about making it look like an RD54. >> >> However, in this case I totally fail to see the point of talking about >> "Qbus", since it is not a Qbus controller at all. You might want to put >> it on the Qbus just to draw power, but that's it. You definitely don't >> need to worry about any Qbus interface chips at all. > > Well, I was hoping thaaat the simple QBUS <--> IDE might be the easiest > solution, but with the vagaries of the QBUS that may not be the case. Both have their horribilities, but I think that doing something interfaced to the Qbus atleast have the advantage of being something you could develop further. >> But I know that I would never want to go down this path unless I was >> very desperate. The RQDX controllers are slow as molass. Not the thing I >> would want to keep in the loop anywhere. > > Yes, but they are well supported in PDP-11 software and if speed was your > concern you wouldn't be running a PDP-11 anyway. :-) Why not? There are actually still plenty of commercial places running real PDP-11s, who are interested in both speed and compatibility. And hobbyists are no different. Running a PDP-11 don't mean that you'll find any speed acceptable. (Unless you really have to.) >> But yes, price and availability is a problem, and it won't get any >> better with time. > > Thus my brainstorming to find alternatives. Keep shooting. The perhaps most interesting detail is that there are now people who know enough about MSCP around to actually atleast do implement a controller. There are several emulators which include MSCP, including simh. >> Also, yes, sure, this can be done. Will it actually be done? I doubt it. >> Writing the device drivers and so on, will be very tricky to say the >> least. Yes, I can whip together a device driver for RSX. But it will not >> be able to boot from it. There is very specialized code located in other >> places that are also needed for a bootable device, and not all of those >> parts comes with source code. >> And writing boot proms might also be a headache, since we don't have the >> sources to those either, and there is a lot of code in them, and some of >> that you want to keep around. And boot proms comes in different formats >> depending on the system. >> >> I will definitely not stop you from doing this, but my suspicion is that >> it will end up being just a disk controller that proves that you can >> build a disk controller, but it will not actually be usable for any of >> the systems mentioned. > > Well, while booting RSX would be nice, I don't expect to ever actually be > able to use RSX (or my favorite RSTS) as a hobbyist so, it becomes much > less of a concern. I would expect that support for BSD would be possible, > even booting but it's still along ways from that. Just running ideas thru > my head at the moment and looking for people comments. I wouldn't paint the future that bleak. I still think, and hope, that the RSX situation will improve. 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 ^ permalink raw reply [flat|nested] 146+ messages in thread
* Re: QBUS Prototyping 2010-04-11 9:50 ` Johnny Billquist @ 2010-04-11 14:13 ` Bill Gunshannon 0 siblings, 0 replies; 146+ messages in thread From: Bill Gunshannon @ 2010-04-11 14:13 UTC (permalink / raw) In article <hps60m$48e$1@iltempo.update.uu.se>, Johnny Billquist <bqt@softjar.se> writes: > Bill Gunshannon wrote: >> In article <hpqji9$vka$1@iltempo.update.uu.se>, >> Johnny Billquist <bqt@softjar.se> writes: >>> Bill Gunshannon wrote: >>>> As you can see from the links I posted itnerfacing IDE to a raw bus >>>> is apparently not all that difficult because the disk is a lot smarter >>>> than the old disks we are used to working with. >>> Depending on what disks you are comparing to. I usually used SCSI or SDI >>> disks. Lots of smarts in those disks... >> >> SCSI controllers aree rare and tend to be extremely expensive. SCSI disks >> have always been expensive but not a problem when compared to the price and >> lack of availability of QBUS SCSI controllers. SDI, well, I got rid of all >> of them. I'm a guy who has no problem with the power consumed by leaving >> a PDP-11 or a VAX on all the time. I have had several running 24/7 for >> extended periods of time but I had to get rid of all my RAXX and Fuji Eagle >> disks primarily because ot the power requirements. Now, I had no problem >> running them at the University but once they told me to adios all that big >> iron, me and big disks parted ways. > > If you said SCSI controllers for Unibus I would definitely agree. SCSI > controllers for the Qbus is really not all that rare. > > And while they cost money, they are still no where near unattainable. > I have a couple but I seldom see them and when I do they usually cost many times what I have paid for entire systems. > Browsing through ebay right now, I think I found 10 controllers up for > bids, with prices ranging from about $150 to $800 (the latter is > probably more wishful thinking than realistic). Even $150 can be hard to scratch up for a hobby. :-( And, there is also the problem that I won't do ebay (Fool me once shame on you, fool me twice shame on me!). > >>>>> From the PDP-11 it's just MSCP though, and >>>>> very much more unlimited. >>>>> >>>>> But MSCP is a complex protocol for a disk interface. Not saying that it >>>>> can't be done, but it is not trivial. >>>> Which is why I suggested:;;; >>>> a. go straight to IDE >>>> b. make something using some cheap embeded processor (I would bet even >>>> an 8051 could do it) that talks ST-506 on one end and IDE on the >>>> other. >>> I don't get it. Are you suggesting that your controller would connect to >>> an IDE disk at one end, and an RQDX on the other end??? >> >> Two different projects, actually. > > Ah. Misunderstood you then. :-) > >> (a) is an IDE controller directly on the QBUS based on the idea that most >> of the smarts reside on the disk and the example I posted pictures of is >> about $8 worth of parts to interface to the bus of a Z80/6809/6502. >> And (b) was another project to use a cheap micro-controler (actually I >> have a couple of 80186 based experimenter boards that the physics dept. >> used to use that might do the trick) boards to emulate an ST-506 drive. >> This would allow the use of things like the RQDX family of controllers >> and you should be able to emulate any real hard disk in software enough >> to fool it into thinking it actually sees RD-class disks. > > I don't think IDE is very future proof. But I see what you are trying. Nothing is future proof but I (and I am sure others) have piles of old IDE drives that are way too small to be usefull on PC systems bbut offer virtually unlimited space for something like the PDP-11. :-) > As I said below, this is probably very doable, but probably not very useful. I expect it would, at least, get me by until long after I am likely to care. My PDP-11 and VAX hardware can hardly be expected to last forever. > > Emulating ST-506 is so horrible I won't even consider it. You'll limit > yourself to a disk size of max 156 Meg, or whatever the RD54 is... Not > to mention the RQDX3 requirement. Good point. My only reason for choosing it was available RQDX controllers and support in all of the OSes I am aware of. > >>> If so, then I can understand the comment about making it look like an RD54. >>> >>> However, in this case I totally fail to see the point of talking about >>> "Qbus", since it is not a Qbus controller at all. You might want to put >>> it on the Qbus just to draw power, but that's it. You definitely don't >>> need to worry about any Qbus interface chips at all. >> >> Well, I was hoping thaaat the simple QBUS <--> IDE might be the easiest >> solution, but with the vagaries of the QBUS that may not be the case. > > Both have their horribilities, but I think that doing something > interfaced to the Qbus atleast have the advantage of being something you > could develop further. Well, thinking about it more based on this conversation, I guess the best idea would be to make a microcontroller based module that could emulate MSCP and have different kinds of real disks on the backend. But that is probably beyond my abilities (both technical and financial) at this point. > >>> But I know that I would never want to go down this path unless I was >>> very desperate. The RQDX controllers are slow as molass. Not the thing I >>> would want to keep in the loop anywhere. >> >> Yes, but they are well supported in PDP-11 software and if speed was your >> concern you wouldn't be running a PDP-11 anyway. :-) > > Why not? There are actually still plenty of commercial places running > real PDP-11s, who are interested in both speed and compatibility. And Nothing is going to speed up a real PDP-11 at this point. And I would imagine anyone still using PDP-11/s commercially has long since moved to SCSI. Advantage of being commercial as opposed to hobbyist is you can write off the cost. > hobbyists are no different. Running a PDP-11 don't mean that you'll find > any speed acceptable. (Unless you really have to.) I expect that most hobbyists who are still running real hardware, like I do, do it for the fun of using real hardware. If you want speed you run SIMH on a screaming PC. :-) > >>> But yes, price and availability is a problem, and it won't get any >>> better with time. >> >> Thus my brainstorming to find alternatives. > > Keep shooting. > > The perhaps most interesting detail is that there are now people who > know enough about MSCP around to actually atleast do implement a > controller. There are several emulators which include MSCP, including simh. But the big trick is still to keep it cheap enough for the masses. I showed that example that costs $8. A commercial implementation of an IDE controler for the same system sells for $85-$150. > >>> Also, yes, sure, this can be done. Will it actually be done? I doubt it. >>> Writing the device drivers and so on, will be very tricky to say the >>> least. Yes, I can whip together a device driver for RSX. But it will not >>> be able to boot from it. There is very specialized code located in other >>> places that are also needed for a bootable device, and not all of those >>> parts comes with source code. >>> And writing boot proms might also be a headache, since we don't have the >>> sources to those either, and there is a lot of code in them, and some of >>> that you want to keep around. And boot proms comes in different formats >>> depending on the system. >>> >>> I will definitely not stop you from doing this, but my suspicion is that >>> it will end up being just a disk controller that proves that you can >>> build a disk controller, but it will not actually be usable for any of >>> the systems mentioned. >> >> Well, while booting RSX would be nice, I don't expect to ever actually be >> able to use RSX (or my favorite RSTS) as a hobbyist so, it becomes much >> less of a concern. I would expect that support for BSD would be possible, >> even booting but it's still along ways from that. Just running ideas thru >> my head at the moment and looking for people comments. > > I wouldn't paint the future that bleak. I still think, and hope, that > the RSX situation will improve. Actually, it seems bleaker every day. Mentec is now long gone. I knew someone who was supposed to be talking with them about the future of the PDP-11 OSes primarily for hobbyist use. Nothing has come of it in over a year and I assume at this point nothing will. I would have loved to see Mentec dump the stuff on the world with something like the BSD Copyright so that we all would be free to do whatever we thought would be fun while at least allowing the people who still rely on it commercially to be able to continue. I expected, if anything, something akin to the GPL. Not as friendly and certainly not as free bu better than nothing. And, there was always something like the VMS Hobbyist Program which would at least let people run the OSes on real hardware as well as emulators even if any possible future development would be prevented. But the reality is that nothing has come of it and I see no reason to hold out hope that any form of negotiation is still taking place. :-( bill -- Bill Gunshannon | de-moc-ra-cy (di mok' ra see) n. Three wolves billg999@cs.scranton.edu | and a sheep voting on what's for dinner. University of Scranton | Scranton, Pennsylvania | #include <std.disclaimer.h> ^ permalink raw reply [flat|nested] 146+ messages in thread
* Re: QBUS Prototyping 2010-04-09 18:08 ` Johnny Billquist 2010-04-09 18:22 ` Bill Gunshannon @ 2010-04-09 19:20 ` glen herrmannsfeldt 2010-04-11 22:08 ` Dennis Boone 2010-04-15 17:27 ` Scott Dorsey 3 siblings, 0 replies; 146+ messages in thread From: glen herrmannsfeldt @ 2010-04-09 19:20 UTC (permalink / raw) In alt.sys.pdp11 Johnny Billquist <bqt@softjar.se> wrote: (snip) > But if you would do one, a lot of people would be interested. If you > don't implement some existing DEC controller interface on the PDP-11 > side, no existing boot roms will be able to boot it. No existing device > drivers will be able to access it, and so on... Less than ideal... I haven't looked at PDP-11 boot ROMs lately, but it might be that somewhat less than the whole controller is needed to boot. Otherwise, as was often done in days long past, you can implement your own boot ROMs to match your controller. The common IDE interface for the ISA bus is just bus buffers and address decoders. The data bus goes right up the cable, which is the cause of the length limitation. That would be easy to do for Qbus, and, as you note, also require a device driver and boot ROM to be written. The code is fairly simple, especially for PIO modes. At some point, though, the difference is all inside the FPGA, possibly including the boot ROM. -- glen ^ permalink raw reply [flat|nested] 146+ messages in thread
* Re: QBUS Prototyping 2010-04-09 18:08 ` Johnny Billquist 2010-04-09 18:22 ` Bill Gunshannon 2010-04-09 19:20 ` glen herrmannsfeldt @ 2010-04-11 22:08 ` Dennis Boone 2010-04-12 11:41 ` dsnyder 2010-04-15 17:27 ` Scott Dorsey 3 siblings, 1 reply; 146+ messages in thread From: Dennis Boone @ 2010-04-11 22:08 UTC (permalink / raw) > But MSCP is a complex protocol for a disk interface. Not saying that it > can't be done, but it is not trivial. There was a gent in Ohio that had a nearly working qbus scsi card. It used common scsi silicon, and an embedded x86 processor. The firmware used converted bits of the simh mscp code. He ran out of time, and the project stalled. Something about family and school obligations. He had hoped to sell enough boards to recoup some of his costs, then open source the design. But the point is it can be done, and it's not beyond the combined capabilities of this, or any of several other overlapping groups. De ^ permalink raw reply [flat|nested] 146+ messages in thread
* Re: QBUS Prototyping 2010-04-11 22:08 ` Dennis Boone @ 2010-04-12 11:41 ` dsnyder 2010-04-12 14:46 ` Al Kossow 0 siblings, 1 reply; 146+ messages in thread From: dsnyder @ 2010-04-12 11:41 UTC (permalink / raw) On Apr 11, 6:08 pm, d...@ihatespam.msu.edu (Dennis Boone) wrote: > > But MSCP is a complex protocol for a disk interface. Not saying that it > > can't be done, but it is not trivial. > > There was a gent in Ohio that had a nearly working qbus scsi card. > It used common scsi silicon, and an embedded x86 processor. > The firmware used converted bits of the simh mscp code. He ran out > of time, and the project stalled. Something about family and school > obligations. He had hoped to sell enough boards to recoup some of > his costs, then open source the design. > > But the point is it can be done, and it's not beyond the combined > capabilities of this, or any of several other overlapping groups. > > De Goto http://www.wintersweet.com/mscpscsi/. Looks as though this would be a good starting point. Dan ^ permalink raw reply [flat|nested] 146+ messages in thread
* Re: QBUS Prototyping 2010-04-12 11:41 ` dsnyder @ 2010-04-12 14:46 ` Al Kossow 2010-04-13 11:08 ` dsnyder 0 siblings, 1 reply; 146+ messages in thread From: Al Kossow @ 2010-04-12 14:46 UTC (permalink / raw) On 4/12/10 4:41 AM, dsnyder wrote: > Goto http://www.wintersweet.com/mscpscsi/. Looks as though this > would be a good starting point. > If you can get him to release the code, which never happened. ^ permalink raw reply [flat|nested] 146+ messages in thread
* Re: QBUS Prototyping 2010-04-12 14:46 ` Al Kossow @ 2010-04-13 11:08 ` dsnyder 0 siblings, 0 replies; 146+ messages in thread From: dsnyder @ 2010-04-13 11:08 UTC (permalink / raw) On Apr 12, 10:46 am, Al Kossow <a...@bitsavers.org> wrote: > On 4/12/10 4:41 AM, dsnyder wrote: > > > Gotohttp://www.wintersweet.com/mscpscsi/. Looks as though this > > would be a good starting point. > > If you can get him to release the code, which never happened. A starting point as in someone who can be contacted. Maybe with enough support, the project could continue. All of the schemes mentioned so far are just that.. At least there exists a design somewhat complete. Dan ^ permalink raw reply [flat|nested] 146+ messages in thread
* Re: QBUS Prototyping 2010-04-09 18:08 ` Johnny Billquist ` (2 preceding siblings ...) 2010-04-11 22:08 ` Dennis Boone @ 2010-04-15 17:27 ` Scott Dorsey 2010-04-15 18:29 ` Al Kossow 3 siblings, 1 reply; 146+ messages in thread From: Scott Dorsey @ 2010-04-15 17:27 UTC (permalink / raw) Johnny Billquist <bqt@softjar.se> wrote: >Rob Jarratt wrote: >> There was some discussion recently about creating an FPGA-based QBUS >> card with an SD interface which could then be programmed to emulate any >> disk you might be interested in. Of course the programming would not be >> trivial (I don't know anything about FPGAs, yet). I would still be >> interested in this project as I want something that looks like an RD54 >> (I only have a single functioning RD53). > >The thing is, you will not emulate an RD54. You will "emulate" MSCP. And >MSCP itself allows for disks of just about any size, so once you have >done this, you might as well go for the full monty instead of just >pretending to be an RD54. Nahh, the idea is you emulate the RD54. You get your disk, put on the board, set the board jumpers for "IDE RD54" and plug it into the RQDX3. So you keep the existing interface... all the buss interfaces are being done by the RQDX3 so you don't have to worry about that... you just emulate the IDE disk. The advantage here is that you can ALSO use the same board on a CP/M machine that takes IDE disks.... or on a Data General machine that takes IDE disks, or on a lot of other machines, just by moving jumpers around. >The RQDX controller was just DECs MSCP controller for IDE disks, and the >IDE side was rather limited. From the PDP-11 it's just MSCP though, and >very much more unlimited. > >But MSCP is a complex protocol for a disk interface. Not saying that it >can't be done, but it is not trivial. You don't implement MSCP. It's complex, and it's hard to do, and once you do it, you have a device that you can use only on DEC machines. >(MSCP controllers exists for IDE, SCSI, SDI, DSSI, and probably other >disk interfaces as well.) The problem is that RQDX3 controllers are very common and cheap, and the SCSI controllers are somewhat rare and expensive. And a lot of the SCSI controllers you find out there are tape-only unless you upgrade the roms. If someone was selling cheap QD33 cards brand new, there would be no need whatsoever for IDE emulation, at least for vax and pdp-11 stuff. But they aren't. And don't forget that the Decmate II users need IDE drives too! --scott -- "C'est un Nagra. C'est suisse, et tres, tres precis." ^ permalink raw reply [flat|nested] 146+ messages in thread
* Re: QBUS Prototyping 2010-04-15 17:27 ` Scott Dorsey @ 2010-04-15 18:29 ` Al Kossow 0 siblings, 0 replies; 146+ messages in thread From: Al Kossow @ 2010-04-15 18:29 UTC (permalink / raw) On 4/15/10 10:27 AM, Scott Dorsey wrote: > Nahh, the idea is you emulate the RD54. There are two intertwingled discussions going on here. One about a cheap QBus controller, and another about simulating the physical interface of an MFM hard drive. Two completely different things. There are several hobbyist examples of the former, and none of the latter that I am aware of. There are several hobbyist-price floppy simulators, but none for rigid disks. Not that this hasn't been discussed to death on the classiccmp list. ^ permalink raw reply [flat|nested] 146+ messages in thread
* Re: QBUS Prototyping 2010-04-08 21:58 ` Rob Jarratt 2010-04-08 23:00 ` John Wallace 2010-04-09 18:08 ` Johnny Billquist @ 2010-04-09 19:14 ` glen herrmannsfeldt 2010-04-09 20:02 ` John Wallace 2 siblings, 1 reply; 146+ messages in thread From: glen herrmannsfeldt @ 2010-04-09 19:14 UTC (permalink / raw) In alt.sys.pdp11 Rob Jarratt <nospam@nospam.no> wrote: (snip) > There was some discussion recently about creating an FPGA-based QBUS card > with an SD interface which could then be programmed to emulate any disk you > might be interested in. Of course the programming would not be trivial (I > don't know anything about FPGAs, yet). I would still be interested in this > project as I want something that looks like an RD54 (I only have a single > functioning RD53). With even a fairly small (these days) FPGA you could do a lot on a Qbus board. Add on a few serial ports, a few megabytes of SRAM, even a floppy disk controller. Some that are common on the starter boards are PS2 keyboard or mouse connector, serial ports, and VGA port. They are just buffers or resistors from the FPGA pins. You could probably fit the whole PDP-11 CPU into a medium sized FPGA. As for bus buffers, presumably one would want the full drive of the DEC buffers for a full system, but it might be that easier to obtain drivers would work well for the systems that most of us have available. As I was recently interested in an S100 project, I did find that the 8T97 is available, though somewhat more expensive than the more usual 74367. -- glen ^ permalink raw reply [flat|nested] 146+ messages in thread
* Re: QBUS Prototyping 2010-04-09 19:14 ` glen herrmannsfeldt @ 2010-04-09 20:02 ` John Wallace 2010-04-09 20:28 ` David Riley ` (2 more replies) 0 siblings, 3 replies; 146+ messages in thread From: John Wallace @ 2010-04-09 20:02 UTC (permalink / raw) On Apr 9, 8:14 pm, glen herrmannsfeldt <g...@ugcs.caltech.edu> wrote: > In alt.sys.pdp11 Rob Jarratt <nos...@nospam.no> wrote: > (snip) > > > There was some discussion recently about creating an FPGA-based QBUS card > > with an SD interface which could then be programmed to emulate any disk you > > might be interested in. Of course the programming would not be trivial (I > > don't know anything about FPGAs, yet). I would still be interested in this > > project as I want something that looks like an RD54 (I only have a single > > functioning RD53). > > With even a fairly small (these days) FPGA you could do a lot > on a Qbus board. Add on a few serial ports, a few megabytes > of SRAM, even a floppy disk controller. > > Some that are common on the starter boards are PS2 keyboard > or mouse connector, serial ports, and VGA port. They are > just buffers or resistors from the FPGA pins. > > You could probably fit the whole PDP-11 CPU into a medium > sized FPGA. > > As for bus buffers, presumably one would want the full drive > of the DEC buffers for a full system, but it might be that > easier to obtain drivers would work well for the systems > that most of us have available. > > As I was recently interested in an S100 project, I did find > that the 8T97 is available, though somewhat more expensive > than the more usual 74367. > > -- glen Am I right in thinking that the original Qbus spec allowed for multiple daisy-chained enclosures? Or was that just for Unibus? Certainly multiple enclosures introduces a variety of issues re drive strength and timing and the like. If the multiple enclosures constraint was originally present and now can conveniently be ignored, I suspect that the question of drivers gets a whole lot simpler. The FPGAs I have been tinkering with have programmable IO voltages, programmable drive strengths, and programmable slew rates, so a rough approximation might not even need an external transceiver, in the single-box case. ^ permalink raw reply [flat|nested] 146+ messages in thread
* Re: QBUS Prototyping 2010-04-09 20:02 ` John Wallace @ 2010-04-09 20:28 ` David Riley 2010-04-10 1:28 ` glen herrmannsfeldt 2010-04-14 22:28 ` Bob Koehler 2 siblings, 0 replies; 146+ messages in thread From: David Riley @ 2010-04-09 20:28 UTC (permalink / raw) On Apr 9, 4:02 pm, John Wallace <johnwalla...@yahoo.co.uk> wrote: > Am I right in thinking that the original Qbus spec allowed for > multiple daisy-chained enclosures? Or was that just for Unibus? > Certainly multiple enclosures introduces a variety of issues re drive > strength and timing and the like. > > If the multiple enclosures constraint was originally present and now > can conveniently be ignored, I suspect that the question of drivers > gets a whole lot simpler. The FPGAs I have been tinkering with have > programmable IO voltages, programmable drive strengths, and > programmable slew rates, so a rough approximation might not even need > an external transceiver, in the single-box case. The problem you'll find with modern FPGAs is that they generally only support 3.3v max on their I/Os (more than that and you could easily blow it up). QBUS sits at something closer, but with the inevitable ringing you'll see on the bus, it peaks somewhat higher. Thus the need for an open-collector bridge like 74AS641 or 757. Also, QBUS specs give a needed drive strength of 64 mA. The most I ever see in the FPGAs I work with is about 24 mA, which would probably be enough to successfully drive something; however, I'd always feel more comfortable with external buffers (not least because they're cheaper and easier to replace than an FPGA). - Dave ^ permalink raw reply [flat|nested] 146+ messages in thread
* Re: QBUS Prototyping 2010-04-09 20:02 ` John Wallace 2010-04-09 20:28 ` David Riley @ 2010-04-10 1:28 ` glen herrmannsfeldt 2010-04-14 22:28 ` Bob Koehler 2 siblings, 0 replies; 146+ messages in thread From: glen herrmannsfeldt @ 2010-04-10 1:28 UTC (permalink / raw) In alt.sys.pdp11 John Wallace <johnwallace4@yahoo.co.uk> wrote: (snip) > Am I right in thinking that the original Qbus spec allowed for > multiple daisy-chained enclosures? Or was that just for Unibus? > Certainly multiple enclosures introduces a variety of issues re drive > strength and timing and the like. I don't know that it allowed for it, but the system I have used to work that way. There are cards such that one plugs into each backplane, and transfer data across a cable in between. I used to have a VME bus extender, but I don't have that one anymore. > If the multiple enclosures constraint was originally present and now > can conveniently be ignored, I suspect that the question of drivers > gets a whole lot simpler. The FPGAs I have been tinkering with have > programmable IO voltages, programmable drive strengths, and > programmable slew rates, so a rough approximation might not even need > an external transceiver, in the single-box case. I believe, though, that such connections are buffered on both ends, so drive should not be a problem. Timing is the problem. Also, for some buses, the boards have to figure out which side is driving the bus before sending the data across to the other side. That isn't always easy to do. -- glen ^ permalink raw reply [flat|nested] 146+ messages in thread
* Re: QBUS Prototyping 2010-04-09 20:02 ` John Wallace 2010-04-09 20:28 ` David Riley 2010-04-10 1:28 ` glen herrmannsfeldt @ 2010-04-14 22:28 ` Bob Koehler 2 siblings, 0 replies; 146+ messages in thread From: Bob Koehler @ 2010-04-14 22:28 UTC (permalink / raw) In article <06b43e0a-7240-42ad-b177-65b817dc8e69@x3g2000yqd.googlegroups.com>, John Wallace <johnwallace4@yahoo.co.uk> writes: > > Am I right in thinking that the original Qbus spec allowed for > multiple daisy-chained enclosures? Or was that just for Unibus? > Certainly multiple enclosures introduces a variety of issues re drive > strength and timing and the like. I think you can do that for either bus, as long as you don't exceed specs on total power draw, total cable length, ... ^ permalink raw reply [flat|nested] 146+ messages in thread
* Re: QBUS Prototyping 2010-04-08 21:01 ` Bill Gunshannon 2010-04-08 21:58 ` Rob Jarratt @ 2010-04-08 21:59 ` glen herrmannsfeldt 2010-04-08 22:38 ` Bill Gunshannon 2010-04-09 14:39 ` QBUS Prototyping Bob Koehler 2010-04-15 17:19 ` Scott Dorsey 3 siblings, 1 reply; 146+ messages in thread From: glen herrmannsfeldt @ 2010-04-08 21:59 UTC (permalink / raw) In alt.sys.pdp11 Bill Gunshannon <billg999@cs.uofs.edu> wrote: (snip) > Yeah, chips could be a problem. I may end out trying what I have in > mind using one of the paralel interfaces as hooking directly to the > QBUS may cost more than the whole project wold be worth. > For those who's curiosity has been piqued, I heve recently seen a few > examples of boards that interface IDE disks to the raw bus on a few > old microcomputers. Very few parts required and the cost is minimal. > I got curious about trying it for the PDP-11 and maybe even the VAX. One problem that some have is the 16 bit data bus. While the early IDE allowed for either 8 or 16 bit transfers, the 8 bit ability disappeared pretty fast. For Qbus presumably you won't have that problem. Also note that one of the modes of CF (compact flash) is a direct emulation of IDE, though with 8 bit mode. For most 8 bit microcomputers, the current size of CF cards is plenty big enough. Either IDE or CF should be fairly easy to do, I agree. If it could be constructed for a reasonable price, others with Qbus machines might be interested. > On another note, I have also recently seen a system that uses a serial > connection to a PC or MAC as a disk interface. Giving some thought to > that as well. It will be slow, but when you come right down to it, > probably not much slower than an RD51. :-) My choice would have been ethernet and NFS. > And my most ambitious project (and the one I am least likely to find > enough time to do before retirement) is a board that can emulate an > ST-506 disk while utilizing something icheaper and easier to find. I believe it has been done, but not cheaply. Are Qbus ST506 boards available? (and reasonably priced?) > Anybody with ideas, feel free to jump in/ -- glen ^ permalink raw reply [flat|nested] 146+ messages in thread
* Re: QBUS Prototyping 2010-04-08 21:59 ` glen herrmannsfeldt @ 2010-04-08 22:38 ` Bill Gunshannon 2010-04-11 10:16 ` glen herrmannsfeldt 0 siblings, 1 reply; 146+ messages in thread From: Bill Gunshannon @ 2010-04-08 22:38 UTC (permalink / raw) In article <hpljjg$a1p$1@naig.caltech.edu>, glen herrmannsfeldt <gah@ugcs.caltech.edu> writes: > In alt.sys.pdp11 Bill Gunshannon <billg999@cs.uofs.edu> wrote: > (snip) > >> Yeah, chips could be a problem. I may end out trying what I have in >> mind using one of the paralel interfaces as hooking directly to the >> QBUS may cost more than the whole project wold be worth. > >> For those who's curiosity has been piqued, I heve recently seen a few >> examples of boards that interface IDE disks to the raw bus on a few >> old microcomputers. Very few parts required and the cost is minimal. >> I got curious about trying it for the PDP-11 and maybe even the VAX. > > One problem that some have is the 16 bit data bus. While the early > IDE allowed for either 8 or 16 bit transfers, the 8 bit ability > disappeared pretty fast. For Qbus presumably you won't have > that problem. I believe this was discussed in the write-up I saw for one of them and there were ways around it. > > Also note that one of the modes of CF (compact flash) is a direct > emulation of IDE, though with 8 bit mode. For most 8 bit > microcomputers, the current size of CF cards is plenty big enough. > > Either IDE or CF should be fairly easy to do, I agree. > > If it could be constructed for a reasonable price, others > with Qbus machines might be interested. The one for the Z80 based Tandy micros cost about $8. > >> On another note, I have also recently seen a system that uses a serial >> connection to a PC or MAC as a disk interface. Giving some thought to >> that as well. It will be slow, but when you come right down to it, >> probably not much slower than an RD51. :-) > > My choice would have been ethernet and NFS. Yeah, that's an option, but likely to be much harder and more costly. > >> And my most ambitious project (and the one I am least likely to find >> enough time to do before retirement) is a board that can emulate an >> ST-506 disk while utilizing something icheaper and easier to find. > > I believe it has been done, but not cheaply. Are Qbus ST506 > boards available? (and reasonably priced?) RQDX? I have maybe a half dozen of them. Actaully, I have more boards than drives. bill -- Bill Gunshannon | de-moc-ra-cy (di mok' ra see) n. Three wolves billg999@cs.scranton.edu | and a sheep voting on what's for dinner. University of Scranton | Scranton, Pennsylvania | #include <std.disclaimer.h> ^ permalink raw reply [flat|nested] 146+ messages in thread
* Re: QBUS Prototyping 2010-04-08 22:38 ` Bill Gunshannon @ 2010-04-11 10:16 ` glen herrmannsfeldt 2010-04-11 14:24 ` Bill Gunshannon 0 siblings, 1 reply; 146+ messages in thread From: glen herrmannsfeldt @ 2010-04-11 10:16 UTC (permalink / raw) In alt.sys.pdp11 Bill Gunshannon <billg999@cs.uofs.edu> wrote: (snip, I wrote) >> One problem that some have is the 16 bit data bus. While the early >> IDE allowed for either 8 or 16 bit transfers, the 8 bit ability >> disappeared pretty fast. For Qbus presumably you won't have >> that problem. > I believe this was discussed in the write-up I saw for one of > them and there were ways around it. Yes, it requires an extra eight bit latch. When you read the first byte it latches the other half of the bus. Then you read that latch, probably from a different I/O port. (snip) > The one for the Z80 based Tandy micros cost about $8. That includes the extra latch. For Qbus, can you require 16 bit transfers? If you write the device driver and boot ROM it would seem that you could do that. Actually, I was wondering some time ago about interfacing to the ISA bus. That takes a little more buffering, but then allows more different devices to be connected. PCI is likely somewhat harder, but allows for newer devices. (snip of my suggestion to do ethernet and NFS) > Yeah, that's an option, but likely to be much harder and more costly. Well, ethernet Qbus cards aren't so hard to find. I believe they are more reasonably priced than SCSI cards. You could connect that to a SAN disk supporting your favorite protocol. The driver is somewhat more complicated, though. -- glen ^ permalink raw reply [flat|nested] 146+ messages in thread
* Re: QBUS Prototyping 2010-04-11 10:16 ` glen herrmannsfeldt @ 2010-04-11 14:24 ` Bill Gunshannon 2010-04-11 17:10 ` glen herrmannsfeldt 2010-04-12 21:25 ` Johnny Billquist 0 siblings, 2 replies; 146+ messages in thread From: Bill Gunshannon @ 2010-04-11 14:24 UTC (permalink / raw) In article <hps7i9$htt$1@naig.caltech.edu>, glen herrmannsfeldt <gah@ugcs.caltech.edu> writes: > In alt.sys.pdp11 Bill Gunshannon <billg999@cs.uofs.edu> wrote: > > (snip, I wrote) >>> One problem that some have is the 16 bit data bus. While the early >>> IDE allowed for either 8 or 16 bit transfers, the 8 bit ability >>> disappeared pretty fast. For Qbus presumably you won't have >>> that problem. > >> I believe this was discussed in the write-up I saw for one of >> them and there were ways around it. > > Yes, it requires an extra eight bit latch. When you read > the first byte it latches the other half of the bus. > Then you read that latch, probably from a different I/O port. > > (snip) > >> The one for the Z80 based Tandy micros cost about $8. > > That includes the extra latch. For Qbus, can you require 16 bit > transfers? If you write the device driver and boot ROM it > would seem that you could do that. > > Actually, I was wondering some time ago about interfacing > to the ISA bus. That takes a little more buffering, but > then allows more different devices to be connected. > > PCI is likely somewhat harder, but allows for newer devices. I think both of these probably go beyond the realm of possibilty for a hobbyist implementation. By the time you got done the card would cost more than an entire PDP-11 or VAX system. > > (snip of my suggestion to do ethernet and NFS) > >> Yeah, that's an option, but likely to be much harder and more costly. > > Well, ethernet Qbus cards aren't so hard to find. I believe they > are more reasonably priced than SCSI cards. I have a number of them both QBUS and UNIBUS. > You could connect > that to a SAN disk supporting your favorite protocol. That would require the complete implementation of an IP stack. Considering the limited resources of a PDP-11, I would expect it to be nearly impossible. I would be more likely to look at a very simple ethernet level protocol that merely knew how to fetch and return raw blocks with a server process on another machine. Or maybe that is something that could be done with LAT. Is LAT what PDP-11's use to boot over ethernet? > > The driver is somewhat more complicated, though. If it requires a full IP stack, yeah, a bit more complicated. :-) bill -- Bill Gunshannon | de-moc-ra-cy (di mok' ra see) n. Three wolves billg999@cs.scranton.edu | and a sheep voting on what's for dinner. University of Scranton | Scranton, Pennsylvania | #include <std.disclaimer.h> ^ permalink raw reply [flat|nested] 146+ messages in thread
* Re: QBUS Prototyping 2010-04-11 14:24 ` Bill Gunshannon @ 2010-04-11 17:10 ` glen herrmannsfeldt 2010-04-12 21:25 ` Johnny Billquist 1 sibling, 0 replies; 146+ messages in thread From: glen herrmannsfeldt @ 2010-04-11 17:10 UTC (permalink / raw) In alt.sys.pdp11 Bill Gunshannon <billg999@cs.uofs.edu> wrote: (snip) >> (snip of my suggestion to do ethernet and NFS) >>> Yeah, that's an option, but likely to be much harder and more costly. >> Well, ethernet Qbus cards aren't so hard to find. I believe they >> are more reasonably priced than SCSI cards. > I have a number of them both QBUS and UNIBUS. >> You could connect >> that to a SAN disk supporting your favorite protocol. > That would require the complete implementation of an IP stack. > Considering the limited resources of a PDP-11, I would expect > it to be nearly impossible. Well, NFS is traditionally UDP based, so much less work than a TCP implementation. I believe that newer versions support both TCP and UDP. > I would be more likely to look at a very simple ethernet level protocol > that merely knew how to fetch and return raw blocks with a server > process on another machine. Or maybe that is something that could be > done with LAT. Is LAT what PDP-11's use to boot over ethernet? >> The driver is somewhat more complicated, though. > If it requires a full IP stack, yeah, a bit more complicated. :-) Much of the complication (but still onlu UDP) is the mount command, which is done only at mount time. For disk access, you put together a UDP packet containing the request and process the reply. -- glen ^ permalink raw reply [flat|nested] 146+ messages in thread
* Re: QBUS Prototyping 2010-04-11 14:24 ` Bill Gunshannon 2010-04-11 17:10 ` glen herrmannsfeldt @ 2010-04-12 21:25 ` Johnny Billquist 2010-04-12 22:02 ` John Wallace 2010-04-12 22:33 ` glen herrmannsfeldt 1 sibling, 2 replies; 146+ messages in thread From: Johnny Billquist @ 2010-04-12 21:25 UTC (permalink / raw) Bill Gunshannon wrote: > In article <hps7i9$htt$1@naig.caltech.edu>, > glen herrmannsfeldt <gah@ugcs.caltech.edu> writes: >> PCI is likely somewhat harder, but allows for newer devices. > > I think both of these probably go beyond the realm of possibilty for > a hobbyist implementation. By the time you got done the card would > cost more than an entire PDP-11 or VAX system. I would suspect that you have more or less complete chips, that aren't that expensive, that does the whole thing. But I haven't kept up to date on what chips exist, and how complex they are. >> You could connect >> that to a SAN disk supporting your favorite protocol. > > That would require the complete implementation of an IP stack. > Considering the limited resources of a PDP-11, I would expect > it to be nearly impossible. Hardly. 2.11BSD already talks both IP, UDP and TCP just fine. Adding NFS, while some work, is definitely doable. As for RSX, I already have IP and UDP running. Enough to implement NFS as well. There are another problem involved here, but capability wise, a PDP-11 will not be a problem. > I would be more likely to look at a very simple ethernet level protocol > that merely knew how to fetch and return raw blocks with a server > process on another machine. Or maybe that is something that could be > done with LAT. Is LAT what PDP-11's use to boot over ethernet? No. LAT is for terminal traffic. Booting is done by another protocol, called MOP. NFS, using UDP is not much more complicated than raw ethernet frames for reading and writing. However, a big problem is that NFS don't give you a "raw" device. It actually understands various file operations, which means that if you have an OS with a different view how a file looks, or different views on file protection and privileges, which don't map to Unix, then NFS becomes a problem... I've been considering implementing NFS for RSX, but so far I've decided against it for that very reason. There is no reasonable way to map between Unix and RSX, that is useful. 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 ^ permalink raw reply [flat|nested] 146+ messages in thread
* Re: QBUS Prototyping 2010-04-12 21:25 ` Johnny Billquist @ 2010-04-12 22:02 ` John Wallace 2010-04-13 7:34 ` Johnny Billquist 2010-04-12 22:33 ` glen herrmannsfeldt 1 sibling, 1 reply; 146+ messages in thread From: John Wallace @ 2010-04-12 22:02 UTC (permalink / raw) On Apr 12, 10:25 pm, Johnny Billquist <b...@softjar.se> wrote: > Bill Gunshannon wrote: > > In article <hps7i9$ht...@naig.caltech.edu>, > > glen herrmannsfeldt <g...@ugcs.caltech.edu> writes: > >> PCI is likely somewhat harder, but allows for newer devices. > > > I think both of these probably go beyond the realm of possibilty for > > a hobbyist implementation. By the time you got done the card would > > cost more than an entire PDP-11 or VAX system. > > I would suspect that you have more or less complete chips, that aren't > that expensive, that does the whole thing. But I haven't kept up to date > on what chips exist, and how complex they are. > > >> You could connect > >> that to a SAN disk supporting your favorite protocol. > > > That would require the complete implementation of an IP stack. > > Considering the limited resources of a PDP-11, I would expect > > it to be nearly impossible. > > Hardly. 2.11BSD already talks both IP, UDP and TCP just fine. Adding > NFS, while some work, is definitely doable. > > As for RSX, I already have IP and UDP running. Enough to implement NFS > as well. There are another problem involved here, but capability wise, a > PDP-11 will not be a problem. > > > I would be more likely to look at a very simple ethernet level protocol > > that merely knew how to fetch and return raw blocks with a server > > process on another machine. Or maybe that is something that could be > > done with LAT. Is LAT what PDP-11's use to boot over ethernet? > > No. LAT is for terminal traffic. Booting is done by another protocol, > called MOP. > > NFS, using UDP is not much more complicated than raw ethernet frames for > reading and writing. > However, a big problem is that NFS don't give you a "raw" device. It > actually understands various file operations, which means that if you > have an OS with a different view how a file looks, or different views on > file protection and privileges, which don't map to Unix, then NFS > becomes a problem... > > I've been considering implementing NFS for RSX, but so far I've decided > against it for that very reason. There is no reasonable way to map > between Unix and RSX, that is useful. > > Johnny > > -- > Johnny Billquist || "I'm on a bus > || on a psychedelic trip > email: b...@softjar.se || Reading murder books > pdp is alive! || tryin' to stay hip" - B. Idol There is also LAD (and LAST), as used by InfoServer software and its clients, which roughly do for disk blocks what LAT does for serial data and terminal servers. Might LAD/LAST for RSX be a more exciting/ useful prospect than NFS for RSX (assuming LAD/LAST for RSX doesn't already exist)? ^ permalink raw reply [flat|nested] 146+ messages in thread
* Re: QBUS Prototyping 2010-04-12 22:02 ` John Wallace @ 2010-04-13 7:34 ` Johnny Billquist 2010-04-19 2:25 ` John Santos 2010-04-19 10:50 ` VAXman- 0 siblings, 2 replies; 146+ messages in thread From: Johnny Billquist @ 2010-04-13 7:34 UTC (permalink / raw) John Wallace wrote: > On Apr 12, 10:25 pm, Johnny Billquist <b...@softjar.se> wrote: >> Bill Gunshannon wrote: >>> I would be more likely to look at a very simple ethernet level protocol >>> that merely knew how to fetch and return raw blocks with a server >>> process on another machine. Or maybe that is something that could be >>> done with LAT. Is LAT what PDP-11's use to boot over ethernet? >> No. LAT is for terminal traffic. Booting is done by another protocol, >> called MOP. >> >> NFS, using UDP is not much more complicated than raw ethernet frames for >> reading and writing. >> However, a big problem is that NFS don't give you a "raw" device. It >> actually understands various file operations, which means that if you >> have an OS with a different view how a file looks, or different views on >> file protection and privileges, which don't map to Unix, then NFS >> becomes a problem... >> >> I've been considering implementing NFS for RSX, but so far I've decided >> against it for that very reason. There is no reasonable way to map >> between Unix and RSX, that is useful. > > There is also LAD (and LAST), as used by InfoServer software and its > clients, which roughly do for disk blocks what LAT does for serial > data and terminal servers. Might LAD/LAST for RSX be a more exciting/ > useful prospect than NFS for RSX (assuming LAD/LAST for RSX doesn't > already exist)? As far as I know, LAD and LAST don't exist for RSX. I don't think it would be that difficult to implement, but I don't see the point. Infoservers are pretty rare as well. While being a big headache, NFS would be far more useful, I think. Maybe one day... 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 ^ permalink raw reply [flat|nested] 146+ messages in thread
* Re: QBUS Prototyping 2010-04-13 7:34 ` Johnny Billquist @ 2010-04-19 2:25 ` John Santos 2010-04-19 11:50 ` John Wallace 2010-04-19 10:50 ` VAXman- 1 sibling, 1 reply; 146+ messages in thread From: John Santos @ 2010-04-19 2:25 UTC (permalink / raw) In article <hq16qp$tlv$1@Iltempo.Update.UU.SE>, bqt@softjar.se says...> > John Wallace wrote: > > On Apr 12, 10:25 pm, Johnny Billquist <b...@softjar.se> wrote: > >> Bill Gunshannon wrote: > >>> I would be more likely to look at a very simple ethernet level protocol > >>> that merely knew how to fetch and return raw blocks with a server > >>> process on another machine. Or maybe that is something that could be > >>> done with LAT. Is LAT what PDP-11's use to boot over ethernet? > >> No. LAT is for terminal traffic. Booting is done by another protocol, > >> called MOP. > >> > >> NFS, using UDP is not much more complicated than raw ethernet frames for > >> reading and writing. > >> However, a big problem is that NFS don't give you a "raw" device. It > >> actually understands various file operations, which means that if you > >> have an OS with a different view how a file looks, or different views on > >> file protection and privileges, which don't map to Unix, then NFS > >> becomes a problem... > >> > >> I've been considering implementing NFS for RSX, but so far I've decided > >> against it for that very reason. There is no reasonable way to map > >> between Unix and RSX, that is useful. > > > > There is also LAD (and LAST), as used by InfoServer software and its > > clients, which roughly do for disk blocks what LAT does for serial > > data and terminal servers. Might LAD/LAST for RSX be a more exciting/ > > useful prospect than NFS for RSX (assuming LAD/LAST for RSX doesn't > > already exist)? > > As far as I know, LAD and LAST don't exist for RSX. I don't think it > would be that difficult to implement, but I don't see the point. > Infoservers are pretty rare as well. While being a big headache, NFS > would be far more useful, I think. Maybe one day... > Infoservers are rare (I think... I've rarely seen them come up on Ebay...), but Infoserver emulators are very common and cheap... Any Alpha or Itanium able to run VMS V8.3 or later :-) (Imagine one of the rx2600's that often come up on Ebay serving a virtual LD: disk to a real LSI-11/03 running RT11 in 8KW. :-) :-) :-) But the problem, AFAIK, is no PDP-11 O/S includes the LAST/LAD client side. :-( :-( :-( > Johnny -- John ^ permalink raw reply [flat|nested] 146+ messages in thread
* Re: QBUS Prototyping 2010-04-19 2:25 ` John Santos @ 2010-04-19 11:50 ` John Wallace 0 siblings, 0 replies; 146+ messages in thread From: John Wallace @ 2010-04-19 11:50 UTC (permalink / raw) On Apr 19, 3:25 am, John Santos <john.san...@post.harvard.edu> wrote: > In article <hq16qp$tl...@Iltempo.Update.UU.SE>, b...@softjar.se says...> > > > > > John Wallace wrote: > > > On Apr 12, 10:25 pm, Johnny Billquist <b...@softjar.se> wrote: > > >> Bill Gunshannon wrote: > > >>> I would be more likely to look at a very simple ethernet level protocol > > >>> that merely knew how to fetch and return raw blocks with a server > > >>> process on another machine. Or maybe that is something that could be > > >>> done with LAT. Is LAT what PDP-11's use to boot over ethernet? > > >> No. LAT is for terminal traffic. Booting is done by another protocol, > > >> called MOP. > > > >> NFS, using UDP is not much more complicated than raw ethernet frames for > > >> reading and writing. > > >> However, a big problem is that NFS don't give you a "raw" device. It > > >> actually understands various file operations, which means that if you > > >> have an OS with a different view how a file looks, or different views on > > >> file protection and privileges, which don't map to Unix, then NFS > > >> becomes a problem... > > > >> I've been considering implementing NFS for RSX, but so far I've decided > > >> against it for that very reason. There is no reasonable way to map > > >> between Unix and RSX, that is useful. > > > > There is also LAD (and LAST), as used by InfoServer software and its > > > clients, which roughly do for disk blocks what LAT does for serial > > > data and terminal servers. Might LAD/LAST for RSX be a more exciting/ > > > useful prospect than NFS for RSX (assuming LAD/LAST for RSX doesn't > > > already exist)? > > > As far as I know, LAD and LAST don't exist for RSX. I don't think it > > would be that difficult to implement, but I don't see the point. > > Infoservers are pretty rare as well. While being a big headache, NFS > > would be far more useful, I think. Maybe one day... > > Infoservers are rare (I think... I've rarely seen them come up on > Ebay...), but Infoserver emulators are very common and cheap... Any > Alpha or Itanium able to run VMS V8.3 or later :-) (Imagine one of > the rx2600's that often come up on Ebay serving a virtual LD: disk to > a real LSI-11/03 running RT11 in 8KW. :-) :-) :-) > > But the problem, AFAIK, is no PDP-11 O/S includes the LAST/LAD client > side. :-( :-( :-( > > > Johnny > > -- > John OK, so there's a widely available (supported, even) LAD/LAST server. And let's take it as read that there's no LAST/LAD client for PDP11. But how difficult can it actually be? Surely it's got to be simpler than the hacks-on-top-of-bodges which would be required for an NFS solution? It may be less challenging, and arguably less useful too (?), but this discussion rather highlights some of the challenges which led Infoservers to deal in disk blocks rather than file blocks. ^ permalink raw reply [flat|nested] 146+ messages in thread
* Re: QBUS Prototyping 2010-04-13 7:34 ` Johnny Billquist 2010-04-19 2:25 ` John Santos @ 2010-04-19 10:50 ` VAXman- 2010-04-24 14:55 ` Bill Gunshannon 1 sibling, 1 reply; 146+ messages in thread From: VAXman- @ 2010-04-19 10:50 UTC (permalink / raw) In article <MPG.2635890f643134cb989692@news.giganews.com>, John Santos <john.santos@post.harvard.edu> writes: > >Infoservers are rare (I think... I've rarely seen them come up on >Ebay...), but Infoserver emulators are very common and cheap... Any There are 6 rarites at my feet. ;) -- VAXman- A Bored Certified VMS Kernel Mode Hacker VAXman(at)TMESIS(dot)ORG http://www.quirkfactory.com/popart/asskey/eqn2.png Read all about their schemes and adventuring. It's well worth a fee. So roll up and see, how they rape the universe; How they've gone from bad to worse. Who are these men of lust, greed, and glory? Rip off the masks and let's see. ^ permalink raw reply [flat|nested] 146+ messages in thread
* Re: QBUS Prototyping 2010-04-19 10:50 ` VAXman- @ 2010-04-24 14:55 ` Bill Gunshannon 0 siblings, 0 replies; 146+ messages in thread From: Bill Gunshannon @ 2010-04-24 14:55 UTC (permalink / raw) In article <00A9C315.21D7D9AE@sendspamhere.org>, VAXman- @SendSpamHere.ORG writes: > In article <MPG.2635890f643134cb989692@news.giganews.com>, John Santos <john.santos@post.harvard.edu> writes: >> >>Infoservers are rare (I think... I've rarely seen them come up on >>Ebay...), but Infoserver emulators are very common and cheap... Any > > There are 6 rarites at my feet. ;) I also have one. Sadly, I got it about the time I had to start packing most of my toys so I haven't played with it yet. :-( But, hopefully, retirement is not that far away. bill -- Bill Gunshannon | de-moc-ra-cy (di mok' ra see) n. Three wolves billg999@cs.scranton.edu | and a sheep voting on what's for dinner. University of Scranton | Scranton, Pennsylvania | #include <std.disclaimer.h> ^ permalink raw reply [flat|nested] 146+ messages in thread
* Re: QBUS Prototyping 2010-04-12 21:25 ` Johnny Billquist 2010-04-12 22:02 ` John Wallace @ 2010-04-12 22:33 ` glen herrmannsfeldt 2010-04-13 7:53 ` Johnny Billquist 1 sibling, 1 reply; 146+ messages in thread From: glen herrmannsfeldt @ 2010-04-12 22:33 UTC (permalink / raw) In alt.sys.pdp11 Johnny Billquist <bqt@softjar.se> wrote: > Bill Gunshannon wrote: (snip regarding interfaces between Qbus and others, such as PCI) >> I think both of these probably go beyond the realm of possibilty for >> a hobbyist implementation. By the time you got done the card would >> cost more than an entire PDP-11 or VAX system. > I would suspect that you have more or less complete chips, that aren't > that expensive, that does the whole thing. But I haven't kept up to date > on what chips exist, and how complex they are. I might not know Qbus quite well enough, but I think it should easily interface to ISA. The interface might need to know which addresses to forward, though. For PCI there are chips, but they might need some programming. >>> You could connect >>> that to a SAN disk supporting your favorite protocol. >> That would require the complete implementation of an IP stack. >> Considering the limited resources of a PDP-11, I would expect >> it to be nearly impossible. > Hardly. 2.11BSD already talks both IP, UDP and TCP just fine. Adding > NFS, while some work, is definitely doable. > As for RSX, I already have IP and UDP running. Enough to implement NFS > as well. There are another problem involved here, but capability wise, a > PDP-11 will not be a problem. >> I would be more likely to look at a very simple ethernet level protocol >> that merely knew how to fetch and return raw blocks with a server >> process on another machine. Or maybe that is something that could be >> done with LAT. Is LAT what PDP-11's use to boot over ethernet? > No. LAT is for terminal traffic. Booting is done by another protocol, > called MOP. > NFS, using UDP is not much more complicated than raw ethernet > frames for reading and writing. > However, a big problem is that NFS don't give you a "raw" device. It > actually understands various file operations, which means that if you > have an OS with a different view how a file looks, or different views on > file protection and privileges, which don't map to Unix, then NFS > becomes a problem... You can cheat. Map the whole file system to one big file on the NFS server. Not so convenient from the other side, but it should be fine for the PDP-11 side. That would be similar to the way that diskless unix machines swap on NFS. Not so convenient in that it doesn't allow one to work with files from other systems, but I think it is all you can do from the device driver level. Otherwise, it has to be done higher in the file system code, much higher than the device driver level. It is interesting that in NFS the client works at a higher level, and the server at a lower level. On unix, for example, if you mount a disk on a mount point then other files in that part of the directory tree aren't visible anymore. If you mount that file system through NFS then those files are visible! > I've been considering implementing NFS for RSX, but so far I've decided > against it for that very reason. There is no reasonable way to map > between Unix and RSX, that is useful. I did use RSX some years ago, but maybe don't remember it so well. Which part doesn't map well? It does have to be done at a higher level. I remember early versions of HP-UX, based on the AT&T unix systems, had a short file name limit for native file systems. That limit was not there for NFS mounted file systems. To do NFS right, it really does need to be done at as high a level as possible. Among others, the file name length limit should also disappear for RSX. (Possibly a problem for programs without a big enough buffer for a file name input.) -- glen ^ permalink raw reply [flat|nested] 146+ messages in thread
* Re: QBUS Prototyping 2010-04-12 22:33 ` glen herrmannsfeldt @ 2010-04-13 7:53 ` Johnny Billquist 2010-04-13 12:01 ` glen herrmannsfeldt 0 siblings, 1 reply; 146+ messages in thread From: Johnny Billquist @ 2010-04-13 7:53 UTC (permalink / raw) glen herrmannsfeldt wrote: > In alt.sys.pdp11 Johnny Billquist <bqt@softjar.se> wrote: >> Bill Gunshannon wrote: >>> I would be more likely to look at a very simple ethernet level protocol >>> that merely knew how to fetch and return raw blocks with a server >>> process on another machine. Or maybe that is something that could be >>> done with LAT. Is LAT what PDP-11's use to boot over ethernet? > >> No. LAT is for terminal traffic. Booting is done by another protocol, >> called MOP. > >> NFS, using UDP is not much more complicated than raw ethernet >> frames for reading and writing. >> However, a big problem is that NFS don't give you a "raw" device. It >> actually understands various file operations, which means that if you >> have an OS with a different view how a file looks, or different views on >> file protection and privileges, which don't map to Unix, then NFS >> becomes a problem... > > You can cheat. Map the whole file system to one big file on > the NFS server. Not so convenient from the other side, but it > should be fine for the PDP-11 side. That would be similar to the > way that diskless unix machines swap on NFS. Indeed, you could do that. > Not so convenient in that it doesn't allow one to work with > files from other systems, but I think it is all you can do from > the device driver level. Otherwise, it has to be done higher > in the file system code, much higher than the device driver level. Yes. And just having a container file, which you then create a file system inside, for the other system, also makes it impossible for several other machines to access the disk. Well, you can, but that will corrupt the image. > It is interesting that in NFS the client works at a higher level, > and the server at a lower level. On unix, for example, if you > mount a disk on a mount point then other files in that part of > the directory tree aren't visible anymore. If you mount that > file system through NFS then those files are visible! You are talking about the fact that the exported disk don't carry along mount points? Yes, that can seem a bit "weird". >> I've been considering implementing NFS for RSX, but so far I've decided >> against it for that very reason. There is no reasonable way to map >> between Unix and RSX, that is useful. > > I did use RSX some years ago, but maybe don't remember it so well. > Which part doesn't map well? It does have to be done at a higher level. There are big headaches here. First of all, the NFS client under RSX (if we start at that end) would have to emulate the same operations that FILES-11 provide, or else you will not be able to use the file system the same way as you use any other disk on RSX. But FILES-11 stores 20 bytes of metadata outside of the file, for each file. And in those 20 bytes you have things file file attributes, record length and other information. There is no way to map this to NFS, so what should you do with reads/writes to this data? Second, depending on the contents of that data, the file is processed differently. For example, a normal text file in RSX is actually represented by a 2-byte length field, followed by the data. No CR or LF is included in the record. And records are aligned on even addresses. So, if you read a text file over NFS, you need to fake something for the meta-data, and then you need to read the lines from the file, and at each LF, you need to split the data up. However, NFS don't actually read a record at a time, but reads a disk block at a time. And with each line split, the LF removed, and 2 bytes of length added, plus a possible padding byte, means that a disk block from NFS will end up being slightly more that one disk block under RSX. And of course, the opposite needs to be done when writing. And you don't even know if it actually is a text file, for which this should be done. And changing the lengths also mean that any seeks cannot be converted at all, since you don't know where that actually is on the file because of record length differences. I could go on about binary files as well, where you can hit the same problems... And then we have things like owners and file protections, which don't map right... In VMS, this is solved by forcing files on NFS to always have the STREAM_LF format. That is a possibility under RSX as well, since you do have a STREAM format for RMS. However, FCS have no clue about that format, and just about no program can deal with it. So it wouldn't be very useful. > I remember early versions of HP-UX, based on the AT&T unix systems, > had a short file name limit for native file systems. That limit was > not there for NFS mounted file systems. To do NFS right, it really > does need to be done at as high a level as possible. Among others, > the file name length limit should also disappear for RSX. > (Possibly a problem for programs without a big enough buffer for > a file name input.) Filenames is possibly a problem, but it' more manageable. RSX have 9+3 filenames, and a limited set of characters that are allowed. It just becomes a question of what to do with files that don't conform to the patterns used by RSX. Probably just skip them. File versions are perhaps a little more tricky, but I think that is an obstacle that there also is a simple solution to. So I wouldn't worry too much about those aspects. It's the actual contents of the files that will make it hard. 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 ^ permalink raw reply [flat|nested] 146+ messages in thread
* Re: QBUS Prototyping 2010-04-13 7:53 ` Johnny Billquist @ 2010-04-13 12:01 ` glen herrmannsfeldt 2010-04-16 23:44 ` Johnny Billquist 0 siblings, 1 reply; 146+ messages in thread From: glen herrmannsfeldt @ 2010-04-13 12:01 UTC (permalink / raw) In alt.sys.pdp11 Johnny Billquist <bqt@softjar.se> wrote: (snip, I wrote) >> It is interesting that in NFS the client works at a higher level, >> and the server at a lower level. On unix, for example, if you >> mount a disk on a mount point then other files in that part of >> the directory tree aren't visible anymore. If you mount that >> file system through NFS then those files are visible! > You are talking about the fact that the exported disk don't carry > along mount points? Yes, that can seem a bit "weird". That, and that it lets you see any files that could be under the mount point. >>> I've been considering implementing NFS for RSX, but so far I've decided >>> against it for that very reason. There is no reasonable way to map >>> between Unix and RSX, that is useful. >> I did use RSX some years ago, but maybe don't remember it so well. >> Which part doesn't map well? It does have to be done at a higher level. > There are big headaches here. First of all, the NFS client under RSX > (if we start at that end) would have to emulate the same operations > that FILES-11 provide, or else you will not be able to use the file > system the same way as you use any other disk on RSX. > But FILES-11 stores 20 bytes of metadata outside of the file, for > each file. And in those 20 bytes you have things file file attributes, > record length and other information. There is no way to map this to > NFS, so what should you do with reads/writes to this data? A problem well known in the Apple world. In Macintosh file systems, files have a data fork (the normal part) and resource fork (where data like you mention goes). It is normally handled in NFS, or on other file systems, with an extra file somewhere. The ones I remember put an extra subdirectory in each directory, sometimes with a hidden name (such as .RESOURCE_FORK) and put the data in there. Not great, but it does work. It could also be done with another file in the same directory with a different name. > Second, depending on the contents of that data, the file is processed > differently. For example, a normal text file in RSX is actually > represented by a 2-byte length field, followed by the data. No CR or LF > is included in the record. And records are aligned on even addresses. > So, if you read a text file over NFS, you need to fake something for the > meta-data, and then you need to read the lines from the file, and at > each LF, you need to split the data up. I believe that there are systems that convert between LF terminated and CRLF terminated records while doing NFS I/O. Not that I would do that, though. > However, NFS don't actually read a record at a time, but reads > a disk block at a time. I believe that the client can read any size desired up to the server specified maximum. Commonly that would be a multiple of the disk block size, but I don't believe that is required. > And with each line split, the LF removed, and 2 bytes > of length added, plus a possible padding byte, means that a disk block > from NFS will end up being slightly more that one disk block under RSX. > And of course, the opposite needs to be done when writing. > And you don't even know if it actually is a text file, for which this > should be done. The client should know that an process accordingly. > And changing the lengths also mean that any seeks cannot be > converted at all, since you don't know where that actually is > on the file because of record length differences. Personally, I believe that you shouldn't change the length. Write the bytes as seen by the client, and leave it up to other systems to process accordingly. This problem should also occur with some IBM systems, where record structure is not stored in the file, but otherwise known. I haven't used NFS on such systems to know how it is done, though. > I could go on about binary files as well, where you can hit > the same problems... > And then we have things like owners and file protections, > which don't map right... > In VMS, this is solved by forcing files on NFS to always have the > STREAM_LF format. That is a possibility under RSX as well, since you do > have a STREAM format for RMS. However, FCS have no clue about that > format, and just about no program can deal with it. So it wouldn't be > very useful. Well, I was suggesting it mostly such that it would only ever be read by the RSX system. That is, as a replacement for older disk hardware. It would be nice to be able to read/write from other systems, but not required. >> I remember early versions of HP-UX, based on the AT&T unix systems, >> had a short file name limit for native file systems. That limit was >> not there for NFS mounted file systems. To do NFS right, it really >> does need to be done at as high a level as possible. Among others, >> the file name length limit should also disappear for RSX. >> (Possibly a problem for programs without a big enough buffer for >> a file name input.) > Filenames is possibly a problem, but it' more manageable. RSX have 9+3 > filenames, and a limited set of characters that are allowed. It just > becomes a question of what to do with files that don't conform to the > patterns used by RSX. Probably just skip them. If it is done in the file system before that limitation occurs, then it shouldn't be a problem. I don't know the RSX file access code at all, though. There is, as I said, the problem of programs not allowing for enough characters in a file name. > File versions are perhaps a little more tricky, but I think > that is an obstacle that there also is a simple solution to. > So I wouldn't worry too much about those aspects. It's the actual > contents of the files that will make it hard. I never use the systems that do CRLF conversion, and in this case I wouldn't expect any conversion. I am sure that others would want it, though. -- glen ^ permalink raw reply [flat|nested] 146+ messages in thread
* Re: QBUS Prototyping 2010-04-13 12:01 ` glen herrmannsfeldt @ 2010-04-16 23:44 ` Johnny Billquist 2010-04-17 3:15 ` glen herrmannsfeldt 0 siblings, 1 reply; 146+ messages in thread From: Johnny Billquist @ 2010-04-16 23:44 UTC (permalink / raw) glen herrmannsfeldt wrote: > In alt.sys.pdp11 Johnny Billquist <bqt@softjar.se> wrote: > (snip, I wrote) > >>> It is interesting that in NFS the client works at a higher level, >>> and the server at a lower level. On unix, for example, if you >>> mount a disk on a mount point then other files in that part of >>> the directory tree aren't visible anymore. If you mount that >>> file system through NFS then those files are visible! > >> You are talking about the fact that the exported disk don't carry >> along mount points? Yes, that can seem a bit "weird". > > That, and that it lets you see any files that could be under > the mount point. Part of the fact that you export disks, and not file systems, yes. The files "hidden" by a mount point are still there on the disk. It might seem a bit weird if you look at it from a certain angle, but it makes perfect sense from another angle. :-) >>>> I've been considering implementing NFS for RSX, but so far I've decided >>>> against it for that very reason. There is no reasonable way to map >>>> between Unix and RSX, that is useful. > >>> I did use RSX some years ago, but maybe don't remember it so well. >>> Which part doesn't map well? It does have to be done at a higher level. > >> There are big headaches here. First of all, the NFS client under RSX >> (if we start at that end) would have to emulate the same operations >> that FILES-11 provide, or else you will not be able to use the file >> system the same way as you use any other disk on RSX. >> But FILES-11 stores 20 bytes of metadata outside of the file, for >> each file. And in those 20 bytes you have things file file attributes, >> record length and other information. There is no way to map this to >> NFS, so what should you do with reads/writes to this data? > > A problem well known in the Apple world. In Macintosh file systems, > files have a data fork (the normal part) and resource fork > (where data like you mention goes). It is normally handled in > NFS, or on other file systems, with an extra file somewhere. > The ones I remember put an extra subdirectory in each directory, > sometimes with a hidden name (such as .RESOURCE_FORK) and put > the data in there. Not great, but it does work. It could > also be done with another file in the same directory with a > different name. Ugh! Hmm, yes, that could be doable, but definitely not a nice or neat solution. It runs the risk of people messing with those "extra" directories and files on the other end. >> Second, depending on the contents of that data, the file is processed >> differently. For example, a normal text file in RSX is actually >> represented by a 2-byte length field, followed by the data. No CR or LF >> is included in the record. And records are aligned on even addresses. >> So, if you read a text file over NFS, you need to fake something for the >> meta-data, and then you need to read the lines from the file, and at >> each LF, you need to split the data up. > > I believe that there are systems that convert between LF terminated > and CRLF terminated records while doing NFS I/O. Not that I would > do that, though. Hmm. It would be nice if you could name a system that do, so that I could check it out. >> However, NFS don't actually read a record at a time, but reads >> a disk block at a time. > > I believe that the client can read any size desired up to the > server specified maximum. Commonly that would be a multiple > of the disk block size, but I don't believe that is required. I was pretty sure it was disk blocks. Yes, you can specify that it should be multiples of 512 byte blocks, but that's just for higher throughput. NFS will adjust to the lower value of the two sides when client and server talk. Well, I might be wrong, and if I am, that would be great. >> And with each line split, the LF removed, and 2 bytes >> of length added, plus a possible padding byte, means that a disk block >> from NFS will end up being slightly more that one disk block under RSX. >> And of course, the opposite needs to be done when writing. >> And you don't even know if it actually is a text file, for which this >> should be done. > > The client should know that an process accordingly. The client would need to know, no matter how. The point is that the length of the file possible changes as an effect, and by how much is impossible to know except by processing the whole file. And if I'm right about blocks, it would introduce an extra level of buffering, since you'd need to repack disk blocks, and one block access might result in two accesses to the other end, and so on. >> And changing the lengths also mean that any seeks cannot be >> converted at all, since you don't know where that actually is >> on the file because of record length differences. > > Personally, I believe that you shouldn't change the length. > Write the bytes as seen by the client, and leave it up to other > systems to process accordingly. This problem should also occur with > some IBM systems, where record structure is not stored in the file, > but otherwise known. I haven't used NFS on such systems to know > how it is done, though. Ok. So totall non-interoperability over NFS. What should I do with files that were created on one side, when they are accessed on the other side? Pretend they don't exist? That can cause interesting problems of its own. Pretend they are fixed length files? But NFS (and Unix) measure file length in bytes, while RSX measure it in blocks. Or should I pretend they are STREAM files? Which makes them rather difficult to play with, but which might be more approriate, except when we really talk about binary files, which might make sense to say that they are fixed length files. >> I could go on about binary files as well, where you can hit >> the same problems... >> And then we have things like owners and file protections, >> which don't map right... > >> In VMS, this is solved by forcing files on NFS to always have the >> STREAM_LF format. That is a possibility under RSX as well, since you do >> have a STREAM format for RMS. However, FCS have no clue about that >> format, and just about no program can deal with it. So it wouldn't be >> very useful. > > Well, I was suggesting it mostly such that it would only ever > be read by the RSX system. That is, as a replacement for older > disk hardware. It would be nice to be able to read/write from > other systems, but not required. For me personally, having an NFS implementation in RSX which can only read/write/see/understand files created from RSX is rather meaningless. If I need disk, I have no problems hanging another SCSI disk on my machine. And the same is true for people with emulators. The number of people with only old, legacy disks, but modern enough machines to be able to run my TCP/IP will probably be extremely low. >>> I remember early versions of HP-UX, based on the AT&T unix systems, >>> had a short file name limit for native file systems. That limit was >>> not there for NFS mounted file systems. To do NFS right, it really >>> does need to be done at as high a level as possible. Among others, >>> the file name length limit should also disappear for RSX. >>> (Possibly a problem for programs without a big enough buffer for >>> a file name input.) > >> Filenames is possibly a problem, but it' more manageable. RSX have 9+3 >> filenames, and a limited set of characters that are allowed. It just >> becomes a question of what to do with files that don't conform to the >> patterns used by RSX. Probably just skip them. > > If it is done in the file system before that limitation occurs, > then it shouldn't be a problem. I don't know the RSX file > access code at all, though. There is, as I said, the problem of > programs not allowing for enough characters in a file name. The filename mangling is done before the ACP is ever hit. It's all inside the user program code. No chance of catching it before that. In many cases, it's even mangled at compilation time. And anything you implement, which would possibly be useful will only step in at the ACP level. >> File versions are perhaps a little more tricky, but I think >> that is an obstacle that there also is a simple solution to. > >> So I wouldn't worry too much about those aspects. It's the actual >> contents of the files that will make it hard. > > I never use the systems that do CRLF conversion, and in this > case I wouldn't expect any conversion. I am sure that others > would want it, though. As am I. Not being able to read a text file over NFS, if that file was played with on the other side sortof defeats the point of the exercise in my mind. :-) 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 ^ permalink raw reply [flat|nested] 146+ messages in thread
* Re: QBUS Prototyping 2010-04-16 23:44 ` Johnny Billquist @ 2010-04-17 3:15 ` glen herrmannsfeldt 2010-04-17 21:00 ` Johnny Billquist 0 siblings, 1 reply; 146+ messages in thread From: glen herrmannsfeldt @ 2010-04-17 3:15 UTC (permalink / raw) In alt.sys.pdp11 Johnny Billquist <bqt@softjar.se> wrote: (snip about NFS where I wrote) >> That, and that it lets you see any files that could be under >> the mount point. > Part of the fact that you export disks, and not file systems, yes. The > files "hidden" by a mount point are still there on the disk. > It might seem a bit weird if you look at it from a certain angle, > but it makes perfect sense from another angle. :-) But also it is where you see that an NFS server works at a lower level, in terms of file systems, than the client. (someone wrote) >>>>> I've been considering implementing NFS for RSX, but so >>>>> far I've decided against it for that very reason. (snip of discussion of RSX filesystem data separate from the file) >> A problem well known in the Apple world. In Macintosh file systems, >> files have a data fork (the normal part) and resource fork >> (where data like you mention goes). It is normally handled in >> NFS, or on other file systems, with an extra file somewhere. >> The ones I remember put an extra subdirectory in each directory, >> sometimes with a hidden name (such as .RESOURCE_FORK) and put >> the data in there. Not great, but it does work. It could >> also be done with another file in the same directory with a >> different name. > Ugh! Hmm, yes, that could be doable, but definitely not a nice > or neat solution. > It runs the risk of people messing with those "extra" directories > and files on the other end. Well, the client (on said system) could block access to the special directories or files. They would be visible on other systems, though. In the NFS file system model, section 1.4.3 of NFSv4: "The server filesystem is hierarchical with the regular files contained within being treated as opaque byte streams." It seems that NFSv4 allows UTF8 coding for file names, but file data is considered opaque (to the server). From the NFSv3 specifications: "NFS servers are dumb and NFS clients are smart. It is the clients that do the work requried to convert generalized file access that the servers provide into a file access method that is useful to applications and users." >>> Second, depending on the contents of that data, the file is processed >>> differently. For example, a normal text file in RSX is actually >>> represented by a 2-byte length field, followed by the data. No CR or LF >>> is included in the record. And records are aligned on even addresses. >>> So, if you read a text file over NFS, you need to fake something for the >>> meta-data, and then you need to read the lines from the file, and at >>> each LF, you need to split the data up. >> I believe that there are systems that convert between LF terminated >> and CRLF terminated records while doing NFS I/O. Not that I would >> do that, though. > Hmm. It would be nice if you could name a system that do, so that I > could check it out. I have used two NFS implementations for DOS/Windows systems. PCNFS from Sun, in the MSDOS days, and SFU3.5 (services for unix) written by Interix and available free from Microsoft. (It works with Win2K, XP, and Server 2003.) I believe both support client side (and mount time option) to convert between CRLF and LF terminated lines. Many systems, such as current Linux, include the unix2dos and dos2unix programs to convert to/from CRLF terminated lines. Presumably such mount points should not be used for executable files, unless the NFS client can figure that out and not translate them. Also, the conversion is also needed, for example, if files are transfered through tape, direct mounting of disks (such as USB drives), or other file transfer methods. >>> However, NFS don't actually read a record at a time, but reads >>> a disk block at a time. >> I believe that the client can read any size desired up to the >> server specified maximum. Commonly that would be a multiple >> of the disk block size, but I don't believe that is required. > I was pretty sure it was disk blocks. Yes, you can specify that it > should be multiples of 512 byte blocks, but that's just for higher > throughput. NFS will adjust to the lower value of the two sides when > client and server talk. The NFS READ and WRITE requests take a byte offset and byte length specifier. There are complications due to EOF, which it seems where improved in NFSv3, but at least back to NFSv2 they are specified at byte boundaries. > Well, I might be wrong, and if I am, that would be great. >>> And with each line split, the LF removed, and 2 bytes >>> of length added, plus a possible padding byte, means that a disk block >>> from NFS will end up being slightly more that one disk block under RSX. >>> And of course, the opposite needs to be done when writing. >>> And you don't even know if it actually is a text file, for which this >>> should be done. >> The client should know that an process accordingly. > The client would need to know, no matter how. The point is that the > length of the file possible changes as an effect, and by how much is > impossible to know except by processing the whole file. And if I'm right > about blocks, it would introduce an extra level of buffering, since > you'd need to repack disk blocks, and one block access might result in > two accesses to the other end, and so on. As above, any such conversions are done by the NFS client. It seems that IBM has gone through this with z/OS (previously MVS) and NFS. See: httpL//publibz.boulder.ibm.com/epubs/pdf/cpn1ug00.pdf MVS has three different basic file record formats (RECFM), RECFM=F (fixed length), RECFM=V (variable length), and RECFM=U (undefined). For RECFM=F, and especially for FB (fixed blocked) all records are the same length, stored in the directory (TOC), with no record marks stored in the file. For RECFM=V (and VB) records and block have four byte headers indicating the lengths. RECFM=U (commonly used for executable files) the structure is transparent to the file system, but known to the client. >>> And changing the lengths also mean that any seeks cannot be >>> converted at all, since you don't know where that actually is >>> on the file because of record length differences. Yes this problem is well known, even for text files in standard C. Note the restrictions on fseek/ftell. >> Personally, I believe that you shouldn't change the length. >> Write the bytes as seen by the client, and leave it up to other >> systems to process accordingly. This problem should also occur with >> some IBM systems, where record structure is not stored in the file, >> but otherwise known. I haven't used NFS on such systems to know >> how it is done, though. > Ok. So totall non-interoperability over NFS. What should I do with files > that were created on one side, when they are accessed on the other side? > Pretend they don't exist? That can cause interesting problems of its own. It seems that there are some "pretend they don't exist" problems already. One comes with case sensitivity. If the server has two files with names that differ only in case, how can they be accessed by a case insensitive client (DOS/Windows or Macintosh, including OS X)? Or the name may be too long for the client. It seems now that with 64 bit NFS, allowing files longer than 4GB, and 32 bit clients, that can't process such files, that again files pretend not to exist. In the spec. they even note that this can happen while a file is open, at it crosses the 4GB boundary! > Pretend they are fixed length files? But NFS (and Unix) measure file > length in bytes, while RSX measure it in blocks. Or should I pretend > they are STREAM files? Which makes them rather difficult to play with, > but which might be more approriate, except when we really talk about > binary files, which might make sense to say that they are fixed length > files. The opaque model for NFS seems to indicate that your write data blocks to the server, and read them back. Is this format only for text files? So programs running on RSX can read disk blocks directly and process accordingly? That would allow for conversion programs to be written for either side. >>> I could go on about binary files as well, where you can hit >>> the same problems... >>> And then we have things like owners and file protections, >>> which don't map right... Owner and file protection is also well known. (Especially for DOS which has none of either.) In some cases special servers exist to do the conversion, but otherwise NFS works with numeric UID and GID and the usual unix rwx protections. As well as I remember, the rwx idea came from DEC systems, so might work with RSX. >>> In VMS, this is solved by forcing files on NFS to always have the >>> STREAM_LF format. That is a possibility under RSX as well, since you do >>> have a STREAM format for RMS. However, FCS have no clue about that >>> format, and just about no program can deal with it. So it wouldn't be >>> very useful. I don't remember ever using NFS on VAX. I will have to get my VAX/VMS system running again. >> Well, I was suggesting it mostly such that it would only ever >> be read by the RSX system. That is, as a replacement for older >> disk hardware. It would be nice to be able to read/write from >> other systems, but not required. > For me personally, having an NFS implementation in RSX which can only > read/write/see/understand files created from RSX is rather meaningless. > If I need disk, I have no problems hanging another SCSI disk on my machine. > And the same is true for people with emulators. The number of people > with only old, legacy disks, but modern enough machines to be able to > run my TCP/IP will probably be extremely low. (snip on filename processing) >> If it is done in the file system before that limitation occurs, >> then it shouldn't be a problem. I don't know the RSX file >> access code at all, though. There is, as I said, the problem of >> programs not allowing for enough characters in a file name. > The filename mangling is done before the ACP is ever hit. It's all > inside the user program code. No chance of catching it before that. In > many cases, it's even mangled at compilation time. I believe this is an old problem, too. Consider, for example, the 8.3 file name mapping done by windows. Ugly, but it does work. > And anything you implement, which would possibly be useful will only > step in at the ACP level. -- glen ^ permalink raw reply [flat|nested] 146+ messages in thread
* Re: QBUS Prototyping 2010-04-17 3:15 ` glen herrmannsfeldt @ 2010-04-17 21:00 ` Johnny Billquist 2010-04-18 0:31 ` glen herrmannsfeldt 0 siblings, 1 reply; 146+ messages in thread From: Johnny Billquist @ 2010-04-17 21:00 UTC (permalink / raw) glen herrmannsfeldt wrote: > In alt.sys.pdp11 Johnny Billquist <bqt@softjar.se> wrote: > (snip about NFS where I wrote) > >>> That, and that it lets you see any files that could be under >>> the mount point. > >> Part of the fact that you export disks, and not file systems, yes. The >> files "hidden" by a mount point are still there on the disk. >> It might seem a bit weird if you look at it from a certain angle, >> but it makes perfect sense from another angle. :-) > > But also it is where you see that an NFS server works at a lower > level, in terms of file systems, than the client. Hmm. Maybe we have been talking past each other. I have never (to my knowledge) claimed that the server work at a high level. On the ocntrary. My problem is exactly that the server is working at a low level. Had the server been working at a high level, I believe it would be easy. Meaning a lot of intelligence must go into the client, which means (in this case) the RSX side, where we least can afford it. >>> A problem well known in the Apple world. In Macintosh file systems, >>> files have a data fork (the normal part) and resource fork >>> (where data like you mention goes). It is normally handled in >>> NFS, or on other file systems, with an extra file somewhere. >>> The ones I remember put an extra subdirectory in each directory, >>> sometimes with a hidden name (such as .RESOURCE_FORK) and put >>> the data in there. Not great, but it does work. It could >>> also be done with another file in the same directory with a >>> different name. > >> Ugh! Hmm, yes, that could be doable, but definitely not a nice >> or neat solution. > >> It runs the risk of people messing with those "extra" directories >> and files on the other end. > > Well, the client (on said system) could block access to the special > directories or files. They would be visible on other systems, though. It's not the client side that worries me here, but the server side. Those files will be native files and directories on the server, meaning you can access them directly there, and mess things up when the client then use them. > In the NFS file system model, section 1.4.3 of NFSv4: > > "The server filesystem is hierarchical with the regular files > contained within being treated as opaque byte streams." > > It seems that NFSv4 allows UTF8 coding for file names, but file > data is considered opaque (to the server). UTF-8 is a totally different issue, which have nothing to do with this. UTF-8 is just a way of coding Unicode into 8-bit bytes. If your filenames consist of 8-bit bytes, and all values are allowable, then you can parse your filename as UTF-8, if you wish to do so. You can also parse it as LATIN-1, and get a different file name for the same sequence of bytes. It's all just a question of interpretation, and not something the file system have any clue about how you do/want to do. As for my "problem", the quoted paragraph pretty nicely wraps it up. Files are treated as opaque byte streams. In RSX, files are not opaque byte streams... > From the NFSv3 specifications: > > "NFS servers are dumb and NFS clients are smart. It is the clients > that do the work requried to convert generalized file access that > the servers provide into a file access method that is useful to > applications and users." Indeed. And I believe that is the same between NFSv3 and NFSv4. And my problem is exactly that placing a lot of smarts in the NFS client is difficult. >>>> Second, depending on the contents of that data, the file is processed >>>> differently. For example, a normal text file in RSX is actually >>>> represented by a 2-byte length field, followed by the data. No CR or LF >>>> is included in the record. And records are aligned on even addresses. >>>> So, if you read a text file over NFS, you need to fake something for the >>>> meta-data, and then you need to read the lines from the file, and at >>>> each LF, you need to split the data up. > >>> I believe that there are systems that convert between LF terminated >>> and CRLF terminated records while doing NFS I/O. Not that I would >>> do that, though. > >> Hmm. It would be nice if you could name a system that do, so that I >> could check it out. > > I have used two NFS implementations for DOS/Windows systems. > PCNFS from Sun, in the MSDOS days, and SFU3.5 (services for unix) > written by Interix and available free from Microsoft. > (It works with Win2K, XP, and Server 2003.) I believe both support > client side (and mount time option) to convert between CRLF and LF > terminated lines. Many systems, such as current Linux, include > the unix2dos and dos2unix programs to convert to/from CRLF > terminated lines. I've used SFU, and if I remember right, it does not do any translations at all. Files accessed from Unix will have CR+LF line endings if they are text files, while files accessed from Windows (and created on Unix) will be files with only LF at line ends. Hopefully, the tools used accepts both kind of line endings, but occasionally things get rather ugly when you have this setup. There is also a Unix-like environment you can run on Windows (the names escapes me at the moment), but that one cause the same issues as well. > Presumably such mount points should not be used for executable > files, unless the NFS client can figure that out and not translate > them. Also, the conversion is also needed, for example, if > files are transfered through tape, direct mounting of disks > (such as USB drives), or other file transfer methods. They work very fine for executables. The binary file transports perfectly between Unix and Windows. It's the text files that causes issues. But for RSX the problem is much worse, since RSX have a whole bunch of different file formats, and basically none of them match particularly well to Unix. The two that do are fixed length binary files, and STREAM files. The latter are only understood by RMS, and not FCS though, which limits their usability. >>>> However, NFS don't actually read a record at a time, but reads >>>> a disk block at a time. > >>> I believe that the client can read any size desired up to the >>> server specified maximum. Commonly that would be a multiple >>> of the disk block size, but I don't believe that is required. > >> I was pretty sure it was disk blocks. Yes, you can specify that it >> should be multiples of 512 byte blocks, but that's just for higher >> throughput. NFS will adjust to the lower value of the two sides when >> client and server talk. > > The NFS READ and WRITE requests take a byte offset and byte > length specifier. There are complications due to EOF, which it > seems where improved in NFSv3, but at least back to NFSv2 they > are specified at byte boundaries. Ok. I had to read through the NFS rfc. Yet are right, the operations are not on blocks, but bytes. However, that helps nothing. What would have helped would have been if they had operated on records... In RSX, basic operations are done on blocks. And a block is 512 bytes when we talk disks. However, each program has then a library which deals with the unblocking of data, unlike in Unix, where the kernel does this. So, user applications always expects to see raw disk blocks, with the record information in them. And then the user program deblocks the data, presenting a record at the time to the application. This code is eoither FCS or RMS in RSX, and it's a library that you can either link into your own code, or else use as a shared library. This code is the part that do all the filename parsing, the directory lookups, directory manipulations, and so on. And this code also is the one managing the meta-data for the files, and decide how to interpret the contents of the file, based on the meta data. So, if you read a text file from Unix, and expect to present it to an RSX application, you need to read some (unknown) amount of data from the Unix server, pack this into a 512 byte block for the RSX operation, with record lengths between the record of data, and padded appropriately, and pass that 512 byte block to the user application. And the exact offset from which to read is also unknown, except for offset 0. >>>> And with each line split, the LF removed, and 2 bytes >>>> of length added, plus a possible padding byte, means that a disk block >>>> from NFS will end up being slightly more that one disk block under RSX. >>>> And of course, the opposite needs to be done when writing. >>>> And you don't even know if it actually is a text file, for which this >>>> should be done. > >>> The client should know that an process accordingly. > >> The client would need to know, no matter how. The point is that the >> length of the file possible changes as an effect, and by how much is >> impossible to know except by processing the whole file. And if I'm right >> about blocks, it would introduce an extra level of buffering, since >> you'd need to repack disk blocks, and one block access might result in >> two accesses to the other end, and so on. > > As above, any such conversions are done by the NFS client. Exactly. And that means the code inside RSX. Which needs to then read through the whole file to calculate the actual length of the file, once the conversions have been done, in order to then be able to give a correct file size, and end pointer to the user application. That means a lot of work just because you open the file. Meaning very slow, and reading through a lot of file for nothing. On the client side. Which also means a lot of network traffic. > It seems that IBM has gone through this with z/OS (previously MVS) > and NFS. See: httpL//publibz.boulder.ibm.com/epubs/pdf/cpn1ug00.pdf Ah, yes. Reading through that paper now. And they have to deal with exactly the same issues, and the solution is the same. For the server side, serving from VMS to Unix systems, they have to linearly read through a file to find the correct point, since they also deal with records, and no streams of bytes. In that case, the intelligence have to be in the server, since it's the z/OS responsibility to make it look the same way as a Unix file, even though the backend store is not. And the same goes in reverse too. It is the z/OS client which have to serialize/deserialize data and so on, to adopt to the stream byte view, while the application locally wants to play with records... I causes serious performance problems, as well as being lots of code. I'm not saying it can't be done, just that I'm not to keen on implementing this all. >>>> And changing the lengths also mean that any seeks cannot be >>>> converted at all, since you don't know where that actually is >>>> on the file because of record length differences. > > Yes this problem is well known, even for text files in standard C. > Note the restrictions on fseek/ftell. Yes. But the fact that the problem is known will in no way make it solved. Let's play with the fseek/ftell here for a second. C stipulates that you can only do fseek to a value previously returned by ftell. So, we have a (two actually) C compilers on RSX. You you call ftell in them, you�ll get some value back, which is based on what FCS thinks. This will basically be a value telling a block, and a byte offset within that block, to which you then can do an fseek. Assuming we were to use NFS here, you would still get such a coded value by ftell. When you then call fseek, you'd be passing that same value in again. Giving a disk block, and an offset within that disk block where the record starts. However, the file, served over NFS don't actually look like this. It is a stream of bytes, remember? So you would have to start reading from the beginning of the file, catching each LF, mark that as a record separator, round up your position to where the next record would start, and keep counting until you hit the right disk block, and right offset, when (hopefully) and record would begin. All to fulfill the very restrictive definition on how fseek/ftell are assured to work in C. >>> Personally, I believe that you shouldn't change the length. >>> Write the bytes as seen by the client, and leave it up to other >>> systems to process accordingly. This problem should also occur with >>> some IBM systems, where record structure is not stored in the file, >>> but otherwise known. I haven't used NFS on such systems to know >>> how it is done, though. > >> Ok. So totall non-interoperability over NFS. What should I do with files >> that were created on one side, when they are accessed on the other side? >> Pretend they don't exist? That can cause interesting problems of its own. > > It seems that there are some "pretend they don't exist" problems > already. One comes with case sensitivity. If the server has two > files with names that differ only in case, how can they be > accessed by a case insensitive client (DOS/Windows or Macintosh, > including OS X)? Or the name may be too long for the client. Indeed. But should I do that for *all* files, just because I might have to do it for some? >> Pretend they are fixed length files? But NFS (and Unix) measure file >> length in bytes, while RSX measure it in blocks. Or should I pretend >> they are STREAM files? Which makes them rather difficult to play with, >> but which might be more approriate, except when we really talk about >> binary files, which might make sense to say that they are fixed length >> files. > > The opaque model for NFS seems to indicate that your write data > blocks to the server, and read them back. Is this format only > for text files? So programs running on RSX can read disk blocks > directly and process accordingly? That would allow for conversion > programs to be written for either side. Oh sure. If you aren't really interested in NFS as a file system, but just as a file transportation device, then sure. But why use NFS in that case. FTP will work equally fine. In RSX, programs *always* read/write disk blocks. There is nothing else. All else are code that exist inside the user program. >>>> I could go on about binary files as well, where you can hit >>>> the same problems... >>>> And then we have things like owners and file protections, >>>> which don't map right... > > Owner and file protection is also well known. (Especially for > DOS which has none of either.) In some cases special servers > exist to do the conversion, but otherwise NFS works with numeric > UID and GID and the usual unix rwx protections. As well as I > remember, the rwx idea came from DEC systems, so might work > with RSX. Exist, yes. Map right, no. In RSX, user and group identities are only 8 bits. And you have four access bits for each category, not 3 like in Unix. And some of those bits have meanings that don't translate. And user and group are tightly connected in RSX. A user is actually identified by the user and group value as a combination. You can have different users with the same user field value, but different group values. They are different users in RSX, unlike in Unix. You could say that uids (in RSX) are gid local. >>> If it is done in the file system before that limitation occurs, >>> then it shouldn't be a problem. I don't know the RSX file >>> access code at all, though. There is, as I said, the problem of >>> programs not allowing for enough characters in a file name. > >> The filename mangling is done before the ACP is ever hit. It's all >> inside the user program code. No chance of catching it before that. In >> many cases, it's even mangled at compilation time. > > I believe this is an old problem, too. Consider, for example, > the 8.3 file name mapping done by windows. Ugly, but it does work. Like I said from the start - I don't consider filename issues to be a problem. That part is easy... But since you brought it up, I thought I'd just explain a little about how it works in RSX. 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 ^ permalink raw reply [flat|nested] 146+ messages in thread
* Re: QBUS Prototyping 2010-04-17 21:00 ` Johnny Billquist @ 2010-04-18 0:31 ` glen herrmannsfeldt 2010-04-18 13:23 ` Johnny Billquist 0 siblings, 1 reply; 146+ messages in thread From: glen herrmannsfeldt @ 2010-04-18 0:31 UTC (permalink / raw) In alt.sys.pdp11 Johnny Billquist <bqt@softjar.se> wrote: > glen herrmannsfeldt wrote: >> In alt.sys.pdp11 Johnny Billquist <bqt@softjar.se> wrote: >> (snip about NFS where I wrote) (snip) > Hmm. Maybe we have been talking past each other. I have never (to my > knowledge) claimed that the server work at a high level. On the > ocntrary. My problem is exactly that the server is working at a low > level. Had the server been working at a high level, I believe it would > be easy. Yes I was just mentioning it, not that I thought you didn't understand it, but how it is actually visible. > Meaning a lot of intelligence must go into the client, which means > (in this case) the RSX side, where we least can afford it. Well, with memory mapping you should at least be able to find a place to put the code. I am also interested in NFS for CP/M, which will likely also need some memory mapping to have enough room for it. (snip on Macintosh and resource forks) >>> It runs the risk of people messing with those "extra" directories >>> and files on the other end. >> Well, the client (on said system) could block access to the special >> directories or files. They would be visible on other systems, though. > It's not the client side that worries me here, but the server side. > Those files will be native files and directories on the server, meaning > you can access them directly there, and mess things up when the client > then use them. Yes, it is another one of the "don't do that" situations. >> In the NFS file system model, section 1.4.3 of NFSv4: >> "The server filesystem is hierarchical with the regular files >> contained within being treated as opaque byte streams." >> It seems that NFSv4 allows UTF8 coding for file names, but file >> data is considered opaque (to the server). > UTF-8 is a totally different issue, which have nothing to do with this. Yes, I was just mentioning it because the spec. spends a lot of time discussing it. (snip) > As for my "problem", the quoted paragraph pretty nicely wraps it up. > Files are treated as opaque byte streams. In RSX, files are not opaque > byte streams... >> From the NFSv3 specifications: >> "NFS servers are dumb and NFS clients are smart. It is the clients >> that do the work requried to convert generalized file access that >> the servers provide into a file access method that is useful to >> applications and users." > Indeed. And I believe that is the same between NFSv3 and NFSv4. > And my problem is exactly that placing a lot of smarts in the > NFS client is difficult. Difficult because it takes a lot of code? Add more memory unless you are out of physical address space. You could also put a processor on the interface card to do some of the work. >>>>> Second, depending on the contents of that data, the file is processed >>>>> differently. For example, a normal text file in RSX is actually >>>>> represented by a 2-byte length field, followed by the data. No CR or LF >>>>> is included in the record. And records are aligned on even addresses. >>>>> So, if you read a text file over NFS, you need to fake something for the >>>>> meta-data, and then you need to read the lines from the file, and at >>>>> each LF, you need to split the data up. >>>> I believe that there are systems that convert between LF terminated >>>> and CRLF terminated records while doing NFS I/O. Not that I would >>>> do that, though. >>> Hmm. It would be nice if you could name a system that do, so that I >>> could check it out. >> I have used two NFS implementations for DOS/Windows systems. >> PCNFS from Sun, in the MSDOS days, and SFU3.5 (services for unix) >> written by Interix and available free from Microsoft. (snip) > I've used SFU, and if I remember right, it does not do any translations > at all. Files accessed from Unix will have CR+LF line endings if they > are text files, while files accessed from Windows (and created on Unix) > will be files with only LF at line ends. I believe it is a mount option. I can't find the manual right now describing it, though. > Hopefully, the tools used accepts both kind of line endings, but > occasionally things get rather ugly when you have this setup. I agree. I would rather convert the files myself. > There is also a Unix-like environment you can run on Windows (the names > escapes me at the moment), but that one cause the same issues as well. >> Presumably such mount points should not be used for executable >> files, unless the NFS client can figure that out and not translate >> them. Also, the conversion is also needed, for example, if >> files are transfered through tape, direct mounting of disks >> (such as USB drives), or other file transfer methods. > They work very fine for executables. The binary file transports > perfectly between Unix and Windows. It's the text files > that causes issues. I meant that text file translating mounts should not be used with executable files. > But for RSX the problem is much worse, since RSX have a whole bunch of > different file formats, and basically none of them match particularly > well to Unix. > The two that do are fixed length binary files, and STREAM files. The > latter are only understood by RMS, and not FCS though, which limits > their usability. (snip on blocking and NFS) >> The NFS READ and WRITE requests take a byte offset and byte >> length specifier. There are complications due to EOF, which it >> seems where improved in NFSv3, but at least back to NFSv2 they >> are specified at byte boundaries. > Ok. I had to read through the NFS rfc. Yet are right, the operations are > not on blocks, but bytes. However, that helps nothing. What would have > helped would have been if they had operated on records... It is likely that it is often done in multiples of 512, and is likely faster that way. > In RSX, basic operations are done on blocks. And a block is 512 bytes > when we talk disks. However, each program has then a library which > deals with the unblocking of data, unlike in Unix, where the > kernel does this. Yes, things changed over the years as memory size increased. The MVS file usual system is still pretty much that from OS/360. S/360 (the hardware, distinguished from OS/360 software) disk drives allow the user to specify the block size. There is no fixed size (like 512), but anything from 1 to the length of a disk track is allowed. It is convenient for small memory systems in that buffers only need to be as big as disk blocks. Small memory systems use smaller block sizes (80 is popular). Larger systems, for higher performace, use larger block sizes. Unlike unix, where the system buffers data blocks, the OS/360 model writes data directly from the disk into user buffers. Among other features of OS/360 is locate mode I/O. When reading, data goes directly into the desired location. For writing, the I/O system supplies a buffer address, data is written directly into the buffer, and then it is scheduled to be written. In days past, it saved memory and was faster. It still seems useful in avoiding one copy of the data, even on more modern systems. > So, user applications always expects to see raw disk blocks, with the > record information in them. And then the user program deblocks the data, > presenting a record at the time to the application. This code is eoither > FCS or RMS in RSX, and it's a library that you can either link into your > own code, or else use as a shared library. This code is the part that do > all the filename parsing, the directory lookups, directory > manipulations, and so on. And this code also is the one managing the > meta-data for the files, and decide how to interpret the contents of the > file, based on the meta data. Yes, so according to the NFS model, those disk blocks would be passed directly between server and client. Note the difference with z/OS (descendent from MVS and OS/360) where the record structure actually exists on the disk hardware. Among the features of the IBM disk controller is a search for a record by key. You can specify a record (block) key and the disk hardware will search (linearly) through the file until it finds the record (block) with that key. It made a lot of sense in S/360 days, but processors speeds have increased much faster than disk speeds, and memory sizes have also increased. That is the reason for the extra complication for the z/OS NFS server. > So, if you read a text file from Unix, and expect to present it to an > RSX application, you need to read some (unknown) amount of data from the > Unix server, pack this into a 512 byte block for the RSX operation, with > record lengths between the record of data, and padded appropriately, and > pass that 512 byte block to the user application. The way I would solve that case would be to give the blocks to RSX directly, and have the user run some conversion program. This program would read unix file blocks and write RSX file records. They could be written back to the file system in RSX format, to later be read by RSX application programs. > And the exact offset from which to read is also unknown, > except for offset 0. What some IBM C systems do is, instead of supplying the byte offset as the return from ftell(), they return (record number)*32768+(offset into record). (The usual files structures don't allow records larger than 32767 bytes.) They do that for text files, and for RECFM=V (variable length records). The OS/360 (and successor) file system keeps track of blocks but not bytes. In the case of fixed length records (blocked or not), it is easy to find the block number and byte offset in normal conditions. Even so, there is one complication. The last block of a file can be smaller than the rest. (It will still be a multiple of the record length, though.) If you append to a file, new blocks are added after the short block, such that record calculations can be wrong. For RECFM=V, the blocks are packed together as allowed by the disk hardware, again complicating the calculation of block number. (snip) >>>> The client should know that an process accordingly. >>> The client would need to know, no matter how. The point is that the >>> length of the file possible changes as an effect, and by how much is >>> impossible to know except by processing the whole file. And if I'm right >>> about blocks, it would introduce an extra level of buffering, since >>> you'd need to repack disk blocks, and one block access might result in >>> two accesses to the other end, and so on. >> As above, any such conversions are done by the NFS client. > Exactly. And that means the code inside RSX. Which needs to then read > through the whole file to calculate the actual length of the file, once > the conversions have been done, in order to then be able to give a > correct file size, and end pointer to the user application. That means a > lot of work just because you open the file. Meaning very slow, and > reading through a lot of file for nothing. On the client side. Which > also means a lot of network traffic. But only for non-native files. >> It seems that IBM has gone through this with z/OS (previously MVS) >> and NFS. See: httpL//publibz.boulder.ibm.com/epubs/pdf/cpn1ug00.pdf > Ah, yes. Reading through that paper now. > And they have to deal with exactly the same issues, and the solution is > the same. For the server side, serving from VMS to Unix systems, they > have to linearly read through a file to find the correct point, since > they also deal with records, and no streams of bytes. > In that case, the intelligence have to be in the server, since it's the > z/OS responsibility to make it look the same way as a Unix file, even > though the backend store is not. > And the same goes in reverse too. It is the z/OS client which have to > serialize/deserialize data and so on, to adopt to the stream byte view, > while the application locally wants to play with records... And the additional complication of EBCDIC to/from ASCII translation (for text files). > I causes serious performance problems, as well as being lots of code. > I'm not saying it can't be done, just that I'm not to keen on > implementing this all. (snip) >> Yes this problem is well known, even for text files in standard C. >> Note the restrictions on fseek/ftell. > Yes. But the fact that the problem is known will in no way make it solved. > Let's play with the fseek/ftell here for a second. C stipulates that you > can only do fseek to a value previously returned by ftell. > So, we have a (two actually) C compilers on RSX. You you call ftell in > them, you?ll get some value back, which is based on what FCS thinks. > This will basically be a value telling a block, and a byte offset within > that block, to which you then can do an fseek. Sounds like what IBM does in some cases, as above. > Assuming we were to use NFS here, you would still get such a coded value > by ftell. When you then call fseek, you'd be passing that same value in > again. Giving a disk block, and an offset within that disk block where > the record starts. > However, the file, served over NFS don't actually look like this. It is > a stream of bytes, remember? So you would have to start reading from the > beginning of the file, catching each LF, mark that as a record > separator, round up your position to where the next record would start, > and keep counting until you hit the right disk block, and right offset, > when (hopefully) and record would begin. Well, I would hope that most of the time you would be reading RSX files, where the block have the RSX structure to them. (Opaque to the NFS server.) In the unfortunate case where that isn't true, and also that you can't just do sequential access until you find EOF, yes you have to go through the extra work. > All to fulfill the very restrictive definition on how > fseek/ftell are assured to work in C. (snip) >>> Ok. So totall non-interoperability over NFS. What should I do with files >>> that were created on one side, when they are accessed on the other side? >>> Pretend they don't exist? That can cause interesting problems of its own. >> It seems that there are some "pretend they don't exist" problems >> already. One comes with case sensitivity. If the server has two >> files with names that differ only in case, how can they be >> accessed by a case insensitive client (DOS/Windows or Macintosh, >> including OS X)? Or the name may be too long for the client. > Indeed. But should I do that for *all* files, just because I might have > to do it for some? As I said, my choice is conversion programs only when using the other file format. Much of the time data will only be read back on the same system that wrote it, and all is fine. >>> Pretend they are fixed length files? But NFS (and Unix) measure file >>> length in bytes, while RSX measure it in blocks. Or should I pretend >>> they are STREAM files? Which makes them rather difficult to play with, >>> but which might be more approriate, except when we really talk about >>> binary files, which might make sense to say that they are fixed length >>> files. >> The opaque model for NFS seems to indicate that your write data >> blocks to the server, and read them back. Is this format only >> for text files? So programs running on RSX can read disk blocks >> directly and process accordingly? That would allow for conversion >> programs to be written for either side. > Oh sure. If you aren't really interested in NFS as a file system, but > just as a file transportation device, then sure. But why use NFS in that > case. FTP will work equally fine. Well, ftp still has some of the problems, but yes that does help. > In RSX, programs *always* read/write disk blocks. There is nothing else. > All else are code that exist inside the user program. Then again, for ftp you need TCP, where you only need UDP to do NFS. (Well, there is tftp...) (snip) >> Owner and file protection is also well known. (Especially for >> DOS which has none of either.) In some cases special servers >> exist to do the conversion, but otherwise NFS works with numeric >> UID and GID and the usual unix rwx protections. As well as I >> remember, the rwx idea came from DEC systems, so might work >> with RSX. > Exist, yes. Map right, no. In RSX, user and group identities are only 8 > bits. And you have four access bits for each category, not 3 like in > Unix. And some of those bits have meanings that don't translate. > And user and group are tightly connected in RSX. A user is actually > identified by the user and group value as a combination. You can have > different users with the same user field value, but different group > values. They are different users in RSX, unlike in Unix. As explained in some of those documents, they don't even all translate unix to unix. One unix feature is the ability to open a file and then unlink (rm or delete) it. The file stays open and usable until it is closed by the last program with it open. That doesn't translate well to a stateless NFS server, so a unix NFS client actual does a rename instead of unlink to a temporary (hidden) file name. Normally, the client will remove the file when it is finally closed, but if the client crashes before that, the file will be left on the server. I belive that another case relates to the read and execute bits, in that a file can have execute but not read access. As the NFS server has no way to know what the client is doing with the bits, you can read such a file. It seems, then, that one maps protection bits as well as one can, but not always perfectly. > You could say that uids (in RSX) are gid local. NFS matches files by numeric UID and GID. That assumes that the all users have the same UID and GID on all client systems. Even more, it assumes that there are UID and GID. I believe that the PCNFS clients had special servers to get around that, I am not sure what Windows does. (At least NT has user IDs.) >>>> If it is done in the file system before that limitation occurs, >>>> then it shouldn't be a problem. I don't know the RSX file >>>> access code at all, though. There is, as I said, the problem of >>>> programs not allowing for enough characters in a file name. >>> The filename mangling is done before the ACP is ever hit. It's all >>> inside the user program code. No chance of catching it before that. In >>> many cases, it's even mangled at compilation time. >> I believe this is an old problem, too. Consider, for example, >> the 8.3 file name mapping done by windows. Ugly, but it does work. > Like I said from the start - I don't consider filename issues to be a > problem. That part is easy... > But since you brought it up, I thought I'd just explain a little about > how it works in RSX. OK, I remember Radix 50 from RT-11, and sixbit from TOPS-10. -- glen ^ permalink raw reply [flat|nested] 146+ messages in thread
* Re: QBUS Prototyping 2010-04-18 0:31 ` glen herrmannsfeldt @ 2010-04-18 13:23 ` Johnny Billquist 2010-04-18 16:58 ` glen herrmannsfeldt 2011-04-18 12:52 ` Bob Koehler 0 siblings, 2 replies; 146+ messages in thread From: Johnny Billquist @ 2010-04-18 13:23 UTC (permalink / raw) glen herrmannsfeldt wrote: > In alt.sys.pdp11 Johnny Billquist <bqt@softjar.se> wrote: >> glen herrmannsfeldt wrote: >>> In alt.sys.pdp11 Johnny Billquist <bqt@softjar.se> wrote: >> Meaning a lot of intelligence must go into the client, which means >> (in this case) the RSX side, where we least can afford it. > > Well, with memory mapping you should at least be able to find > a place to put the code. I am also interested in NFS for CP/M, > which will likely also need some memory mapping to have enough > room for it. Yes. I can play around with memory mapping in RSX. And yes, I don't consider this an impossible mission. Just one that gives enough headaches that I'm not keen on doing it. >> And my problem is exactly that placing a lot of smarts in the >> NFS client is difficult. > > Difficult because it takes a lot of code? Add more memory unless > you are out of physical address space. You could also put a processor > on the interface card to do some of the work. I have enough physical memory in a PDP-11 to manage. So it's just difficult because it's a lot of code, and I also have to design it so that I can map in different parts as appropriate. >>> The NFS READ and WRITE requests take a byte offset and byte >>> length specifier. There are complications due to EOF, which it >>> seems where improved in NFSv3, but at least back to NFSv2 they >>> are specified at byte boundaries. > >> Ok. I had to read through the NFS rfc. Yet are right, the operations are >> not on blocks, but bytes. However, that helps nothing. What would have >> helped would have been if they had operated on records... > > It is likely that it is often done in multiples of 512, and is > likely faster that way. Yes. It usually don't make sense to do it otherwise on a Unix system, since the OS does the deblocking afterwards anyway, so it's easier to just treat it the same was as other disk devices. And this design allows for blocksizes different thatn 512 without any problems. > Unlike unix, where the system buffers data blocks, the OS/360 > model writes data directly from the disk into user buffers. > Among other features of OS/360 is locate mode I/O. When reading, > data goes directly into the desired location. For writing, > the I/O system supplies a buffer address, data is written directly > into the buffer, and then it is scheduled to be written. Same in RSX. It's optional for the programmer to do this, but it saves a lot of time not having to do the extra copying. > Yes, so according to the NFS model, those disk blocks would be passed > directly between server and client. Note the difference with > z/OS (descendent from MVS and OS/360) where the record structure > actually exists on the disk hardware. Among the features of the > IBM disk controller is a search for a record by key. You can > specify a record (block) key and the disk hardware will search > (linearly) through the file until it finds the record (block) > with that key. It made a lot of sense in S/360 days, but processors > speeds have increased much faster than disk speeds, and memory > sizes have also increased. > > That is the reason for the extra complication for the z/OS > NFS server. You would want to implement the NFS server for RSX in exactly the same way, or it wouldn't be very useful. Atleast that is my opninion. Except that the server itself would need to do the deblocking, it's not done by the hardware. But the NFS server would have to go through the normal F11ACP in RSX. meaning that you cannot access anything but 512 byte blocks. So the byte offsets and sizes that might show up in NFS requests cannot be mapped directly to disk operations anyway. So you would need to run through disk blocks. And if the file accessed over NFS is a variable record file with implicit CRLF, I believe the NFS server should present the file as a stream of the contents, with CRLF appended after each record, the record lengths and paddings be removed, and there you are. Full transformation required. >> So, if you read a text file from Unix, and expect to present it to an >> RSX application, you need to read some (unknown) amount of data from the >> Unix server, pack this into a 512 byte block for the RSX operation, with >> record lengths between the record of data, and padded appropriately, and >> pass that 512 byte block to the user application. > > The way I would solve that case would be to give the blocks > to RSX directly, and have the user run some conversion program. > This program would read unix file blocks and write RSX file > records. They could be written back to the file system in > RSX format, to later be read by RSX application programs. Ah. Yes, now we're getting to the root of it all. Your solution is indeed doable, and much easier. But that basically means that you will have an NFS file system on RSX, from which you can basically only do one thing: use a special program to read/write files, with possible conversions. What is the point of that? That means you must definitely have local disk as well. The possible extension that the NFS client also can play RSX-style files, under special circumstances makes it possible to use the NFS mounted disks natively, but you'd have to (as a user) almost know which files are ok or not, or else your programs just barf at you when you try accessing many files. It's definitely an alternative solution. Worth considering... But for me, NFS looses a lot of its point if I am sortof incompatible with the rest of the NFS-aware world. I think it might even be difficult having two RSX systems talk NFS to each other with that solution (not that I see how any other solution would work either...). >> And the exact offset from which to read is also unknown, >> except for offset 0. > > What some IBM C systems do is, instead of supplying the byte > offset as the return from ftell(), they return > (record number)*32768+(offset into record). (The usual files > structures don't allow records larger than 32767 bytes.) Yes. And that was what I described the C system on RSX is doing. :-) And, as I pointed out, that still makes no difference, since it's all information on the local system. You have a second layer of translation in NFS, in addition to the one provided by the file system, which the C functions are adopted to. >>> As above, any such conversions are done by the NFS client. > >> Exactly. And that means the code inside RSX. Which needs to then read >> through the whole file to calculate the actual length of the file, once >> the conversions have been done, in order to then be able to give a >> correct file size, and end pointer to the user application. That means a >> lot of work just because you open the file. Meaning very slow, and >> reading through a lot of file for nothing. On the client side. Which >> also means a lot of network traffic. > > But only for non-native files. Yes. But then you have the question how you tell if a file is "native" to the client. NFS don't tell... And of course, a native file in the RSX case means we need information not possible to store in NFS, or Unix. >>> The opaque model for NFS seems to indicate that your write data >>> blocks to the server, and read them back. Is this format only >>> for text files? So programs running on RSX can read disk blocks >>> directly and process accordingly? That would allow for conversion >>> programs to be written for either side. > >> Oh sure. If you aren't really interested in NFS as a file system, but >> just as a file transportation device, then sure. But why use NFS in that >> case. FTP will work equally fine. > > Well, ftp still has some of the problems, but yes that does help. Actually, ftp don't have these problems. ftp was designed to walk around these exact problems. So, ftp deals with records, where each side are free to perform whatever stuff needed to figure out what a record is, how to store and retrieve it, and so on. So for Unix systems, if you transfer in ASCII mode, a record is the data between two LF. The data is sent over, with the FTP definition of record terminator, and the other side then strip of the FTP record terminator, and writes the record to disk, with whatever tricks needed on that system (like adding an LF on a Unix system). To, and from RSX systems in this case will obviously work just fine. Binary files are sent without this transformation done, and things will survive fine as well. You can even send special meta-information about files in ftp. Which means one RSX could send any type of file to another RSX system with all file attributes preserved. Some of those files cannot be transferred to another system at all, without corruption (well, you could probably make it compatible with VMS, so that they could interoperate correctly in this aspect, but not very many other systems). This is a much more attractive problem to solve, since it is way more useful than NFS in my mind. FTP and TELNET for RSX are the two most needed programs, in my opinion. SSH would be nice, but realistically, the CPU is way to slow to handle the math to make SSH work. >> In RSX, programs *always* read/write disk blocks. There is nothing else. >> All else are code that exist inside the user program. > > Then again, for ftp you need TCP, where you only need UDP > to do NFS. (Well, there is tftp...) Indeed. TFTP I have already done. So I can already transfer files back and forth to RSX. I'm working on TCP (on and off). It's a complex protocol, but still not that difficult to actually do. Heck, for 2.11BSD, it's already there... >>> Owner and file protection is also well known. (Especially for >>> DOS which has none of either.) In some cases special servers >>> exist to do the conversion, but otherwise NFS works with numeric >>> UID and GID and the usual unix rwx protections. As well as I >>> remember, the rwx idea came from DEC systems, so might work >>> with RSX. > >> Exist, yes. Map right, no. In RSX, user and group identities are only 8 >> bits. And you have four access bits for each category, not 3 like in >> Unix. And some of those bits have meanings that don't translate. >> And user and group are tightly connected in RSX. A user is actually >> identified by the user and group value as a combination. You can have >> different users with the same user field value, but different group >> values. They are different users in RSX, unlike in Unix. > > As explained in some of those documents, they don't even all > translate unix to unix. One unix feature is the ability to > open a file and then unlink (rm or delete) it. The file stays > open and usable until it is closed by the last program with > it open. That doesn't translate well to a stateless NFS server, > so a unix NFS client actual does a rename instead of unlink > to a temporary (hidden) file name. Normally, the client will > remove the file when it is finally closed, but if the client > crashes before that, the file will be left on the server. Well, that's not a file attribute, but yes. NFS semantics don't exactly match Unix semantics at all times. The same problems you see in Unix here are relevant for RSX as well. (RSX semantics in how files live more match Unix than NFS.) > I belive that another case relates to the read and execute bits, > in that a file can have execute but not read access. As the > NFS server has no way to know what the client is doing with > the bits, you can read such a file. It seems, then, that one > maps protection bits as well as one can, but not always > perfectly. The concept of execute protection don't exist in RSX. However, RSX differs betweem write access and extend access. Write access only allows you to write in the file, in blocks already existing in the file. Extend access allows you to grow the file. And then you have delete access for files. Unlike Unix, where you don't ever actually delete a file. In Unix, you just unlink files, and when there are no references to a file, it is deleted. In RSX, you can have references to deleted file, and files can exist, even though there are no references to it. In Unix-speak, link/unlink are separate operations from file creation/deletion. In order to "delete" a file in Unix, you need to have write access to the directory in which the file have a reference. In RSX you need to have delete rights to that specific file to delete the file. You need to have write access to the directory in order to remove the reference. I can go on with more conflicting ways between RSX and Unix with regards to file protections... And as I said, in RSX you have four groups, not three as in Unix. You have SYSTEM, OWNER, GROUP and WORLD. The system protection mask is applied to users who are in groups 0 to 7. >> You could say that uids (in RSX) are gid local. > > NFS matches files by numeric UID and GID. That assumes > that the all users have the same UID and GID on all client systems. > Even more, it assumes that there are UID and GID. I believe > that the PCNFS clients had special servers to get around that, > I am not sure what Windows does. (At least NT has user IDs.) Yes, I was just pointing out that the way Unix and RSX use thses differ. In Unix you have the UID and GID. Which are two independen numbers. In RSX you have something called a UIC, which consist of two parts. A group number and a member number. And they are connected. >> Like I said from the start - I don't consider filename issues to be a >> problem. That part is easy... >> But since you brought it up, I thought I'd just explain a little about >> how it works in RSX. > > OK, I remember Radix 50 from RT-11, and sixbit from TOPS-10. RSX use Radix50, though. Just to clarify. In RSX, a filename is 9+3 R5 characters (4 words total). And then you have a file version number, which is a 5th word. (All words are 16 bits.) And this in turn is then translated into a File ID, which is a 48-bit number, consisting of 3 16-bit parts, which is what all file operations are using when doing file operations. The FileID is very similar to the i-node number in Unix. 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 ^ permalink raw reply [flat|nested] 146+ messages in thread
* Re: QBUS Prototyping 2010-04-18 13:23 ` Johnny Billquist @ 2010-04-18 16:58 ` glen herrmannsfeldt 2010-04-18 23:02 ` Johnny Billquist 2011-04-18 12:52 ` Bob Koehler 1 sibling, 1 reply; 146+ messages in thread From: glen herrmannsfeldt @ 2010-04-18 16:58 UTC (permalink / raw) In alt.sys.pdp11 Johnny Billquist <bqt@softjar.se> wrote: (snip) >> Unlike unix, where the system buffers data blocks, the OS/360 >> model writes data directly from the disk into user buffers. >> Among other features of OS/360 is locate mode I/O. When reading, >> data goes directly into the desired location. For writing, >> the I/O system supplies a buffer address, data is written directly >> into the buffer, and then it is scheduled to be written. > Same in RSX. It's optional for the programmer to do this, but it saves a > lot of time not having to do the extra copying. But only in 512 byte blocks, right? The S/360 hardware formats the disk blocks to whatever size you want. For RECFM=V, blocks are different sizes and there is a formula to tell you how they pack onto a disk track. For example, the IBM 3330 track holds 13165 bytes, with a 135 byte overhead (header) for each block. You can write one block of 13030 bytes, or 96 blocks of one byte. >> Yes, so according to the NFS model, those disk blocks would be passed >> directly between server and client. Note the difference with >> z/OS (descendent from MVS and OS/360) where the record structure >> actually exists on the disk hardware. Among the features of the >> IBM disk controller is a search for a record by key. You can >> specify a record (block) key and the disk hardware will search >> (linearly) through the file until it finds the record (block) >> with that key. It made a lot of sense in S/360 days, but processors >> speeds have increased much faster than disk speeds, and memory >> sizes have also increased. >> That is the reason for the extra complication for the z/OS >> NFS server. > You would want to implement the NFS server for RSX in exactly the same > way, or it wouldn't be very useful. Atleast that is my opninion. Except > that the server itself would need to do the deblocking, it's not done by > the hardware. > But the NFS server would have to go through the normal F11ACP in RSX. > meaning that you cannot access anything but 512 byte blocks. So the byte > offsets and sizes that might show up in NFS requests cannot be mapped > directly to disk operations anyway. So you would need to run through > disk blocks. And if the file accessed over NFS is a variable record file > with implicit CRLF, I believe the NFS server should present the file as > a stream of the contents, with CRLF appended after each record, the > record lengths and paddings be removed, and there you are. Full > transformation required. So far I have thought that an RSX based NFS client would be the most useful. For NFS server, I suppose you would want to do that. It isn't likely that a unix based NFS server is going to implement special RSX features, though. >>> So, if you read a text file from Unix, and expect to present it to an >>> RSX application, you need to read some (unknown) amount of data from the >>> Unix server, pack this into a 512 byte block for the RSX operation, with >>> record lengths between the record of data, and padded appropriately, and >>> pass that 512 byte block to the user application. >> The way I would solve that case would be to give the blocks >> to RSX directly, and have the user run some conversion program. >> This program would read unix file blocks and write RSX file >> records. They could be written back to the file system in >> RSX format, to later be read by RSX application programs. > Ah. Yes, now we're getting to the root of it all. > Your solution is indeed doable, and much easier. But that basically > means that you will have an NFS file system on RSX, from which you can > basically only do one thing: use a special program to read/write files, > with possible conversions. > What is the point of that? That means you must definitely have local > disk as well. You can write the converted file back to the NFS disk. > The possible extension that the NFS client also can play RSX-style > files, under special circumstances makes it possible to use the NFS > mounted disks natively, but you'd have to (as a user) almost know which > files are ok or not, or else your programs just barf at you when you try > accessing many files. If you do map the RSX file names directly, then it will be easy. You could, for example, code the RSX Radix 50 filename in some strange way and only recognize native files in that form. For example, convert the Radix 50 16 bit words to hex and use that for a file name. Only such files would be visible to ordinary RSX programs. The conversion program would recognize both names. You could also have a program that you run before your actual program that tells the client what you want to do with the files. Clients are stateful, only servers are supposed to be stateless. > It's definitely an alternative solution. Worth considering... But for > me, NFS looses a lot of its point if I am sortof incompatible with the > rest of the NFS-aware world. I think it might even be difficult having > two RSX systems talk NFS to each other with that solution (not that I > see how any other solution would work either...). >>> And the exact offset from which to read is also unknown, >>> except for offset 0. >> What some IBM C systems do is, instead of supplying the byte >> offset as the return from ftell(), they return >> (record number)*32768+(offset into record). (The usual files >> structures don't allow records larger than 32767 bytes.) > Yes. And that was what I described the C system on RSX is doing. :-) > And, as I pointed out, that still makes no difference, since it's all > information on the local system. You have a second layer of translation > in NFS, in addition to the one provided by the file system, which the C > functions are adopted to. >>>> As above, any such conversions are done by the NFS client. >>> Exactly. And that means the code inside RSX. Which needs to then read >>> through the whole file to calculate the actual length of the file, once (snip) >> But only for non-native files. > Yes. But then you have the question how you tell if a file is "native" > to the client. NFS don't tell... And of course, a native file in the RSX > case means we need information not possible to store in NFS, or Unix. Well, as I said earlier you can store that in special files somewhere. You could also do it for directories, though I hadn't thought of that one before. >>>> The opaque model for NFS seems to indicate that your write data >>>> blocks to the server, (snip) >>> Oh sure. If you aren't really interested in NFS as a file system, but >>> just as a file transportation device, then sure. But why use NFS in that >>> case. FTP will work equally fine. >> Well, ftp still has some of the problems, but yes that does help. > Actually, ftp don't have these problems. > ftp was designed to walk around these exact problems. So, ftp deals with > records, where each side are free to perform whatever stuff needed to > figure out what a record is, how to store and retrieve it, and so on. > So for Unix systems, if you transfer in ASCII mode, a record is the data > between two LF. The data is sent over, with the FTP definition of record > terminator, and the other side then strip of the FTP record terminator, > and writes the record to disk, with whatever tricks needed on that > system (like adding an LF on a Unix system). Well, for example, if you ftp a tar file then you are still stuck. Since ftp isn't very convenient for directory trees that is very common. > To, and from RSX systems in this case will obviously work just fine. > Binary files are sent without this transformation done, and things will > survive fine as well. > You can even send special meta-information about files in ftp. Which > means one RSX could send any type of file to another RSX system with all > file attributes preserved. Some of those files cannot be transferred to > another system at all, without corruption (well, you could probably make > it compatible with VMS, so that they could interoperate correctly in > this aspect, but not very many other systems). > This is a much more attractive problem to solve, since it is way more > useful than NFS in my mind. > FTP and TELNET for RSX are the two most needed programs, in my opinion. > SSH would be nice, but realistically, the CPU is way to slow to handle > the math to make SSH work. >>> In RSX, programs *always* read/write disk blocks. There is nothing else. >>> All else are code that exist inside the user program. >> Then again, for ftp you need TCP, where you only need UDP >> to do NFS. (Well, there is tftp...) > Indeed. TFTP I have already done. So I can already transfer files back > and forth to RSX. > I'm working on TCP (on and off). It's a complex protocol, but still not > that difficult to actually do. Heck, for 2.11BSD, it's already there... >>>> Owner and file protection is also well known. (snip) >>> Exist, yes. Map right, no. In RSX, user and group identities are only 8 >>> bits. And you have four access bits for each category, not 3 like in >>> Unix. And some of those bits have meanings that don't translate. >>> And user and group are tightly connected in RSX. A user is actually >>> identified by the user and group value as a combination. You can have >>> different users with the same user field value, but different group >>> values. They are different users in RSX, unlike in Unix. If it is eight bits each, then you could translate to NFS UID which is, I believe, at least 16 bits. You could give a translate table to the client, though I don't know any unix based ones that do that. I am not sure how WinNT does UID. >> As explained in some of those documents, they don't even all >> translate unix to unix. (snip) > Well, that's not a file attribute, but yes. NFS semantics don't exactly > match Unix semantics at all times. The same problems you see in Unix > here are relevant for RSX as well. > (RSX semantics in how files live more match Unix than NFS.) >> I belive that another case relates to the read and execute bits, >> in that a file can have execute but not read access. As the >> NFS server has no way to know what the client is doing with >> the bits, you can read such a file. It seems, then, that one >> maps protection bits as well as one can, but not always >> perfectly. > The concept of execute protection don't exist in RSX. However, RSX > differs betweem write access and extend access. Write access only allows > you to write in the file, in blocks already existing in the file. Extend > access allows you to grow the file. > And then you have delete access for files. Unlike Unix, where you don't > ever actually delete a file. In Unix, you just unlink files, and when > there are no references to a file, it is deleted. In RSX, you can have > references to deleted file, and files can exist, even though there are > no references to it. In Unix-speak, link/unlink are separate operations > from file creation/deletion. > In order to "delete" a file in Unix, you need to have write access to > the directory in which the file have a reference. In RSX you need to > have delete rights to that specific file to delete the file. You need to > have write access to the directory in order to remove the reference. It isn't so obvious that all RSX attributes have to still work... > I can go on with more conflicting ways between RSX and Unix with regards > to file protections... > And as I said, in RSX you have four groups, not three as in Unix. > You have SYSTEM, OWNER, GROUP and WORLD. The system protection mask is > applied to users who are in groups 0 to 7. The NFS tradition is not to map client UID 0 to server UID 0, though it is done in special cases, mostly for diskless clients. Continuing that, you would not allow SYSTEM access for clients. >>> You could say that uids (in RSX) are gid local. >> NFS matches files by numeric UID and GID. That assumes >> that the all users have the same UID and GID on all client systems. >> Even more, it assumes that there are UID and GID. I believe >> that the PCNFS clients had special servers to get around that, >> I am not sure what Windows does. (At least NT has user IDs.) > Yes, I was just pointing out that the way Unix and RSX use thses differ. > In Unix you have the UID and GID. Which are two independen numbers. > In RSX you have something called a UIC, which consist of two parts. A > group number and a member number. And they are connected. So just map them to UID, possibly with a translation table. >>> Like I said from the start - I don't consider filename issues to be a >>> problem. That part is easy... >>> But since you brought it up, I thought I'd just explain a little about >>> how it works in RSX. >> OK, I remember Radix 50 from RT-11, and sixbit from TOPS-10. > RSX use Radix50, though. Just to clarify. In RSX, a filename is 9+3 R5 > characters (4 words total). And then you have a file version number, > which is a 5th word. (All words are 16 bits.) You could store the Radix 50 name, maybe converted to hex, as a hard link to the file with an ASCII name. That would allow either system to see it. > And this in turn is then translated into a File ID, which is a 48-bit > number, consisting of 3 16-bit parts, which is what all file operations > are using when doing file operations. The FileID is very similar to the > i-node number in Unix. I think NFS can access files by inode, though I haven't thought about that for a while. I am not sure how many bits go into an inode number on current systems. -- glen ^ permalink raw reply [flat|nested] 146+ messages in thread
* Re: QBUS Prototyping 2010-04-18 16:58 ` glen herrmannsfeldt @ 2010-04-18 23:02 ` Johnny Billquist 2010-04-19 1:39 ` glen herrmannsfeldt 0 siblings, 1 reply; 146+ messages in thread From: Johnny Billquist @ 2010-04-18 23:02 UTC (permalink / raw) glen herrmannsfeldt wrote: > In alt.sys.pdp11 Johnny Billquist <bqt@softjar.se> wrote: > (snip) > >>> Unlike unix, where the system buffers data blocks, the OS/360 >>> model writes data directly from the disk into user buffers. >>> Among other features of OS/360 is locate mode I/O. When reading, >>> data goes directly into the desired location. For writing, >>> the I/O system supplies a buffer address, data is written directly >>> into the buffer, and then it is scheduled to be written. > >> Same in RSX. It's optional for the programmer to do this, but it saves a >> lot of time not having to do the extra copying. > > But only in 512 byte blocks, right? The S/360 hardware formats > the disk blocks to whatever size you want. For RECFM=V, blocks > are different sizes and there is a formula to tell you how they > pack onto a disk track. For example, the IBM 3330 track holds > 13165 bytes, with a 135 byte overhead (header) for each block. > You can write one block of 13030 bytes, or 96 blocks of one byte. Well, no. When you, as a programmer, request to read one record, you can specify if the data is to be moved into a second buffer in your program, or if you are just as happy if the code returns a pointer to the data inside the block as originally read from disk. So either it is just one DMA, into your pogram, by the whole 512 byte block, but then you process the data in place in that buffer, or else FCS (or RMS) can transfer your current record to another buffer specified by you, on which you do your processing. It's called locate mode or transfer mode. And for both types, the operation also returns a pointer to the data, and the length of the data. So obviously, you can write your program to work correctly for both situations, and just flip a bit in the file operation call to get it either way. Notice, however, that even if you specify locate mode, it will actually do a move for you, if the record you are about to access actually span several disk blocks. And of course, one attribute you can set when creating a file, is the information if it is acceptable for records to cross block boundaries. So if you really want fast access, you specify locate mode, and your files have the bit saying records are not allowed to span blocks. > So far I have thought that an RSX based NFS client would be the > most useful. For NFS server, I suppose you would want to do that. > It isn't likely that a unix based NFS server is going to implement > special RSX features, though. Both are interesting, in my mind. But I would probably start with a client if I were to do this. And no, any (other) NFS server is not likely to implement special RSX features. Especially since NFS don't seem to allow for special OS-specific extensions. That is the same reason I see problems with an NFS client under RSX, which don't adhere to the Unix view when talking to the server, while presenting an RSX view to the local side. >>>> So, if you read a text file from Unix, and expect to present it to an >>>> RSX application, you need to read some (unknown) amount of data from the >>>> Unix server, pack this into a 512 byte block for the RSX operation, with >>>> record lengths between the record of data, and padded appropriately, and >>>> pass that 512 byte block to the user application. > >>> The way I would solve that case would be to give the blocks >>> to RSX directly, and have the user run some conversion program. >>> This program would read unix file blocks and write RSX file >>> records. They could be written back to the file system in >>> RSX format, to later be read by RSX application programs. > >> Ah. Yes, now we're getting to the root of it all. >> Your solution is indeed doable, and much easier. But that basically >> means that you will have an NFS file system on RSX, from which you can >> basically only do one thing: use a special program to read/write files, >> with possible conversions. >> What is the point of that? That means you must definitely have local >> disk as well. > > You can write the converted file back to the NFS disk. Ugh! Well, be going with your extended idea of the NFS client having two ways to deal with files. A naive way of dealing with any unknown files, and a way to identify "known" files, which are assumed to be compatible with other RSX files. And trusting that noone on the NFS server machine ever much around with the "known" files. Let me just call myself defensive when I prefer to no rely on that. :-) >> The possible extension that the NFS client also can play RSX-style >> files, under special circumstances makes it possible to use the NFS >> mounted disks natively, but you'd have to (as a user) almost know which >> files are ok or not, or else your programs just barf at you when you try >> accessing many files. > > If you do map the RSX file names directly, then it will be easy. > You could, for example, code the RSX Radix 50 filename in some > strange way and only recognize native files in that form. > For example, convert the Radix 50 16 bit words to hex and use > that for a file name. Only such files would be visible to ordinary > RSX programs. The conversion program would recognize both names. > > You could also have a program that you run before your actual > program that tells the client what you want to do with the files. > Clients are stateful, only servers are supposed to be stateless. I find the whole idea of not being fully interoperable very unattractive. I guess that is what I've been trying to say the whole time. For me, that is simply not something that interest me much. If I implement NFS, I would definitely want to be able to access remote files in the same way as local files, even if they were created on the remote file system. Or atleast be interoperable as far as possible. And for instance text files is possible to get interoperable, but it's a lot of fiddling to do it. >>>>> As above, any such conversions are done by the NFS client. > >>>> Exactly. And that means the code inside RSX. Which needs to then read >>>> through the whole file to calculate the actual length of the file, once > (snip) > >>> But only for non-native files. > >> Yes. But then you have the question how you tell if a file is "native" >> to the client. NFS don't tell... And of course, a native file in the RSX >> case means we need information not possible to store in NFS, or Unix. > > Well, as I said earlier you can store that in special files somewhere. > You could also do it for directories, though I hadn't thought of > that one before. Directories are another headache. I haven't looked fully at how that works in NFS, but RSX have a rather different view on parts of that compared to Unix. But storing special files, special filenames, or some similar solution is something I would very much want to avoid. It places way too much trust in the users on the users on the maching running the NFS server, as they can see and manipulate these files in a totally different way. >>>>> The opaque model for NFS seems to indicate that your write data >>>>> blocks to the server, > (snip) > >>>> Oh sure. If you aren't really interested in NFS as a file system, but >>>> just as a file transportation device, then sure. But why use NFS in that >>>> case. FTP will work equally fine. > >>> Well, ftp still has some of the problems, but yes that does help. > >> Actually, ftp don't have these problems. >> ftp was designed to walk around these exact problems. So, ftp deals with >> records, where each side are free to perform whatever stuff needed to >> figure out what a record is, how to store and retrieve it, and so on. >> So for Unix systems, if you transfer in ASCII mode, a record is the data >> between two LF. The data is sent over, with the FTP definition of record >> terminator, and the other side then strip of the FTP record terminator, >> and writes the record to disk, with whatever tricks needed on that >> system (like adding an LF on a Unix system). > > Well, for example, if you ftp a tar file then you are still stuck. > Since ftp isn't very convenient for directory trees that is very > common. You are stuck in the sense that you don't have tar for RSX, true. But that is another kind of problem. The tar-file itself should (obviously) be transferred as a binary file, and will survive the trip just fine. A tar extraction will probably create problems. I believe ZIP might be better. There is ZIP for VMS, which seems to handle file attributes and other VMSism just fine, while still (I assume) be compatible with other ZIP implementations. But these are not ftp problems. >>> I belive that another case relates to the read and execute bits, >>> in that a file can have execute but not read access. As the >>> NFS server has no way to know what the client is doing with >>> the bits, you can read such a file. It seems, then, that one >>> maps protection bits as well as one can, but not always >>> perfectly. > >> The concept of execute protection don't exist in RSX. However, RSX >> differs betweem write access and extend access. Write access only allows >> you to write in the file, in blocks already existing in the file. Extend >> access allows you to grow the file. > >> And then you have delete access for files. Unlike Unix, where you don't >> ever actually delete a file. In Unix, you just unlink files, and when >> there are no references to a file, it is deleted. In RSX, you can have >> references to deleted file, and files can exist, even though there are >> no references to it. In Unix-speak, link/unlink are separate operations >> from file creation/deletion. > >> In order to "delete" a file in Unix, you need to have write access to >> the directory in which the file have a reference. In RSX you need to >> have delete rights to that specific file to delete the file. You need to >> have write access to the directory in order to remove the reference. > > It isn't so obvious that all RSX attributes have to still work... They obviously cannot be allowed to work in the same way. But the question is how to transmogrify this so that programs in RSX react the right way instead of throwing strange errors that noone will understand. >> I can go on with more conflicting ways between RSX and Unix with regards >> to file protections... > >> And as I said, in RSX you have four groups, not three as in Unix. >> You have SYSTEM, OWNER, GROUP and WORLD. The system protection mask is >> applied to users who are in groups 0 to 7. > > The NFS tradition is not to map client UID 0 to server UID 0, though > it is done in special cases, mostly for diskless clients. > Continuing that, you would not allow SYSTEM access for clients. Yes. UID 0 is noramlly mapped to UID -2. But Unix also basically don't do any protection checks if you have UID 0. RSX don't have such a powerful pass-all-checks mechanism. Are you suggesting that I should map all 2048 different SYSTEM UICs in RSX to the same user when go over NFS? Actually, the remapping of UID 0 to -2 is done on the server side, and not the client side, by the way... >>>> Like I said from the start - I don't consider filename issues to be a >>>> problem. That part is easy... >>>> But since you brought it up, I thought I'd just explain a little about >>>> how it works in RSX. > >>> OK, I remember Radix 50 from RT-11, and sixbit from TOPS-10. > >> RSX use Radix50, though. Just to clarify. In RSX, a filename is 9+3 R5 >> characters (4 words total). And then you have a file version number, >> which is a 5th word. (All words are 16 bits.) > > You could store the Radix 50 name, maybe converted to hex, as > a hard link to the file with an ASCII name. That would allow > either system to see it. Could, but I think I would just transform "illegal" filenames from the server into something legal on the RSX side, and keep filenames which do fit just as they are. >> And this in turn is then translated into a File ID, which is a 48-bit >> number, consisting of 3 16-bit parts, which is what all file operations >> are using when doing file operations. The FileID is very similar to the >> i-node number in Unix. > > I think NFS can access files by inode, though I haven't thought > about that for a while. I am not sure how many bits go into > an inode number on current systems. NFS basically will have to support access by inode numbers, or RSX will work very badly on an RSX client, as it is not that uncommon for programs to actually open files by file id, and not filename. 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 ^ permalink raw reply [flat|nested] 146+ messages in thread
* Re: QBUS Prototyping 2010-04-18 23:02 ` Johnny Billquist @ 2010-04-19 1:39 ` glen herrmannsfeldt 2010-04-19 20:22 ` Johnny Billquist 0 siblings, 1 reply; 146+ messages in thread From: glen herrmannsfeldt @ 2010-04-19 1:39 UTC (permalink / raw) In alt.sys.pdp11 Johnny Billquist <bqt@softjar.se> wrote: (snip, I wrote) >> But only in 512 byte blocks, right? The S/360 hardware formats >> the disk blocks to whatever size you want. For RECFM=V, blocks >> are different sizes and there is a formula to tell you how they >> pack onto a disk track. For example, the IBM 3330 track holds >> 13165 bytes, with a 135 byte overhead (header) for each block. >> You can write one block of 13030 bytes, or 96 blocks of one byte. > Well, no. When you, as a programmer, request to read one record, you can > specify if the data is to be moved into a second buffer in your program, > or if you are just as happy if the code returns a pointer to the data > inside the block as originally read from disk. > So either it is just one DMA, into your pogram, by the whole 512 byte > block, but then you process the data in place in that buffer, or else > FCS (or RMS) can transfer your current record to another buffer > specified by you, on which you do your processing. > It's called locate mode or transfer mode. I believe OS/360 assembler and PL/I both call it locate mode. I hadn't thought before about the possibility of doing it with fixed sized blocks. It does seem that if you avoid crossing block boundaries that it works. It seemed more obvious with variable sized blocks. > And for both types, the operation also returns a pointer to the data, > and the length of the data. So obviously, you can write your program to > work correctly for both situations, and just flip a bit in the file > operation call to get it either way. > Notice, however, that even if you specify locate mode, it will actually > do a move for you, if the record you are about to access actually span > several disk blocks. And of course, one attribute you can set when > creating a file, is the information if it is acceptable for records to > cross block boundaries. So if you really want fast access, you specify > locate mode, and your files have the bit saying records are not allowed > to span blocks. >> So far I have thought that an RSX based NFS client would be the >> most useful. For NFS server, I suppose you would want to do that. >> It isn't likely that a unix based NFS server is going to implement >> special RSX features, though. > Both are interesting, in my mind. > But I would probably start with a client if I were to do this. I was wondering not so long ago about an NFS client for CP/M. It seems that CP/M people like to keep the higher level (BDOS) routines and only change the lower level (BIOS), but to do NFS right you need to change BDOS. > And no, any (other) NFS server is not likely to implement special RSX > features. Especially since NFS don't seem to allow for special > OS-specific extensions. > That is the same reason I see problems with an NFS client under RSX, > which don't adhere to the Unix view when talking to the server, while > presenting an RSX view to the local side. (snip, I wrote) >> You can write the converted file back to the NFS disk. > Ugh! Well, be going with your extended idea of the NFS client having two > ways to deal with files. A naive way of dealing with any unknown files, > and a way to identify "known" files, which are assumed to be compatible > with other RSX files. > And trusting that noone on the NFS server machine ever much around with > the "known" files. It seems that what the z/OS one does is let you add options onto the file name that you specify. It seems that won't work for RSX. > Let me just call myself defensive when I prefer to no rely on that. :-) >>> The possible extension that the NFS client also can play RSX-style >>> files, under special circumstances makes it possible to use the NFS >>> mounted disks natively, but you'd have to (as a user) almost know which >>> files are ok or not, or else your programs just barf at you when you try >>> accessing many files. >> If you do map the RSX file names directly, then it will be easy. >> You could, for example, code the RSX Radix 50 filename in some >> strange way and only recognize native files in that form. >> For example, convert the Radix 50 16 bit words to hex and use >> that for a file name. Only such files would be visible to ordinary >> RSX programs. The conversion program would recognize both names. >> You could also have a program that you run before your actual >> program that tells the client what you want to do with the files. >> Clients are stateful, only servers are supposed to be stateless. > I find the whole idea of not being fully interoperable very > unattractive. I guess that is what I've been trying to say the whole time. > For me, that is simply not something that interest me much. > If I implement NFS, I would definitely want to be able to access remote > files in the same way as local files, even if they were created on the > remote file system. > Or atleast be interoperable as far as possible. And for instance > text files is possible to get interoperable, but it's a lot of > fiddling to do it. (snip) >>> Yes. But then you have the question how you tell if a file is "native" >>> to the client. NFS don't tell... And of course, a native file in the RSX >>> case means we need information not possible to store in NFS, or Unix. >> Well, as I said earlier you can store that in special files somewhere. >> You could also do it for directories, though I hadn't thought of >> that one before. > Directories are another headache. I haven't looked fully at how that > works in NFS, but RSX have a rather different view on parts of that > compared to Unix. > But storing special files, special filenames, or some similar solution > is something I would very much want to avoid. It places way too much > trust in the users on the users on the maching running the NFS server, > as they can see and manipulate these files in a totally different way. Well, it seems usual that the administrator has enough control over the machine to make sure that bad things don't happen. When I first knew NFS, the NFS server was kept locked in an air conditioned room, while all the clients were out in ordinary rooms. It wasn't a big place, and everyone knew everyone else, so it was mostly for the machine to stay cool. One that I still remember from those days is that I needed to have two names for a directory, and didn't know about symbolic links. (Previous unix systems I had used didn't have them.) According to the man page, only superusers can create hard links to directories, but I knew (was allowed to know) the root password. As soon as I created the hard link to a directory the file server died. (This is also before I knew much of the details about NFS.) So the file server restarted and as soon as it was running again and NFS was running it crashed again. It seems that the NFS server dies when it detects a hard link (that is, more than one) to a directory. As soon as NFS restarted, the client recreated the link. (It might be that we had to do something special to get the server to restart while deleting the link.) I think that was when I first understood the idea of NFS clients surviving a server reboot. >>>>>> The opaque model for NFS seems to indicate that your write data >>>>>> blocks to the server, >> (snip) > >>>>> Oh sure. If you aren't really interested in NFS as a file system, but >>>>> just as a file transportation device, then sure. But why use NFS in that >>>>> case. FTP will work equally fine. (snip on ftp) > You are stuck in the sense that you don't have tar for RSX, true. > But that is another kind of problem. Well, it is just C, so should not be hard to do. > The tar-file itself should (obviously) be transferred as a binary file, > and will survive the trip just fine. > A tar extraction will probably create problems. > I believe ZIP might be better. There is ZIP for VMS, which seems to > handle file attributes and other VMSism just fine, while still (I > assume) be compatible with other ZIP implementations. I know about VMS zip, but have never used it. (snip) >> It isn't so obvious that all RSX attributes have to still work... > They obviously cannot be allowed to work in the same way. But the > question is how to transmogrify this so that programs in RSX react the > right way instead of throwing strange errors that noone will understand. >>> I can go on with more conflicting ways between RSX and Unix with regards >>> to file protections... >>> And as I said, in RSX you have four groups, not three as in Unix. >>> You have SYSTEM, OWNER, GROUP and WORLD. The system protection mask is >>> applied to users who are in groups 0 to 7. >> The NFS tradition is not to map client UID 0 to server UID 0, though >> it is done in special cases, mostly for diskless clients. >> Continuing that, you would not allow SYSTEM access for clients. > Yes. UID 0 is noramlly mapped to UID -2. But Unix also basically don't > do any protection checks if you have UID 0. RSX don't have such a > powerful pass-all-checks mechanism. > Are you suggesting that I should map all 2048 different SYSTEM UICs in > RSX to the same user when go over NFS? I don't think so. But maybe they don't get the same specialness that they do on RSX. > Actually, the remapping of UID 0 to -2 is done on the server side, and > not the client side, by the way... Yes. I guess I didn't say that. (snip) >>>> OK, I remember Radix 50 from RT-11, and sixbit from TOPS-10. >>> RSX use Radix50, though. Just to clarify. In RSX, a filename is 9+3 R5 >>> characters (4 words total). And then you have a file version number, >>> which is a 5th word. (All words are 16 bits.) >> You could store the Radix 50 name, maybe converted to hex, as >> a hard link to the file with an ASCII name. That would allow >> either system to see it. > Could, but I think I would just transform "illegal" filenames from the > server into something legal on the RSX side, and keep filenames which do > fit just as they are. >>> And this in turn is then translated into a File ID, which is a 48-bit >>> number, consisting of 3 16-bit parts, which is what all file operations >>> are using when doing file operations. The FileID is very similar to the >>> i-node number in Unix. >> I think NFS can access files by inode, though I haven't thought >> about that for a while. I am not sure how many bits go into >> an inode number on current systems. > NFS basically will have to support access by inode numbers, or RSX will > work very badly on an RSX client, as it is not that uncommon for > programs to actually open files by file id, and not filename. It seems that all NFS operations use a file handle which is opaque to the client. I believe that unix (and similar) systems use the inode number as part of the file handle. (Other parts need to identify the specific file system it applies to.) Unix doesn't make it easy to find a file from the inode number. I do remember once doing find -i to find a file, which requires a search of the whole file system. -- glen ^ permalink raw reply [flat|nested] 146+ messages in thread
* Re: QBUS Prototyping 2010-04-19 1:39 ` glen herrmannsfeldt @ 2010-04-19 20:22 ` Johnny Billquist 2010-04-19 21:27 ` glen herrmannsfeldt 2010-04-20 19:36 ` Hans Bachner 0 siblings, 2 replies; 146+ messages in thread From: Johnny Billquist @ 2010-04-19 20:22 UTC (permalink / raw) glen herrmannsfeldt wrote: > In alt.sys.pdp11 Johnny Billquist <bqt@softjar.se> wrote: > (snip, I wrote) > >>> But only in 512 byte blocks, right? The S/360 hardware formats >>> the disk blocks to whatever size you want. For RECFM=V, blocks >>> are different sizes and there is a formula to tell you how they >>> pack onto a disk track. For example, the IBM 3330 track holds >>> 13165 bytes, with a 135 byte overhead (header) for each block. >>> You can write one block of 13030 bytes, or 96 blocks of one byte. > >> Well, no. When you, as a programmer, request to read one record, you can >> specify if the data is to be moved into a second buffer in your program, >> or if you are just as happy if the code returns a pointer to the data >> inside the block as originally read from disk. >> So either it is just one DMA, into your pogram, by the whole 512 byte >> block, but then you process the data in place in that buffer, or else >> FCS (or RMS) can transfer your current record to another buffer >> specified by you, on which you do your processing. > >> It's called locate mode or transfer mode. > > I believe OS/360 assembler and PL/I both call it locate mode. Slight error on my part. The mode where you don't move the data is called locate mode in RSX, but the mode where the data is copied a second time is called move mode, not transfer mode. > I hadn't thought before about the possibility of doing it > with fixed sized blocks. It does seem that if you avoid crossing > block boundaries that it works. It seemed more obvious with > variable sized blocks. :-) You can actually do it with records crossing block boundaries as well, with RSX. It's just that those records that do cross blocks will be copied anyway. But for those that don't cross block boundaries, no copying takes place. The program can't tell which happened, without being more clever than it needs to. > (snip, I wrote) >>> You can write the converted file back to the NFS disk. > >> Ugh! Well, be going with your extended idea of the NFS client having two >> ways to deal with files. A naive way of dealing with any unknown files, >> and a way to identify "known" files, which are assumed to be compatible >> with other RSX files. >> And trusting that noone on the NFS server machine ever much around with >> the "known" files. > > It seems that what the z/OS one does is let you add options onto > the file name that you specify. It seems that won't work for RSX. I don't know, but probably difficult. >>>> Yes. But then you have the question how you tell if a file is "native" >>>> to the client. NFS don't tell... And of course, a native file in the RSX >>>> case means we need information not possible to store in NFS, or Unix. > >>> Well, as I said earlier you can store that in special files somewhere. >>> You could also do it for directories, though I hadn't thought of >>> that one before. > >> Directories are another headache. I haven't looked fully at how that >> works in NFS, but RSX have a rather different view on parts of that >> compared to Unix. > >> But storing special files, special filenames, or some similar solution >> is something I would very much want to avoid. It places way too much >> trust in the users on the users on the maching running the NFS server, >> as they can see and manipulate these files in a totally different way. > > Well, it seems usual that the administrator has enough control > over the machine to make sure that bad things don't happen. > When I first knew NFS, the NFS server was kept locked in an air > conditioned room, while all the clients were out in ordinary rooms. That's still pretty common. But you don't need physical access. Normally, around where I've been, the machine exporting files over NFS have been machines that you also could log in to. Also, assuming another Unix box mount the same file system, the whole innards will be exposed to that client as well, and possible to manipulate by users there. > It wasn't a big place, and everyone knew everyone else, so it > was mostly for the machine to stay cool. One that I still > remember from those days is that I needed to have two names > for a directory, and didn't know about symbolic links. (Previous > unix systems I had used didn't have them.) According to the > man page, only superusers can create hard links to directories, > but I knew (was allowed to know) the root password. As soon > as I created the hard link to a directory the file server died. > (This is also before I knew much of the details about NFS.) > So the file server restarted and as soon as it was running again > and NFS was running it crashed again. It seems that the NFS > server dies when it detects a hard link (that is, more than one) > to a directory. As soon as NFS restarted, the client recreated > the link. (It might be that we had to do something special > to get the server to restart while deleting the link.) > I think that was when I first understood the idea of NFS clients > surviving a server reboot. He. I have (had) a similar story about creating a hard link to a directory. Never tried to do it over NFS, but I did it on a local file system on SunOS. Everything was fine until we removed the directory, at which point things started looking very strange. Had to reboot, and let fsck repair the bloody thing. :-) >> You are stuck in the sense that you don't have tar for RSX, true. >> But that is another kind of problem. > > Well, it is just C, so should not be hard to do. Well, as long as you don't care what the end result is, sure... But assuming you extract a file from a tar archive, how should it be extracted? As a text file? Binary? Record lengths? As you see, it comes down to parts of the same problem as with NFS. It is simpler through, in that you are not expecting other programs to access it on the fly, or randomly, so there are some things you don't care about (such as seeking in the converted result). >> The tar-file itself should (obviously) be transferred as a binary file, >> and will survive the trip just fine. >> A tar extraction will probably create problems. >> I believe ZIP might be better. There is ZIP for VMS, which seems to >> handle file attributes and other VMSism just fine, while still (I >> assume) be compatible with other ZIP implementations. > > I know about VMS zip, but have never used it. Used it, and it works the way you would expect and want. Files get cipped/unzipped along with the VMS specific attributes. I haven't checked what happens if you extract a ZIP-file created on some other OS though. >>>> And this in turn is then translated into a File ID, which is a 48-bit >>>> number, consisting of 3 16-bit parts, which is what all file operations >>>> are using when doing file operations. The FileID is very similar to the >>>> i-node number in Unix. > >>> I think NFS can access files by inode, though I haven't thought >>> about that for a while. I am not sure how many bits go into >>> an inode number on current systems. > >> NFS basically will have to support access by inode numbers, or RSX will >> work very badly on an RSX client, as it is not that uncommon for >> programs to actually open files by file id, and not filename. > > It seems that all NFS operations use a file handle which is opaque > to the client. I believe that unix (and similar) systems use the > inode number as part of the file handle. (Other parts need > to identify the specific file system it applies to.) This could be ugly... A program that want to open a file in RSX reads in the directory file itself, and thereby locates the file entry, and the corresponding file id. It then open the file, using that file id. It can also store the file id, and reuse it later to open the same file. Also, there are a few file ids that are reserved, and essential for anything to work, such as file id (4,4,0), which is the MFD (root directory in Unix-speak). This is how a program finds a file. It starts by opening file (4,4,0), and then traverse down directories from there. (And yes, the MFD do exist in itself, normally under the name 000000.DIR) I would have to fake directory files for RSX, but I need to populate them with filename, *and* file ids. And the file ids must then match back to the filenames. I guess I could keep a translation table for this, but that table could become very large... > Unix doesn't make it easy to find a file from the inode number. > I do remember once doing find -i to find a file, which requires > a search of the whole file system. Yes, find can take inode numbers as arguments, but I don't think any other program can. And find will (as you note) do a linear search of the whole file system. Oh headaches... 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 ^ permalink raw reply [flat|nested] 146+ messages in thread
* Re: QBUS Prototyping 2010-04-19 20:22 ` Johnny Billquist @ 2010-04-19 21:27 ` glen herrmannsfeldt 2010-04-20 19:36 ` Hans Bachner 1 sibling, 0 replies; 146+ messages in thread From: glen herrmannsfeldt @ 2010-04-19 21:27 UTC (permalink / raw) In alt.sys.pdp11 Johnny Billquist <bqt@softjar.se> wrote: (snip) > Slight error on my part. The mode where you don't move the data is > called locate mode in RSX, but the mode where the data is copied a > second time is called move mode, not transfer mode. Yes, I believe those are also the names that IBM uses. (snip) >>> Ugh! Well, be going with your extended idea of the NFS client having two >>> ways to deal with files. A naive way of dealing with any unknown files, >>> and a way to identify "known" files, which are assumed to be compatible >>> with other RSX files. >>> And trusting that noone on the NFS server machine ever much around with >>> the "known" files. >> It seems that what the z/OS one does is let you add options onto >> the file name that you specify. It seems that won't work for RSX. > I don't know, but probably difficult. One more thought. You have one additional way to pass data through, and that is through the version number. You could have opens with specific (probably high) version numbers have special meaning. Some might request the translations that have been discussed here. (snip) > That's still pretty common. But you don't need physical access. > Normally, around where I've been, the machine exporting files over NFS > have been machines that you also could log in to. > Also, assuming another Unix box mount the same file system, the whole > innards will be exposed to that client as well, and possible to > manipulate by users there. Well, there you have file protection, which you may or may not use. (snip) >> According to the >> man page, only superusers can create hard links to directories, >> but I knew (was allowed to know) the root password. As soon >> as I created the hard link to a directory the file server died. (snip) > He. I have (had) a similar story about creating a hard link to a > directory. Never tried to do it over NFS, but I did it on a local file > system on SunOS. Everything was fine until we removed the directory, at > which point things started looking very strange. > Had to reboot, and let fsck repair the bloody thing. :-) Oh, yes, that is it. It runs fsck as it boots (systems were slower than now) and when it finally comes up the client retries the failed link. (regarding tar and zip...) >> Well, it is just C, so should not be hard to do. > Well, as long as you don't care what the end result is, sure... > But assuming you extract a file from a tar archive, how should it be > extracted? As a text file? Binary? Record lengths? > As you see, it comes down to parts of the same problem as with NFS. It > is simpler through, in that you are not expecting other programs to > access it on the fly, or randomly, so there are some things you don't > care about (such as seeking in the converted result). OS/2 has extended attributes, NTFS has something similar, though I don't remember how it works. NTFS can also do the Macintosh resource fork within its file system. (snip) >> I know about VMS zip, but have never used it. > Used it, and it works the way you would expect and want. Files get > cipped/unzipped along with the VMS specific attributes. > I haven't checked what happens if you extract a ZIP-file created on some > other OS though. >>>>> And this in turn is then translated into a File ID, which is a 48-bit >>>>> number, consisting of 3 16-bit parts, which is what all file operations >>>>> are using when doing file operations. The FileID is very similar to the >>>>> i-node number in Unix. (snip) >>> NFS basically will have to support access by inode numbers, or RSX will >>> work very badly on an RSX client, as it is not that uncommon for >>> programs to actually open files by file id, and not filename. >> It seems that all NFS operations use a file handle which is opaque >> to the client. I believe that unix (and similar) systems use the >> inode number as part of the file handle. (Other parts need >> to identify the specific file system it applies to.) OK, NFS does everything by file handle which is 32 bytes (128 bits) for NFSv2, and variable length up to 64 bytes (256 bits) for NFSv3. It has to be big enough to include whatever the underlying server file system needs, in addition to identifying the file system itself. Also, I think they can change on client reboot (remount), so probably they shouldn't be saved in other places. > This could be ugly... A program that want to open a file in RSX reads in > the directory file itself, and thereby locates the file entry, and the > corresponding file id. It then open the file, using that file id. That sounds similar to NFS, though usually you do LOOKUP with the desired name and the server does the actual search. You could read the directory, though, and pass that through. You would then need a hash table to convert between the 48 bit values and NFS file handles. > It can also store the file id, and reuse it later to open the same file. > Also, there are a few file ids that are reserved, and essential for > anything to work, such as file id (4,4,0), which is the MFD (root > directory in Unix-speak). This is how a program finds a file. It starts > by opening file (4,4,0), and then traverse down directories from there. > (And yes, the MFD do exist in itself, normally under the name 000000.DIR) > I would have to fake directory files for RSX, but I need to populate > them with filename, *and* file ids. And the file ids must then match > back to the filenames. I guess I could keep a translation table for > this, but that table could become very large... Or, as I said earlier, map the whole file system onto one big file in NFS. Hard for others to read, but easier for the client to do things its own way. If I ever get to a CP/M version, that is the way the first one will work. That is the only way it can be done without changing the BDOS. (For similar reasons.) -- glen ^ permalink raw reply [flat|nested] 146+ messages in thread
* Re: QBUS Prototyping 2010-04-19 20:22 ` Johnny Billquist 2010-04-19 21:27 ` glen herrmannsfeldt @ 2010-04-20 19:36 ` Hans Bachner 2010-04-24 15:36 ` Steven Schweda 1 sibling, 1 reply; 146+ messages in thread From: Hans Bachner @ 2010-04-20 19:36 UTC (permalink / raw) Johnny Billquist <bqt@softjar.se> wrote: > glen herrmannsfeldt wrote: <snip> >> I know about VMS zip, but have never used it. > > Used it, and it works the way you would expect and want. Files get > cipped/unzipped along with the VMS specific attributes. > I haven't checked what happens if you extract a ZIP-file created on > some other OS though. I use it all the time; mostly between OpenVMS and Windows, occasionally with Linux or HP-UX. It's an excellent way to transfer files with VMS specific file formats across intermediate systems of all kinds; zip files are transferred as binary files, and the target OpenVMS system can restore the files with the original file formats and attributes. When moving (text) files across OS boundaries one must take care as different operating systems use different formats for text files. If text files are zipped on OpenVMS without preserving the attributes, they can be used without problems on Linux/Unix as the files are converted to streamLF while they are packed. Windows has minr problems with this format as it expects <CR><LF> as a record terminator. Smart editors like UltraEdit compensate for this, however, and/or allow to create files with a U*X (and VMS) compatible format. Using ftp to transfer files uncompressed would also compensate for this problem (the ftp clients and servers do the necessary format conversion). Packing e.g. PDF files on one platform and unpacking them on another one works flawlessly. Hans. ^ permalink raw reply [flat|nested] 146+ messages in thread
* Re: QBUS Prototyping 2010-04-20 19:36 ` Hans Bachner @ 2010-04-24 15:36 ` Steven Schweda 2010-04-25 3:55 ` Johnny Billquist 0 siblings, 1 reply; 146+ messages in thread From: Steven Schweda @ 2010-04-24 15:36 UTC (permalink / raw) Hans Bachner wrote: > [...] > When moving (text) files across OS boundaries one must take care as > different operating systems use different formats for text files. If text > files are zipped on OpenVMS without preserving the attributes, they can > be used without problems on Linux/Unix as the files are converted to > streamLF while they are packed. [...] For the record, any reasonably recent version of Zip (version 2.31 (March 2005) or later) should let a user create a Zip archive on a VMS system, saving the VMS file attributes ("zip -V"), and that archive should cause no problems on a non-VMS system. (Fixing some old bugs in that neighborhood is what dragged me into Zip development.) As usual, if someone can demonstrate a problem, complaints are welcome. The files aren't really "converted to streamLF while they are packed", but UnZip can generally do the job. Note that Zip offers options like: -l convert LF to CR LF (-ll CR LF to LF) and UnZip: -a auto-convert any text files -aa treat ALL files as text which give the user some control over how record boundaries (including, possibly, line endings) are handled. ^ permalink raw reply [flat|nested] 146+ messages in thread
* Re: QBUS Prototyping 2010-04-24 15:36 ` Steven Schweda @ 2010-04-25 3:55 ` Johnny Billquist 2010-04-25 5:32 ` Steven Schweda 0 siblings, 1 reply; 146+ messages in thread From: Johnny Billquist @ 2010-04-25 3:55 UTC (permalink / raw) Steven Schweda wrote: > Hans Bachner wrote: >> [...] >> When moving (text) files across OS boundaries one must take care as >> different operating systems use different formats for text files. If text >> files are zipped on OpenVMS without preserving the attributes, they can >> be used without problems on Linux/Unix as the files are converted to >> streamLF while they are packed. [...] > > For the record, any reasonably recent version of Zip > (version 2.31 (March 2005) or later) should let a user create > a Zip archive on a VMS system, saving the VMS file attributes > ("zip -V"), and that archive should cause no problems on a > non-VMS system. (Fixing some old bugs in that neighborhood is > what dragged me into Zip development.) As usual, if someone > can demonstrate a problem, complaints are welcome. > > The files aren't really "converted to streamLF while they > are packed", but UnZip can generally do the job. > > Note that Zip offers options like: > -l convert LF to CR LF (-ll CR LF to LF) > and UnZip: > -a auto-convert any text files > -aa treat ALL files as text > which give the user some control over how record boundaries > (including, possibly, line endings) are handled. Hmm, if you are involved in ZIP, then maybe you can tell if some trimmed down version would be possible to create. In RSX, large data segments are really not that nice to play with, but I don't know how ZIP works, so I don't know if it would be possible to write a version that don't consume gobs of data space. The switches sounds like just the thing I'd like to have... :-) 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 ^ permalink raw reply [flat|nested] 146+ messages in thread
* Re: QBUS Prototyping 2010-04-25 3:55 ` Johnny Billquist @ 2010-04-25 5:32 ` Steven Schweda 2010-04-25 11:33 ` Johnny Billquist 0 siblings, 1 reply; 146+ messages in thread From: Steven Schweda @ 2010-04-25 5:32 UTC (permalink / raw) Johnny Billquist wrote: > Hmm, if you are involved in ZIP, then maybe you can tell if some trimmed > down version would be possible to create. In RSX, large data segments > are really not that nice to play with, but I don't know how ZIP works, > so I don't know if it would be possible to write a version that don't > consume gobs of data space. I'll admit that I'm involved in Zip, but I can't remember doing any software development on a PDP-anything since a VAX 11/785 (?) replaced the PDP 11/70 at school when I was (relatively) young. And not much then. If there are even RSX builders in the Zip and/or UnZip source kits, it would be news to me. However, this code is generally written to be pretty portable, and is expected to work on many small systems, so I would not be amazed if the stuff could be made to work. (Luckily, I lack any kind of suitable hardware and/or software with which to do any RSX development.) ^ permalink raw reply [flat|nested] 146+ messages in thread
* Re: QBUS Prototyping 2010-04-25 5:32 ` Steven Schweda @ 2010-04-25 11:33 ` Johnny Billquist 2010-04-25 12:17 ` glen herrmannsfeldt ` (2 more replies) 0 siblings, 3 replies; 146+ messages in thread From: Johnny Billquist @ 2010-04-25 11:33 UTC (permalink / raw) Steven Schweda wrote: > Johnny Billquist wrote: > >> Hmm, if you are involved in ZIP, then maybe you can tell if some trimmed >> down version would be possible to create. In RSX, large data segments >> are really not that nice to play with, but I don't know how ZIP works, >> so I don't know if it would be possible to write a version that don't >> consume gobs of data space. > > I'll admit that I'm involved in Zip, but I can't remember > doing any software development on a PDP-anything since a VAX > 11/785 (?) replaced the PDP 11/70 at school when I was > (relatively) young. And not much then. If there are even RSX > builders in the Zip and/or UnZip source kits, it would be news > to me. However, this code is generally written to be pretty > portable, and is expected to work on many small systems, so I > would not be amazed if the stuff could be made to work. > (Luckily, I lack any kind of suitable hardware and/or software > with which to do any RSX development.) Well, the question wasn't so much a question of wether an RSX port existed (which I doubt), but if you could inform a little on the memory requirements of ZIP. How does it work? Does it create some large table for compression purposes? I'm perfectly happy to work on an implementation myself, if it's just realistic in memory usage. Somehow I doubt that the general implementation out there will suffice, since I bet it's way too big to ever get to work on RSX, even though I have a perfectly good ANSI C compiler. (Oh, and a VAX is not a PDP... :-) 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 ^ permalink raw reply [flat|nested] 146+ messages in thread
* Re: QBUS Prototyping 2010-04-25 11:33 ` Johnny Billquist @ 2010-04-25 12:17 ` glen herrmannsfeldt 2010-04-25 13:31 ` Johnny Billquist 2010-04-25 13:58 ` Steven Schweda 2011-04-18 12:56 ` Bob Koehler 2 siblings, 1 reply; 146+ messages in thread From: glen herrmannsfeldt @ 2010-04-25 12:17 UTC (permalink / raw) In alt.sys.pdp11 Johnny Billquist <bqt@softjar.se> wrote: (snip) > Well, the question wasn't so much a question of wether an RSX port > existed (which I doubt), but if you could inform a little on the memory > requirements of ZIP. How does it work? Does it create some large table > for compression purposes? I'm perfectly happy to work on an > implementation myself, if it's just realistic in memory usage. Zip is mostly an implementation of LZW, though with the ability to make archives (groups of compressed files). The LZW compressor in 16 bit (usual) mode needs a 128K byte table. The decompressor needs another buffer of similar size. For compress (the unix LZW compression program) at least, you could run with a smaller bit maximum, such that a smaller table was needed. I am not sure that gzip/zip have that option. > Somehow I doubt that the general implementation out there will suffice, > since I bet it's way too big to ever get to work on RSX, even though I > have a perfectly good ANSI C compiler. > (Oh, and a VAX is not a PDP... :-) Not a PDP, but still an 11? -- glen ^ permalink raw reply [flat|nested] 146+ messages in thread
* Re: QBUS Prototyping 2010-04-25 12:17 ` glen herrmannsfeldt @ 2010-04-25 13:31 ` Johnny Billquist 2010-04-25 14:01 ` Steven Schweda 0 siblings, 1 reply; 146+ messages in thread From: Johnny Billquist @ 2010-04-25 13:31 UTC (permalink / raw) glen herrmannsfeldt wrote: > In alt.sys.pdp11 Johnny Billquist <bqt@softjar.se> wrote: > (snip) > >> Well, the question wasn't so much a question of wether an RSX port >> existed (which I doubt), but if you could inform a little on the memory >> requirements of ZIP. How does it work? Does it create some large table >> for compression purposes? I'm perfectly happy to work on an >> implementation myself, if it's just realistic in memory usage. > > Zip is mostly an implementation of LZW, though with the ability > to make archives (groups of compressed files). > > The LZW compressor in 16 bit (usual) mode needs a 128K byte table. > The decompressor needs another buffer of similar size. > For compress (the unix LZW compression program) at least, you could > run with a smaller bit maximum, such that a smaller table was needed. > I am not sure that gzip/zip have that option. Yeah, that was what I was afraid of. Yes, compress/uncompress on 2BSD runs with a 12-bit size if I remember right, compared to the "normal" 16 bits. Just to fit into memory. A 128K size table is not impossible to handle in RSX, but it is a headache, and will cause significant slowdown, as I would have to create a memory region and map around in it. Oh well, anyone have a nice simple writup of the algorithm and table? (And the format of the ZIP files) I might want to try play with this anyway... >> Somehow I doubt that the general implementation out there will suffice, >> since I bet it's way too big to ever get to work on RSX, even though I >> have a perfectly good ANSI C compiler. > >> (Oh, and a VAX is not a PDP... :-) > > Not a PDP, but still an 11? Yes, if we talk about the VAXen up until 1984 or so (I was going to say the ones with PDP-11 compatibility mode, but the VAX-11/790 was renamed the 8600 before launch, which means that's the exception :-) ). 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 ^ permalink raw reply [flat|nested] 146+ messages in thread
* Re: QBUS Prototyping 2010-04-25 13:31 ` Johnny Billquist @ 2010-04-25 14:01 ` Steven Schweda 2010-04-25 21:58 ` Johnny Billquist 0 siblings, 1 reply; 146+ messages in thread From: Steven Schweda @ 2010-04-25 14:01 UTC (permalink / raw) Johnny Billquist wrote: > (And the format of the ZIP files) http://www.pkware.com/documents/casestudies/APPNOTE.TXT ^ permalink raw reply [flat|nested] 146+ messages in thread
* Re: QBUS Prototyping 2010-04-25 14:01 ` Steven Schweda @ 2010-04-25 21:58 ` Johnny Billquist 0 siblings, 0 replies; 146+ messages in thread From: Johnny Billquist @ 2010-04-25 21:58 UTC (permalink / raw) Steven Schweda wrote: > Johnny Billquist wrote: > >> (And the format of the ZIP files) > > http://www.pkware.com/documents/casestudies/APPNOTE.TXT Thanks. I'll start reading a little... 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 ^ permalink raw reply [flat|nested] 146+ messages in thread
* Re: QBUS Prototyping 2010-04-25 11:33 ` Johnny Billquist 2010-04-25 12:17 ` glen herrmannsfeldt @ 2010-04-25 13:58 ` Steven Schweda 2010-04-25 21:47 ` Johnny Billquist 2011-04-18 12:56 ` Bob Koehler 2 siblings, 1 reply; 146+ messages in thread From: Steven Schweda @ 2010-04-25 13:58 UTC (permalink / raw) Johnny Billquist wrote: > Well, the question wasn't so much a question of wether an RSX port > existed (which I doubt), but if you could inform a little on the memory > requirements of ZIP. How does it work? Does it create some large table > for compression purposes? I'm perfectly happy to work on an > implementation myself, if it's just realistic in memory usage. I've never needed to worry about that part of the code, so I know nothing. Define "large". > Somehow I doubt that the general implementation out there will suffice, > since I bet it's way too big to ever get to work on RSX, even though I > have a perfectly good ANSI C compiler. One way to find out. (The source code is available.) > (Oh, and a VAX is not a PDP... :-) Did I say that they were even related? (No, I did not. I said that one replaced the other at my school.) ^ permalink raw reply [flat|nested] 146+ messages in thread
* Re: QBUS Prototyping 2010-04-25 13:58 ` Steven Schweda @ 2010-04-25 21:47 ` Johnny Billquist 2010-04-26 15:40 ` Bob Koehler 0 siblings, 1 reply; 146+ messages in thread From: Johnny Billquist @ 2010-04-25 21:47 UTC (permalink / raw) Steven Schweda wrote: > Johnny Billquist wrote: > >> Well, the question wasn't so much a question of wether an RSX port >> existed (which I doubt), but if you could inform a little on the memory >> requirements of ZIP. How does it work? Does it create some large table >> for compression purposes? I'm perfectly happy to work on an >> implementation myself, if it's just realistic in memory usage. > > I've never needed to worry about that part of the code, so > I know nothing. Define "large". The PDP-11 is a 16-bit machine, meaning a 16-bit address space. That is 64K (bytes). On some machine, you can get away with 64K data and 64K code. But that's the limit before it gets ugly... >> Somehow I doubt that the general implementation out there will suffice, >> since I bet it's way too big to ever get to work on RSX, even though I >> have a perfectly good ANSI C compiler. > > One way to find out. (The source code is available.) Indeed. >> (Oh, and a VAX is not a PDP... :-) > > Did I say that they were even related? (No, I did not. I > said that one replaced the other at my school.) Sorry. Didn't mean to be abusive. 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 ^ permalink raw reply [flat|nested] 146+ messages in thread
* Re: QBUS Prototyping 2010-04-25 21:47 ` Johnny Billquist @ 2010-04-26 15:40 ` Bob Koehler 2010-04-27 7:37 ` Johnny Billquist 2011-04-18 13:00 ` Bob Koehler 0 siblings, 2 replies; 146+ messages in thread From: Bob Koehler @ 2010-04-26 15:40 UTC (permalink / raw) In article <hr2d9r$lv$1@Iltempo.Update.UU.SE>, Johnny Billquist <bqt@softjar.se> writes: > > The PDP-11 is a 16-bit machine, meaning a 16-bit address space. That is > 64K (bytes). > On some machine, you can get away with 64K data and 64K code. But that's > the limit before it gets ugly... I never had a PDP-11 with less than 18 bit address space. Instructions could only access 16 bits of it at a time, but the hardware was there to make use of the rest of it. ^ permalink raw reply [flat|nested] 146+ messages in thread
* Re: QBUS Prototyping 2010-04-26 15:40 ` Bob Koehler @ 2010-04-27 7:37 ` Johnny Billquist 2010-04-27 7:58 ` Bob Eager ` (2 more replies) 2011-04-18 13:00 ` Bob Koehler 1 sibling, 3 replies; 146+ messages in thread From: Johnny Billquist @ 2010-04-27 7:37 UTC (permalink / raw) Bob Koehler wrote: > In article <hr2d9r$lv$1@Iltempo.Update.UU.SE>, Johnny Billquist <bqt@softjar.se> writes: >> The PDP-11 is a 16-bit machine, meaning a 16-bit address space. That is >> 64K (bytes). >> On some machine, you can get away with 64K data and 64K code. But that's >> the limit before it gets ugly... > > I never had a PDP-11 with less than 18 bit address space. > Instructions could only access 16 bits of it at a time, but the > hardware was there to make use of the rest of it. Yes... As you yourself note - you can only access 16 bits of it. The fact that the physical address can be more makes little difference. That's from the MMU, not the CPU. In order to play with a larger address space you either have to manipulate the MMU directly (not likely if you are using any OS), or else use OS services to change you memory mapping (assuming the OS even allows you). And that is where it gets "ugly" as I put it. Big performance penalties involved, as well as becoming complex. 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 ^ permalink raw reply [flat|nested] 146+ messages in thread
* Re: QBUS Prototyping 2010-04-27 7:37 ` Johnny Billquist @ 2010-04-27 7:58 ` Bob Eager 2010-04-27 14:56 ` Bob Koehler 2010-04-27 14:53 ` Bob Koehler 2010-04-27 15:43 ` jjh 2 siblings, 1 reply; 146+ messages in thread From: Bob Eager @ 2010-04-27 7:58 UTC (permalink / raw) On Tue, 27 Apr 2010 09:37:11 +0200, Johnny Billquist wrote: > Bob Koehler wrote: >> In article <hr2d9r$lv$1@Iltempo.Update.UU.SE>, Johnny Billquist >> <bqt@softjar.se> writes: >>> The PDP-11 is a 16-bit machine, meaning a 16-bit address space. That >>> is 64K (bytes). >>> On some machine, you can get away with 64K data and 64K code. But >>> that's the limit before it gets ugly... >> >> I never had a PDP-11 with less than 18 bit address space. >> Instructions could only access 16 bits of it at a time, but the >> hardware was there to make use of the rest of it. > > Yes... As you yourself note - you can only access 16 bits of it. The > fact that the physical address can be more makes little difference. > That's from the MMU, not the CPU. In order to play with a larger address > space you either have to manipulate the MMU directly (not likely if you > are using any OS), or else use OS services to change you memory mapping > (assuming the OS even allows you). And then there were the PDP-11s with no MMU - such as the one I have here! The first PDP-11 I ever used was a brand new PDP-11/20 - and that was only 16 bits, no MMU. -- Use the BIG mirror service in the UK: http://www.mirrorservice.org ^ permalink raw reply [flat|nested] 146+ messages in thread
* Re: QBUS Prototyping 2010-04-27 7:58 ` Bob Eager @ 2010-04-27 14:56 ` Bob Koehler 2010-04-28 9:06 ` Johnny Billquist 0 siblings, 1 reply; 146+ messages in thread From: Bob Koehler @ 2010-04-27 14:56 UTC (permalink / raw) In article <83njopFumlU4@mid.individual.net>, Bob Eager <rde42@spamcop.net> writes: > And then there were the PDP-11s with no MMU - such as the one I have here! > > The first PDP-11 I ever used was a brand new PDP-11/20 - and that was > only 16 bits, no MMU. IIRC, the 11/20 was a UNIBUS system. The RAM capability may have been too small to need an MMU, but the bus was 18 bit. I had an 11/34, same bus, similar limitiations. And I had to deal with all 18 bits since I was writing device drivers. ^ permalink raw reply [flat|nested] 146+ messages in thread
* Re: QBUS Prototyping 2010-04-27 14:56 ` Bob Koehler @ 2010-04-28 9:06 ` Johnny Billquist 2010-04-28 12:34 ` Bob Eager 2010-04-28 14:51 ` Bob Koehler 0 siblings, 2 replies; 146+ messages in thread From: Johnny Billquist @ 2010-04-28 9:06 UTC (permalink / raw) Bob Koehler wrote: > In article <83njopFumlU4@mid.individual.net>, Bob Eager <rde42@spamcop.net> writes: > >> And then there were the PDP-11s with no MMU - such as the one I have here! >> >> The first PDP-11 I ever used was a brand new PDP-11/20 - and that was >> only 16 bits, no MMU. > > IIRC, the 11/20 was a UNIBUS system. The RAM capability may have > been too small to need an MMU, but the bus was 18 bit. I had > an 11/34, same bus, similar limitiations. And I had to deal with > all 18 bits since I was writing device drivers. Correct. But if your machine don't have an MMU, you will only be able to address 16 bits anyway, even though the Unibus have 18 physical address bits. The two high bits are permanently tied low, unless you access the I/O page, in which case they are forced high. 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 ^ permalink raw reply [flat|nested] 146+ messages in thread
* Re: QBUS Prototyping 2010-04-28 9:06 ` Johnny Billquist @ 2010-04-28 12:34 ` Bob Eager 2010-04-28 14:51 ` Bob Koehler 1 sibling, 0 replies; 146+ messages in thread From: Bob Eager @ 2010-04-28 12:34 UTC (permalink / raw) On Wed, 28 Apr 2010 11:06:38 +0200, Johnny Billquist wrote: > Bob Koehler wrote: >> In article <83njopFumlU4@mid.individual.net>, Bob Eager >> <rde42@spamcop.net> writes: >> >>> And then there were the PDP-11s with no MMU - such as the one I have >>> here! >>> >>> The first PDP-11 I ever used was a brand new PDP-11/20 - and that was >>> only 16 bits, no MMU. >> >> IIRC, the 11/20 was a UNIBUS system. The RAM capability may have >> been too small to need an MMU, but the bus was 18 bit. I had an >> 11/34, same bus, similar limitiations. And I had to deal with all >> 18 bits since I was writing device drivers. > > Correct. But if your machine don't have an MMU, you will only be able to > address 16 bits anyway, even though the Unibus have 18 physical address > bits. > The two high bits are permanently tied low, unless you access the I/O > page, in which case they are forced high. Exactly. The 11/20 (to which I was referring) had no MMU and was just like that. I wrote an entire operating system for it, in use for several years, and I never had to worry about 18 bit addressing anywhere! -- Use the BIG mirror service in the UK: http://www.mirrorservice.org ^ permalink raw reply [flat|nested] 146+ messages in thread
* Re: QBUS Prototyping 2010-04-28 9:06 ` Johnny Billquist 2010-04-28 12:34 ` Bob Eager @ 2010-04-28 14:51 ` Bob Koehler 2010-04-29 0:18 ` Johnny Billquist 1 sibling, 1 reply; 146+ messages in thread From: Bob Koehler @ 2010-04-28 14:51 UTC (permalink / raw) In article <hr8tqu$uah$1@Iltempo.Update.UU.SE>, Johnny Billquist <bqt@softjar.se> writes: > > Correct. But if your machine don't have an MMU, you will only be able to > address 16 bits anyway, even though the Unibus have 18 physical address > bits. > The two high bits are permanently tied low, unless you access the I/O > page, in which case they are forced high. When I worked with memory limited UNIBUS systems, you had to fill in all 18 bits of a device's address registers or you couldn't predict what you got. ^ permalink raw reply [flat|nested] 146+ messages in thread
* Re: QBUS Prototyping 2010-04-28 14:51 ` Bob Koehler @ 2010-04-29 0:18 ` Johnny Billquist 2010-04-29 15:16 ` Bob Koehler 0 siblings, 1 reply; 146+ messages in thread From: Johnny Billquist @ 2010-04-29 0:18 UTC (permalink / raw) Bob Koehler wrote: > In article <hr8tqu$uah$1@Iltempo.Update.UU.SE>, Johnny Billquist <bqt@softjar.se> writes: >> Correct. But if your machine don't have an MMU, you will only be able to >> address 16 bits anyway, even though the Unibus have 18 physical address >> bits. >> The two high bits are permanently tied low, unless you access the I/O >> page, in which case they are forced high. > > When I worked with memory limited UNIBUS systems, you had to fill > in all 18 bits of a device's address registers or you couldn't > predict what you got. Not sure what you are talking about here. If you are talking about the address for DMA, from a device, then yes. Those have 18 address bits all the time. So unless you make sure the top bits are zero, they are possibly something else, which will not get the result you want. But that is not the CPU, and I fail to see the connection. You know that a VAX have 32 address bits, but that architecture also used a Unibus. Does that change the number of address bits of the VAX to 18 as well for those machines? 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 ^ permalink raw reply [flat|nested] 146+ messages in thread
* Re: QBUS Prototyping 2010-04-29 0:18 ` Johnny Billquist @ 2010-04-29 15:16 ` Bob Koehler 0 siblings, 0 replies; 146+ messages in thread From: Bob Koehler @ 2010-04-29 15:16 UTC (permalink / raw) In article <hraj9c$cse$1@Iltempo.Update.UU.SE>, Johnny Billquist <bqt@softjar.se> writes: > Not sure what you are talking about here. > If you are talking about the address for DMA, from a device, then yes. > Those have 18 address bits all the time. So unless you make sure the top > bits are zero, they are possibly something else, which will not get the > result you want. Exactly. > But that is not the CPU, and I fail to see the connection. > > You know that a VAX have 32 address bits, but that architecture also > used a Unibus. Does that change the number of address bits of the VAX to > 18 as well for those machines? The earliest VAXen had 30 bit SBI with UNIBUS and MASSBUS hanging off of that, but I think the 11/730 and 11/725 were UNIBUS (as the system bus) models. In that case you had to deal with the opposite when talking to UNIBUS devices: what to do with the 12 bits that weren't in the device's registers. ^ permalink raw reply [flat|nested] 146+ messages in thread
* Re: QBUS Prototyping 2010-04-27 7:37 ` Johnny Billquist 2010-04-27 7:58 ` Bob Eager @ 2010-04-27 14:53 ` Bob Koehler 2010-04-28 9:11 ` Johnny Billquist 2010-04-27 15:43 ` jjh 2 siblings, 1 reply; 146+ messages in thread From: Bob Koehler @ 2010-04-27 14:53 UTC (permalink / raw) In article <hr6477$4ui$1@Iltempo.Update.UU.SE>, Johnny Billquist <bqt@softjar.se> writes: > > Yes... As you yourself note - you can only access 16 bits of it. The > fact that the physical address can be more makes little difference. > That's from the MMU, not the CPU. In order to play with a larger address > space you either have to manipulate the MMU directly (not likely if you > are using any OS), or else use OS services to change you memory mapping > (assuming the OS even allows you). All you have to do is tell the overlay supervisor to use memory resident overlays. Been there, done that. And it was a major performance improvement over a PDP-11 with an 18 bit bus but a small RAM capability where we had to use disk resident overlays. ^ permalink raw reply [flat|nested] 146+ messages in thread
* Re: QBUS Prototyping 2010-04-27 14:53 ` Bob Koehler @ 2010-04-28 9:11 ` Johnny Billquist 2010-04-28 14:52 ` Bob Koehler 0 siblings, 1 reply; 146+ messages in thread From: Johnny Billquist @ 2010-04-28 9:11 UTC (permalink / raw) Bob Koehler wrote: > In article <hr6477$4ui$1@Iltempo.Update.UU.SE>, Johnny Billquist <bqt@softjar.se> writes: >> Yes... As you yourself note - you can only access 16 bits of it. The >> fact that the physical address can be more makes little difference. >> That's from the MMU, not the CPU. In order to play with a larger address >> space you either have to manipulate the MMU directly (not likely if you >> are using any OS), or else use OS services to change you memory mapping >> (assuming the OS even allows you). > > All you have to do is tell the overlay supervisor to use memory > resident overlays. La da di. Assuming you have a system which allows for memory resident overlays, that will: 1) Cause the same calls to the OS services I mentioned above. 2) Only work for code, not data 3) Cause overlays to be page aligned, which potentially could waste a lot of memory (one page is 8K) > Been there, done that. And it was a major performance improvement > over a PDP-11 with an 18 bit bus but a small RAM capability where > we had to use disk resident overlays. No denying it is faster than disk based overlays, but it is not a solution if you need more data space. Overlays is only a solution that helps you with more code space, by reusing the same virtual addresses for different pieces of code. But I fail to see why people are arguing with me. All I am saying is that if a program needs lots of data space, it will become ugly. If other people disagree with me, fine. You write the program then. I can even provide you with access to a machine running the latest version of RSX-11M-PLUS, with all the tools you need. 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 ^ permalink raw reply [flat|nested] 146+ messages in thread
* Re: QBUS Prototyping 2010-04-28 9:11 ` Johnny Billquist @ 2010-04-28 14:52 ` Bob Koehler 2010-04-29 0:20 ` Johnny Billquist 0 siblings, 1 reply; 146+ messages in thread From: Bob Koehler @ 2010-04-28 14:52 UTC (permalink / raw) In article <hr8u4l$ufm$1@Iltempo.Update.UU.SE>, Johnny Billquist <bqt@softjar.se> writes: > > La da di. Assuming you have a system which allows for memory resident > overlays, that will: > 1) Cause the same calls to the OS services I mentioned above. > 2) Only work for code, not data > 3) Cause overlays to be page aligned, which potentially could waste a > lot of memory (one page is 8K) If you don't know how to overlay your data, you don't know the overlay supervisor very well. Overlays only get updated on code reference, but you can, and we did, include data in those segments. ^ permalink raw reply [flat|nested] 146+ messages in thread
* Re: QBUS Prototyping 2010-04-28 14:52 ` Bob Koehler @ 2010-04-29 0:20 ` Johnny Billquist 2010-04-29 1:15 ` Johnny Billquist 2010-04-29 15:17 ` Bob Koehler 0 siblings, 2 replies; 146+ messages in thread From: Johnny Billquist @ 2010-04-29 0:20 UTC (permalink / raw) Bob Koehler wrote: > In article <hr8u4l$ufm$1@Iltempo.Update.UU.SE>, Johnny Billquist <bqt@softjar.se> writes: >> La da di. Assuming you have a system which allows for memory resident >> overlays, that will: >> 1) Cause the same calls to the OS services I mentioned above. >> 2) Only work for code, not data >> 3) Cause overlays to be page aligned, which potentially could waste a >> lot of memory (one page is 8K) > > If you don't know how to overlay your data, you don't know the > overlay supervisor very well. > > Overlays only get updated on code reference, but you can, and we did, > include data in those segments. Yes. Readonly data. Not read/write. And that also assumes that you are *not* using split I/D space. Why are you arguing with me? 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 ^ permalink raw reply [flat|nested] 146+ messages in thread
* Re: QBUS Prototyping 2010-04-29 0:20 ` Johnny Billquist @ 2010-04-29 1:15 ` Johnny Billquist 2010-04-29 7:01 ` John Wallace 2010-04-29 15:17 ` Bob Koehler 1 sibling, 1 reply; 146+ messages in thread From: Johnny Billquist @ 2010-04-29 1:15 UTC (permalink / raw) Johnny Billquist wrote: > Bob Koehler wrote: >> In article <hr8u4l$ufm$1@Iltempo.Update.UU.SE>, Johnny Billquist >> <bqt@softjar.se> writes: >>> La da di. Assuming you have a system which allows for memory resident >>> overlays, that will: >>> 1) Cause the same calls to the OS services I mentioned above. >>> 2) Only work for code, not data >>> 3) Cause overlays to be page aligned, which potentially could waste a >>> lot of memory (one page is 8K) >> >> If you don't know how to overlay your data, you don't know the >> overlay supervisor very well. >> Overlays only get updated on code reference, but you can, and we >> did, >> include data in those segments. > > Yes. Readonly data. Not read/write. And that also assumes that you are > *not* using split I/D space. Oh well, I should probably correct myself. If you have memory resident overlays, then you will probably be able to have read/write data in there as well. You just need to mix data and code in the same program sections, and the data will be located with the code, and mapped into memory along with the code. But it still means you have to not use split I/D space, and you are creating segments with a granularity of 8K, and you need to mix code in with the data in order to get the data mapped in automatically. All this is in fact even more complicated than just creating a region and doing the memory mapping system calls yourself, that I totally fail to see the point of using the overlay system in order to try to use more than 64K of data. If using a memory region, and doing mamory remappings is what I considered complex and hurting performance, using overlays would make it even more complex, and you would have the same time penalities, since the same system calls would be used. 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 ^ permalink raw reply [flat|nested] 146+ messages in thread
* Re: QBUS Prototyping 2010-04-29 1:15 ` Johnny Billquist @ 2010-04-29 7:01 ` John Wallace 2010-04-29 11:19 ` Jerome H. Fine ` (2 more replies) 0 siblings, 3 replies; 146+ messages in thread From: John Wallace @ 2010-04-29 7:01 UTC (permalink / raw) On Apr 29, 2:15 am, Johnny Billquist <b...@softjar.se> wrote: > Johnny Billquist wrote: > > Bob Koehler wrote: > >> In article <hr8u4l$uf...@Iltempo.Update.UU.SE>, Johnny Billquist > >> <b...@softjar.se> writes: > >>> La da di. Assuming you have a system which allows for memory resident > >>> overlays, that will: > >>> 1) Cause the same calls to the OS services I mentioned above. > >>> 2) Only work for code, not data > >>> 3) Cause overlays to be page aligned, which potentially could waste a > >>> lot of memory (one page is 8K) > > >> If you don't know how to overlay your data, you don't know the > >> overlay supervisor very well. > >> Overlays only get updated on code reference, but you can, and we > >> did, > >> include data in those segments. > > > Yes. Readonly data. Not read/write. And that also assumes that you are > > *not* using split I/D space. > > Oh well, I should probably correct myself. If you have memory resident > overlays, then you will probably be able to have read/write data in > there as well. You just need to mix data and code in the same program > sections, and the data will be located with the code, and mapped into > memory along with the code. But it still means you have to not use split > I/D space, and you are creating segments with a granularity of 8K, and > you need to mix code in with the data in order to get the data mapped in > automatically. > > All this is in fact even more complicated than just creating a region > and doing the memory mapping system calls yourself, that I totally fail > to see the point of using the overlay system in order to try to use more > than 64K of data. If using a memory region, and doing mamory remappings > is what I considered complex and hurting performance, using overlays > would make it even more complex, and you would have the same time > penalities, since the same system calls would be used. > > Johnny > > -- > Johnny Billquist || "I'm on a bus > || on a psychedelic trip > email: b...@softjar.se || Reading murder books > pdp is alive! || tryin' to stay hip" - B. Idol Some of this "big data" stuff could be done relatively simply (from the programmers point of view) with some flavours of PDP11 FORTRAN, which had support for VIRTUAL arrays that didn't really fit in memory. Even where it wasn't officially supported there was sometimes DECUS code to do something equivalent. Iirc, it was done using on-disk data structures rather than in-memory, so there would be a significant speed penalty, even in comparison with the "twiddle the MMU" stuff. But the user saw it as nice and simple. ^ permalink raw reply [flat|nested] 146+ messages in thread
* Re: QBUS Prototyping 2010-04-29 7:01 ` John Wallace @ 2010-04-29 11:19 ` Jerome H. Fine 2010-04-29 18:38 ` glen herrmannsfeldt 2010-04-30 0:09 ` Johnny Billquist 2010-04-29 15:19 ` Bob Koehler 2010-04-30 0:04 ` Johnny Billquist 2 siblings, 2 replies; 146+ messages in thread From: Jerome H. Fine @ 2010-04-29 11:19 UTC (permalink / raw) >John Wallace wrote: >Some of this "big data" stuff could be done relatively simply (from >the programmers point of view) with some flavours of PDP11 FORTRAN, >which had support for VIRTUAL arrays that didn't really fit in memory. >Even where it wasn't officially supported there was sometimes DECUS >code to do something equivalent. Iirc, it was done using on-disk data >structures rather than in-memory, so there would be a significant >speed penalty, even in comparison with the "twiddle the MMU" stuff. >But the user saw it as nice and simple. > > I remember using FORTRAN IV with VIRTUAL around 1985. The application used around 1 MB of arrays in extended memory via the MMU. Somewhere in the DECUS stuff, there is alternative code which can use on-disk data instead which is a reasonable fit when the memory is used as a small disk drive. Under RT-11, the VM: device handler worked well to reduce and actual disk drive's relatively slow transfer rates. I know that FORTRAN 77 also had VIRTUAL arrays, but I can't remember if it used the MMU or a disk drive. This would be under RT-11. Does anyone remember? I assume that RSX-11 and RSTS/E had similar capability, although perhaps not under RSTS/E with the RT-11 emulator using the MMU. On the other hand, even under the SJ monitor in RT-11, FORTRAN IV supported VIRTUAL with MMU, so perhaps RSTS/E also found a way. Does anyone know or care at this point? As for the compression algorithm itself, can anyone provide some information on just how that 128 KB table is accessed? READ ONLY? Random? Sequential? Same on decompression? It would make a big difference if the access was sequential, but somehow it would seem that it must be random access to that 128 KB table and maybe the table even gets altered as the algorithm progresses through the input file? While I am not about to implement the code, it would help to know the characteristics of what is being discussed. Jerome Fine ^ permalink raw reply [flat|nested] 146+ messages in thread
* Re: QBUS Prototyping 2010-04-29 11:19 ` Jerome H. Fine @ 2010-04-29 18:38 ` glen herrmannsfeldt 2010-04-29 19:53 ` Jerome H. Fine 2010-04-30 0:09 ` Johnny Billquist 1 sibling, 1 reply; 146+ messages in thread From: glen herrmannsfeldt @ 2010-04-29 18:38 UTC (permalink / raw) In alt.sys.pdp11 Jerome H. Fine <jhfinedp3k@dp3knospamcompsys.to> wrote: (snip related to Fortran and virtual arrays) > As for the compression algorithm itself, can anyone provide some > information on just how that 128 KB table is accessed? > READ ONLY? Random? Sequential? Same on decompression? > It would make a big difference if the access was sequential, > but somehow it would seem that it must be random access to > that 128 KB table and maybe the table even gets altered as > the algorithm progresses through the input file? For compression, it generates a tree structure based on what it has seen so far. Last time I looked into this was compress.c, in the days before gzip. If I put compress.c into google, the second hit, the one with actual source, comes from apple.com. It is copyright University of California 1986, last changed in 1985. It seems I wasn't quite right on the 128K. The compression table needs 2**BITS words, each of which holds a value between -1 and 2**BITS-1, such that the usual implementation (with #ifdef) uses (int) (16 bits on smaller machines in 1985) for BITS<16, and (long int) for BITS==16. One might be able to do that with a 65536 entry table of 16 bit integers, and a 65536 bit table indicating which entries where -1 to save memory. There is even an #ifdef pdp11 which sets BITS to 12. > While I am not about to implement the code, it would help to > know the characteristics of what is being discussed. The basic idea is to build a tree structure based on substrings previously seen. If you find one again, point to the tree entry, otherwise add a new entry to the tree. Well, that isn't quite right because the new entry, pointing to the previous substring, is also added to the tree. I think that means that for each character input you read one tree entry. When you find a substring not previously seen, write one tree entry. For compression, there is not much reason not to use BITS==12. The files will be a little larger, but the 16 bit decompression program will still be able to decompress them. The 12 bit decompression program, though, won't be able to decompress files with BITS==16. -- glen ^ permalink raw reply [flat|nested] 146+ messages in thread
* Re: QBUS Prototyping 2010-04-29 18:38 ` glen herrmannsfeldt @ 2010-04-29 19:53 ` Jerome H. Fine 2010-04-29 20:35 ` glen herrmannsfeldt 2010-04-30 0:19 ` Johnny Billquist 0 siblings, 2 replies; 146+ messages in thread From: Jerome H. Fine @ 2010-04-29 19:53 UTC (permalink / raw) >glen herrmannsfeldt wrote: >>In alt.sys.pdp11 Jerome H. Fine <jhfinedp3k@dp3knospamcompsys.to> wrote: >(snip related to Fortran and virtual arrays) > >>As for the compression algorithm itself, can anyone provide some >>information on just how that 128 KB table is accessed? >>READ ONLY? Random? Sequential? Same on decompression? >>It would make a big difference if the access was sequential, >>but somehow it would seem that it must be random access to >>that 128 KB table and maybe the table even gets altered as >>the algorithm progresses through the input file? >> >For compression, it generates a tree structure based on what >it has seen so far. Last time I looked into this was compress.c, >in the days before gzip. If I put compress.c into google, the >second hit, the one with actual source, comes from apple.com. >It is copyright University of California 1986, last changed in 1985. > >It seems I wasn't quite right on the 128K. The compression >table needs 2**BITS words, each of which holds a value between >-1 and 2**BITS-1, such that the usual implementation (with #ifdef) >uses (int) (16 bits on smaller machines in 1985) for BITS<16, >and (long int) for BITS==16. One might be able to do that with >a 65536 entry table of 16 bit integers, and a 65536 bit table >indicating which entries where -1 to save memory. > >There is even an #ifdef pdp11 which sets BITS to 12. > > I have made a suggestion which many may not appreciate for implementation using a PDP-11 instruction set which runs under the Erstaz-11 emulator, normally called E11 for short. The available memory is limited only by the physical memory on the system. Under RT-11 which has direct access to the IOPAGE registers, there is a DLL called EMEM.DLL which allows the user to directly access the PC memory. John Wilson wrote the original DLL which uses 4 IOPAGE registers to: (a) Mov @#CSR, R0 / Mov R0,@#CSR ;Access the PC memory (b) Mov @#CSR+2,R0 / Mov R0,@#CSR+2 ;Also auto-increment next 2 registers (c) Mov R0,@#CSR+4 ;Set up low 16 bits of PC memory address offset (d) Mov R1,@#CSR+6 ;Set up high 16 bits of PC memory address offset I have enhanced the DLL so that: INSTALL EMEM.DLL /SIZE:1024MB can run under Windows XP on a system with 3 GB of memory. Under Windows 98SE on a Pentium III with 768 MB of physical memory, it is possible to request up to 600 MB for EMEM.DLL to use. Not much left for anyone else at that point. It is also possible to use the MFPD and MTPD instructions which requires an extra instruction to load or unload the stack, but which allows the user all of the 64 KB for the current program and data, but direct access to the PC memory via the EMEM.DLL with the use of the 4 IOPAGE registers. The speed of the access is slower than using normal memory under E11, but mainly because E11 is slower with the use of the IOPAGE. The speed is mostly dependent on the L1 and L2 cache sizes. With a core 2 duo CPU (Intel 8200) with a 6 MB L2 cache, E11 seems to have little difficulty keeping almost all current code and data in L2 cache. If EMEM.DLL is instructed to request 1 GB of memory, the access time will be much slower than if the data fits into L2 cache, but still done at the speed of memory with no overhead needed for mapping as with a real DEC PDP-11 that is restricted to less than 4 MB. Most PDP-11 users are insistent that the code be at least able to run on a real DEC PDP-11. So the use of the EMEM.DLL would not be acceptable. But when I reach CPU speeds under E11 of 100 times a PDP-11/93 and disk I/O speeds of 200 times any fast SCSI or ESDI drive on a real DEC PDP-11, it is hard to resist running under E11. For example, while it takes me about 240 seconds to compare 2 RT-11 * 32 MB partitions on the DEC PDP-11/83 that I still run on occasion, under E11 it takes less than ONE SECOND. Even on a Pentium III which I still use, it takes only 6 seconds. And that is about the only difference, aside from the noise of the 3 fans I use to cool the 3 Hitachi 600 MB ESDI drives (DK515) on the PDP-11/83. And one other minor difference. There are 6 VT100 terminals on my desk for the PDP-11/83. With E11, the ALT/Fn key selects up to 12 terminals to be displayed. And since I can't look at more than one display at a time, it seems to work quite well with just the one monitor under E11. Sorry, I often get carried away. >>While I am not about to implement the code, it would help to >>know the characteristics of what is being discussed. >> >The basic idea is to build a tree structure based on substrings >previously seen. If you find one again, point to the tree entry, >otherwise add a new entry to the tree. Well, that isn't quite >right because the new entry, pointing to the previous substring, >is also added to the tree. I think that means that for each >character input you read one tree entry. When you find a >substring not previously seen, write one tree entry. > >For compression, there is not much reason not to use BITS==12. >The files will be a little larger, but the 16 bit decompression >program will still be able to decompress them. The 12 bit >decompression program, though, won't be able to decompress >files with BITS==16. > > It sounds like any one willing to make use of E11 can manage to implement the algorithm under RT-11 quite easily. I also wrote some F77 compatible subroutines which aid the user to read and write the PC memory. The subroutine substitutes in-line code for the CALL to the subroutine after the first use. Especially tricky to figure out was the subroutine which does a write to the PC memory since a normal F77 function CALL receives a value rather than doing a write. Jerome Fine ^ permalink raw reply [flat|nested] 146+ messages in thread
* Re: QBUS Prototyping 2010-04-29 19:53 ` Jerome H. Fine @ 2010-04-29 20:35 ` glen herrmannsfeldt 2010-04-29 21:43 ` Bob Eager 2010-04-30 0:23 ` Johnny Billquist 2010-04-30 0:19 ` Johnny Billquist 1 sibling, 2 replies; 146+ messages in thread From: glen herrmannsfeldt @ 2010-04-29 20:35 UTC (permalink / raw) In alt.sys.pdp11 Jerome H. Fine <jhfinedp3k@dp3knospamcompsys.to> wrote: (snip) > I have made a suggestion which many may not appreciate for > implementation using a PDP-11 instruction set which runs under > the Erstaz-11 emulator, normally called E11 for short. > The available memory is limited only by the physical memory on > the system. Yes, there are always interesting things to do in emulation. Back to VM/370 (The Virtual Machine system for S/370, which actually goes back to the 360/67) there is the use of the DIAGNOSE instruction to do operations outisde the virtual machine. S/360 and S/370 define a system dependent DIAGNOSE instruction (it actually doesn't have an assembler mnemonic) which VM uses for such purposes. Are there any available opcodes in the PDP-11 instruction set, in case one did want to use a new instruction for emulation operations? > Under RT-11 which has direct access to the IOPAGE registers, > there is a DLL called EMEM.DLL which allows the user to > directly access the PC memory. I suppose the IOPAGE is where system dependent operations are supposed to be done on the PDP-11. -- glen ^ permalink raw reply [flat|nested] 146+ messages in thread
* Re: QBUS Prototyping 2010-04-29 20:35 ` glen herrmannsfeldt @ 2010-04-29 21:43 ` Bob Eager 2010-04-30 0:23 ` Johnny Billquist 1 sibling, 0 replies; 146+ messages in thread From: Bob Eager @ 2010-04-29 21:43 UTC (permalink / raw) On Thu, 29 Apr 2010 20:35:05 +0000, glen herrmannsfeldt wrote: > Back to VM/370 (The Virtual Machine system for S/370, which actually > goes back to the 360/67) there is the use of the DIAGNOSE instruction to > do operations outisde the virtual machine. S/360 and S/370 define a > system dependent DIAGNOSE instruction (it actually doesn't have an > assembler mnemonic) which VM uses for such purposes. X'83120000' plus operand! Operand of 8 gets VM to execute a CP command. I worked on porting a large multi-user system to one of these machines, and used VM while I was testing. Great fun! > Are there any available opcodes in the PDP-11 instruction set, in case > one did want to use a new instruction for emulation operations? Not sure what was left as I don't have all possible model info. One could always write to an unassigned device register... -- Use the BIG mirror service in the UK: http://www.mirrorservice.org ^ permalink raw reply [flat|nested] 146+ messages in thread
* Re: QBUS Prototyping 2010-04-29 20:35 ` glen herrmannsfeldt 2010-04-29 21:43 ` Bob Eager @ 2010-04-30 0:23 ` Johnny Billquist 2010-04-30 1:39 ` glen herrmannsfeldt 1 sibling, 1 reply; 146+ messages in thread From: Johnny Billquist @ 2010-04-30 0:23 UTC (permalink / raw) glen herrmannsfeldt wrote: > In alt.sys.pdp11 Jerome H. Fine <jhfinedp3k@dp3knospamcompsys.to> wrote: > (snip) > >> I have made a suggestion which many may not appreciate for >> implementation using a PDP-11 instruction set which runs under >> the Erstaz-11 emulator, normally called E11 for short. > >> The available memory is limited only by the physical memory on >> the system. > > Yes, there are always interesting things to do in emulation. > > Back to VM/370 (The Virtual Machine system for S/370, which > actually goes back to the 360/67) there is the use of the DIAGNOSE > instruction to do operations outisde the virtual machine. > S/360 and S/370 define a system dependent DIAGNOSE instruction > (it actually doesn't have an assembler mnemonic) which VM uses > for such purposes. > > Are there any available opcodes in the PDP-11 instruction set, > in case one did want to use a new instruction for emulation > operations? Sure. There are opcodes that are undefined, and which are trapped by a PDP-11. >> Under RT-11 which has direct access to the IOPAGE registers, >> there is a DLL called EMEM.DLL which allows the user to >> directly access the PC memory. > > I suppose the IOPAGE is where system dependent operations > are supposed to be done on the PDP-11. Well, you could say that. In reality, the I/O page is just a part of the address space where the PDP-11 don't have normal memory, but instead have devices. You access them the same way as memory frmo the PDP-11, though. So, for instance, to output a character on the console terminal, you write to the address where the console terminal controller is located. Obviously, a sane operating system don't allow users to access the I/O page, since that would allow you to go around all the security and integrity of the OS. And that is done by not having the I/O page mapped into the users virtual memory space. 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 ^ permalink raw reply [flat|nested] 146+ messages in thread
* Re: QBUS Prototyping 2010-04-30 0:23 ` Johnny Billquist @ 2010-04-30 1:39 ` glen herrmannsfeldt 0 siblings, 0 replies; 146+ messages in thread From: glen herrmannsfeldt @ 2010-04-30 1:39 UTC (permalink / raw) In alt.sys.pdp11 Johnny Billquist <bqt@softjar.se> wrote: > glen herrmannsfeldt wrote: >> In alt.sys.pdp11 Jerome H. Fine <jhfinedp3k@dp3knospamcompsys.to> wrote: >> (snip) >>> I have made a suggestion which many may not appreciate for >>> implementation using a PDP-11 instruction set which runs under >>> the Erstaz-11 emulator, normally called E11 for short. (snip) >> Yes, there are always interesting things to do in emulation. >> Back to VM/370 (The Virtual Machine system for S/370, which >> actually goes back to the 360/67) there is the use of the DIAGNOSE >> instruction to do operations outisde the virtual machine. >> S/360 and S/370 define a system dependent DIAGNOSE instruction >> (it actually doesn't have an assembler mnemonic) which VM uses >> for such purposes. More specifically, VM runs the guest OS in user mode, and so diagnose is trapped, like other privileged instructions. Some only work in virtual supervisor state, with the privileged instruction exception reported to the guest in virtual user state. >> Are there any available opcodes in the PDP-11 instruction set, >> in case one did want to use a new instruction for emulation >> operations? > Sure. There are opcodes that are undefined, and which are > trapped by a PDP-11. (snip) >> I suppose the IOPAGE is where system dependent operations >> are supposed to be done on the PDP-11. > Well, you could say that. In reality, the I/O page is just a > part of the address space where the PDP-11 don't have normal > memory, but instead have devices. > You access them the same way as memory frmo the PDP-11, though. > So, for instance, to output a character on the console terminal, you > write to the address where the console terminal controller is located. > Obviously, a sane operating system don't allow users to access the I/O > page, since that would allow you to go around all the security and > integrity of the OS. So it might not be available in user state? > And that is done by not having the I/O page mapped into the users > virtual memory space. As the user program might want all pages mapped, then another way to access the emulator should be provided. -- glen ^ permalink raw reply [flat|nested] 146+ messages in thread
* Re: QBUS Prototyping 2010-04-29 19:53 ` Jerome H. Fine 2010-04-29 20:35 ` glen herrmannsfeldt @ 2010-04-30 0:19 ` Johnny Billquist 2010-04-30 15:04 ` Bob Koehler 1 sibling, 1 reply; 146+ messages in thread From: Johnny Billquist @ 2010-04-30 0:19 UTC (permalink / raw) Jerome H. Fine wrote: > >glen herrmannsfeldt wrote: > >>> In alt.sys.pdp11 Jerome H. Fine <jhfinedp3k@dp3knospamcompsys.to> wrote: >> (snip related to Fortran and virtual arrays) >> >>> As for the compression algorithm itself, can anyone provide some >>> information on just how that 128 KB table is accessed? READ ONLY? >>> Random? Sequential? Same on decompression? It would make a big >>> difference if the access was sequential, but somehow it would seem >>> that it must be random access to that 128 KB table and maybe the >>> table even gets altered as the algorithm progresses through the input >>> file? >>> >> For compression, it generates a tree structure based on what >> it has seen so far. Last time I looked into this was compress.c, >> in the days before gzip. If I put compress.c into google, the second >> hit, the one with actual source, comes from apple.com. >> It is copyright University of California 1986, last changed in 1985. >> >> It seems I wasn't quite right on the 128K. The compression >> table needs 2**BITS words, each of which holds a value between >> -1 and 2**BITS-1, such that the usual implementation (with #ifdef) >> uses (int) (16 bits on smaller machines in 1985) for BITS<16, >> and (long int) for BITS==16. One might be able to do that with >> a 65536 entry table of 16 bit integers, and a 65536 bit table >> indicating which entries where -1 to save memory. >> >> There is even an #ifdef pdp11 which sets BITS to 12. >> >> > I have made a suggestion which many may not appreciate for implementation > using a PDP-11 instruction set which runs under the Erstaz-11 emulator, > normally > called E11 for short. Yes. And a program that can't run on a PDP-11, but only on E11 is, in my opinion, of little use to the PDP-11 community. Why don't you just use the PC itself. That will allow your programs to run even faster, since you don't have the E11 emulation layer between you and the CPU? And if I want access to large amounts of storage, I can just as well ues a disk. That will hold even more data than your memory device. And then I can also make the program work on a real PDP-11. Your solution would just create a stupid limitation that wouldn't help anyone. Not to mention the fact that it is only useable on operating systems which allow you to manipulate the MMU yourself, which in practice means RT-11 only. But hey. Don't let me stop you from writing a ZIP-program for RT-11 if you want to. But please don't bother me with it. > It sounds like any one willing to make use of E11 can manage to > implement the > algorithm under RT-11 quite easily. I also wrote some F77 compatible > subroutines > which aid the user to read and write the PC memory. The subroutine > substitutes > in-line code for the CALL to the subroutine after the first use. > Especially > tricky to figure out was the subroutine which does a write to the PC memory > since a normal F77 function CALL receives a value rather than doing a > write. I think that if you want to go down that path, you should instead implement a ZIP-device. Pour the file into the device, and get the expanded results out. After all, you can then run ZIP on the PC itself. And ZIP have already been implemented. So such an exercise would not only be even faster, but it is mostly already done, so all you need to do is the actual file copying. It will also be limited to E11 only, but then again, your solution is just as limited. 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 ^ permalink raw reply [flat|nested] 146+ messages in thread
* Re: QBUS Prototyping 2010-04-30 0:19 ` Johnny Billquist @ 2010-04-30 15:04 ` Bob Koehler 0 siblings, 0 replies; 146+ messages in thread From: Bob Koehler @ 2010-04-30 15:04 UTC (permalink / raw) In article <hrd7na$3cf$1@Iltempo.Update.UU.SE>, Johnny Billquist <bqt@softjar.se> writes: > It will also be limited to E11 only, but then again, your solution is > just as limited. If implemented as a "device" on E11, it could in principle be implemented on a device on a PDP-11. Which brings me back to the day I wondered whether I had more CPU power in my 11/34, or in the Z80 based LA120 console. IMHO, I'd zip/unzip files elsewhere and transfer them to/from the PDP-11. -11s were great for running DECnet Phase IV, which you can get for just about any other computer (my son loaded and ran that stack under Linux years ago, we used to use it between PDP-11, VAX, PDP-10, MS-DOS, and AIX). ^ permalink raw reply [flat|nested] 146+ messages in thread
* Re: QBUS Prototyping 2010-04-29 11:19 ` Jerome H. Fine 2010-04-29 18:38 ` glen herrmannsfeldt @ 2010-04-30 0:09 ` Johnny Billquist 2010-04-30 0:51 ` Johnny Billquist 2010-04-30 14:59 ` Bob Koehler 1 sibling, 2 replies; 146+ messages in thread From: Johnny Billquist @ 2010-04-30 0:09 UTC (permalink / raw) Jerome H. Fine wrote: > >John Wallace wrote: > >> Some of this "big data" stuff could be done relatively simply (from >> the programmers point of view) with some flavours of PDP11 FORTRAN, >> which had support for VIRTUAL arrays that didn't really fit in memory. >> Even where it wasn't officially supported there was sometimes DECUS >> code to do something equivalent. Iirc, it was done using on-disk data >> structures rather than in-memory, so there would be a significant >> speed penalty, even in comparison with the "twiddle the MMU" stuff. >> But the user saw it as nice and simple. >> >> > I remember using FORTRAN IV with VIRTUAL around 1985. The application used > around 1 MB of arrays in extended memory via the MMU. Somewhere in the > DECUS > stuff, there is alternative code which can use on-disk data instead > which is a reasonable fit > when the memory is used as a small disk drive. Under RT-11, the VM: > device handler > worked well to reduce and actual disk drive's relatively slow transfer > rates. I find that rather unlikely. The array indexing is still just done using a 16-bit integer, which limits the size of a virtual array to 65536 elements. Even with INTEGER*4, that would only become 256K. 1M is just not possible to address with virtual arrays in PDP-11 FORTRAN. Neither using FIV or F77. > I know that FORTRAN 77 also had VIRTUAL arrays, but I can't remember if > it used > the MMU or a disk drive. This would be under RT-11. Does anyone remember? I can't say for sure how RT11 might do it, but both RSTS/E and RSX uses disks for this, not MMU. And it would slightly surprise me if RT-11 had a totally different solution. > I assume that RSX-11 and RSTS/E had similar capability, although perhaps > not under > RSTS/E with the RT-11 emulator using the MMU. On the other hand, even > under > the SJ monitor in RT-11, FORTRAN IV supported VIRTUAL with MMU, so perhaps > RSTS/E also found a way. Does anyone know or care at this point? In RSTS/E it is disk based, not MMU. > As for the compression algorithm itself, can anyone provide some > information on just how > that 128 KB table is accessed? READ ONLY? Random? Sequential? Same on > decompression? It would make a big difference if the access was > sequential, but somehow > it would seem that it must be random access to that 128 KB table and > maybe the table even > gets altered as the algorithm progresses through the input file? While > I am not about to > implement the code, it would help to know the characteristics of what is > being discussed. I'm pretty sure the table is created on the fly, so it is definitely read/write. I believe it is also accessed in a rather random way. But that is just based on my impressions and guesses. 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 ^ permalink raw reply [flat|nested] 146+ messages in thread
* Re: QBUS Prototyping 2010-04-30 0:09 ` Johnny Billquist @ 2010-04-30 0:51 ` Johnny Billquist 2010-04-30 0:58 ` Johnny Billquist 2010-04-30 14:59 ` Bob Koehler 1 sibling, 1 reply; 146+ messages in thread From: Johnny Billquist @ 2010-04-30 0:51 UTC (permalink / raw) I must correct myself, I see that I have mixed things a little here... Johnny Billquist wrote: > Jerome H. Fine wrote: >> >John Wallace wrote: >> >>> Some of this "big data" stuff could be done relatively simply (from >>> the programmers point of view) with some flavours of PDP11 FORTRAN, >>> which had support for VIRTUAL arrays that didn't really fit in memory. >>> Even where it wasn't officially supported there was sometimes DECUS >>> code to do something equivalent. Iirc, it was done using on-disk data >>> structures rather than in-memory, so there would be a significant >>> speed penalty, even in comparison with the "twiddle the MMU" stuff. >>> But the user saw it as nice and simple. >>> >>> >> I remember using FORTRAN IV with VIRTUAL around 1985. The application >> used >> around 1 MB of arrays in extended memory via the MMU. Somewhere in >> the DECUS >> stuff, there is alternative code which can use on-disk data instead >> which is a reasonable fit >> when the memory is used as a small disk drive. Under RT-11, the VM: >> device handler >> worked well to reduce and actual disk drive's relatively slow transfer >> rates. > > I find that rather unlikely. The array indexing is still just done using > a 16-bit integer, which limits the size of a virtual array to 65536 > elements. Even with INTEGER*4, that would only become 256K. 1M is just > not possible to address with virtual arrays in PDP-11 FORTRAN. Neither > using FIV or F77. Reading through the F77 manual right now, it is a little unclear if multidimensional arrays are allowed to be larger. It might be that you can create structures the size of 1M or more with multidimensional arrays... I don't have the FIV manual nearby, so I can't check if it have better information, or other limits. >> I know that FORTRAN 77 also had VIRTUAL arrays, but I can't remember >> if it used >> the MMU or a disk drive. This would be under RT-11. Does anyone >> remember? > > I can't say for sure how RT11 might do it, but both RSTS/E and RSX uses > disks for this, not MMU. > And it would slightly surprise me if RT-11 had a totally different > solution. Have to correct myself here. BASIC uses disk based virtual arrays under RSTS/E and RSX. F77 uses memory based virtual arrays. The manual then goes on to point out that virtual arrays are only available on operating systems that support the Memory Management Directives. At that time, RSTS/E didn't, so this was RSX only (but then again, this compiler wasn't used on RT-11, so it don't really apply to that OS). RSTS/E did get memory management directives later, so I assume that virtual arrays are possible there as well. Anyway, so yes, they are allocated in memory, and you (the run time system) perform memory remapping as needed. Also, this means that one page in your virtual memory is reserved for virtual arrays. >> I assume that RSX-11 and RSTS/E had similar capability, although >> perhaps not under >> RSTS/E with the RT-11 emulator using the MMU. On the other hand, even >> under >> the SJ monitor in RT-11, FORTRAN IV supported VIRTUAL with MMU, so >> perhaps >> RSTS/E also found a way. Does anyone know or care at this point? > > In RSTS/E it is disk based, not MMU. Wong. In RSTS/E back then, no support at all. In RSTS/E now, memory management is used. 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 ^ permalink raw reply [flat|nested] 146+ messages in thread
* Re: QBUS Prototyping 2010-04-30 0:51 ` Johnny Billquist @ 2010-04-30 0:58 ` Johnny Billquist 2010-04-30 11:44 ` Jerome H. Fine 0 siblings, 1 reply; 146+ messages in thread From: Johnny Billquist @ 2010-04-30 0:58 UTC (permalink / raw) Reading manuals is always a good thing... Johnny Billquist wrote: > I must correct myself, I see that I have mixed things a little here... > > Johnny Billquist wrote: >> Jerome H. Fine wrote: >>> >John Wallace wrote: >>> >>>> Some of this "big data" stuff could be done relatively simply (from >>>> the programmers point of view) with some flavours of PDP11 FORTRAN, >>>> which had support for VIRTUAL arrays that didn't really fit in memory. >>>> Even where it wasn't officially supported there was sometimes DECUS >>>> code to do something equivalent. Iirc, it was done using on-disk data >>>> structures rather than in-memory, so there would be a significant >>>> speed penalty, even in comparison with the "twiddle the MMU" stuff. >>>> But the user saw it as nice and simple. >>>> >>>> >>> I remember using FORTRAN IV with VIRTUAL around 1985. The >>> application used >>> around 1 MB of arrays in extended memory via the MMU. Somewhere in >>> the DECUS >>> stuff, there is alternative code which can use on-disk data instead >>> which is a reasonable fit >>> when the memory is used as a small disk drive. Under RT-11, the VM: >>> device handler >>> worked well to reduce and actual disk drive's relatively slow >>> transfer rates. >> >> I find that rather unlikely. The array indexing is still just done >> using a 16-bit integer, which limits the size of a virtual array to >> 65536 elements. Even with INTEGER*4, that would only become 256K. 1M >> is just not possible to address with virtual arrays in PDP-11 FORTRAN. >> Neither using FIV or F77. > > Reading through the F77 manual right now, it is a little unclear if > multidimensional arrays are allowed to be larger. > It might be that you can create structures the size of 1M or more with > multidimensional arrays... > I don't have the FIV manual nearby, so I can't check if it have better > information, or other limits. Checked now (for F77). You cannot, in F77 for RSX and RSTS/E atleast, have an array with more than 65536 elements total. No matter in how many dimensions you cut it. So no, you cannot create a data structure that is 1M in size under F77 for RSX or RSTS/E. I know that the F77 for RT-11 is a separate product, so maybe it behaves differently? 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 ^ permalink raw reply [flat|nested] 146+ messages in thread
* Re: QBUS Prototyping 2010-04-30 0:58 ` Johnny Billquist @ 2010-04-30 11:44 ` Jerome H. Fine 0 siblings, 0 replies; 146+ messages in thread From: Jerome H. Fine @ 2010-04-30 11:44 UTC (permalink / raw) >Johnny Billquist wrote: > Reading manuals is always a good thing... YES!! Better more often is to check the actual code. By the way, does anyone know of a RSTS/E system which supports running RT-11 programs that would be available to me to test a few things? I am requesting the availability of software, NOT hardware. I have plenty of hardware available, but no RSTS/E disk images that I can run. I am looking for something that is easy out of the box since I want to test just a few details, in particular how the RT-11 .CHAIN EMT request is handled by the RSTS/E emulation for RT-11. If anyone has a copy of the actual source code which performs that RT-11 emulation under RSTS/E, that would probably be best. Specifically, while the RT-11 .CHAIN EMT request uses ONLY the FOUR words at user memory addresses octal 500 to 506 (that is under RT-11), it looks like RSTS/E also allows the use of the words in the common area (address at octal location 54) to specify the file to be CHAINed to. The PPN is at the first location and is the most important and some documentation suggests that when that first word is non-zero, it is used as the PPN to open the file specified by the FOUR words at 500 to 506. Can anyone confirm of deny this information? Can anyone make available or suggest where to find a RSTS/E disk image which I can use for testing the RT-11 .Chain EMT request? >>>> I remember using FORTRAN IV with VIRTUAL around 1985. The >>>> application used >>>> around 1 MB of arrays in extended memory via the MMU. Somewhere in >>>> the DECUS >>>> stuff, there is alternative code which can use on-disk data instead >>>> which is a reasonable fit >>>> when the memory is used as a small disk drive. Under RT-11, the >>>> VM: device handler >>>> worked well to reduce and actual disk drive's relatively slow >>>> transfer rates. >>> >>> I find that rather unlikely. The array indexing is still just done >>> using a 16-bit integer, which limits the size of a virtual array to >>> 65536 elements. Even with INTEGER*4, that would only become 256K. 1M >>> is just not possible to address with virtual arrays in PDP-11 >>> FORTRAN. Neither using FIV or F77. >> >> Reading through the F77 manual right now, it is a little unclear if >> multidimensional arrays are allowed to be larger. >> It might be that you can create structures the size of 1M or more >> with multidimensional arrays... >> I don't have the FIV manual nearby, so I can't check if it have >> better information, or other limits. > > Checked now (for F77). You cannot, in F77 for RSX and RSTS/E atleast, > have an array with more than 65536 elements total. No matter in how > many dimensions you cut it. So no, you cannot create a data structure > that is 1M in size under F77 for RSX or RSTS/E. I know that the F77 > for RT-11 is a separate product, so maybe it behaves differently? You might have missed the "s" at the end of the words "1 MB of arrays". There was more than one array. This was an FFT application and there was also a co-processor which did the actual calculations. So having special hardware is not new to the PDP-11. Having special features in E11 could be compared to having special hardware on a real DEC PDP-11. Making use of these special features available under E11 would not be possible for those individuals who make the decision to always use real DEC hardware. As for the maximum index allowed in both FORTRAN IV and F77, I seem to remember that under RT-11 implementations, a 16 bit index (INTEGER * 2) was not allowed to have the high order bit on, i.e. FORTRAN treated them as signed integers rather than unsigned. That is not to say that an INTEGER * 4 variable could not be used in F77 which would then allow a value somewhat over 2,000,000,000 and still be positive, however, I don't think that F77 allowed the number of elements of an array to exceed a total of 32767 whether multi-dimensional or not. I don't have the manual handy and, in any case, for something that pushes the limit of the language, I would normally look at the generated code to check for myself. As for the question about values which are still available for instructions, E11 specifically has hooks which allow a user to write a DLL that handles that opcode. In fact, any opcode can be handled by a DLL, already defined or not. The DLL would take priority and execute the instruction as per the DLL. One point is probably helpful to know. Setting the condition code bits after an instruction is emulated probably takes more of the effort than producing the correct result for the instruction, especially since the X86 instructions set rarely sets up the corresponding condition codes. But if the instruction does not need the condition code bits set, then the emulation is rather easier. In addition, the suggestion of using an IOPAGE register to trigger an operation is actually very astute. There are DLL hooks which are specifically targeted to handle the use of IOPAGE registers, EMEM.DLL being just one example which can be downloaded from dbit to have a look at the code. It is quite possible for the DLL to change any value in to PDP-11 registers or memory upon a reference to the IOPAGE register. Any complicated calculation could also be done. While it would not be my first priority (unless there was a very good reason to make it my first priority), an E11 emulation of that co-processor that I mentioned which calculates FFT values from an array in virtual (extended) memory would be very possible. Jerome Fine ^ permalink raw reply [flat|nested] 146+ messages in thread
* Re: QBUS Prototyping 2010-04-30 0:09 ` Johnny Billquist 2010-04-30 0:51 ` Johnny Billquist @ 2010-04-30 14:59 ` Bob Koehler 2010-04-30 18:34 ` glen herrmannsfeldt 1 sibling, 1 reply; 146+ messages in thread From: Bob Koehler @ 2010-04-30 14:59 UTC (permalink / raw) In article <hrd749$37g$1@Iltempo.Update.UU.SE>, Johnny Billquist <bqt@softjar.se> writes: > > I find that rather unlikely. The array indexing is still just done using > a 16-bit integer, which limits the size of a virtual array to 65536 > elements. Even with INTEGER*4, that would only become 256K. 1M is just > not possible to address with virtual arrays in PDP-11 FORTRAN. Neither > using FIV or F77. You talking about a specific Fortran compiler's (or two) limitations, right? INTEGER*4 can reach values of over 2 billion (2^31 - 1). F77 allows the user to specify the start index, so you could use all 32 bits (over 4 billion) to index an array. COMPLEX*16 uses up 16 bytes each, that comes to 64GB in conventional notation. Fortran doesn't care whether the CPU can index using a 16 bit register, calculation the address of an indexed expression by doing the math is a valid approach, and you can certainly manipulate 32 bit integers on a 16 bit PDP-11 (I never saw a Fortran compiler for an -11 that didn't support INTEGER*4). Even using 16 bit indexes to COMPLEX*16 comes out to 1MB. I don't know what limits the F77 compiler you used on your -11 were, and you certainly can't address 64GB on any PDP-11 I've ever seen, but it's not Fortran's limitations. Fortran can index all the RAM you could ever put in a PDP-11 (how wide was the SBI on an 11/70?), even if it might not be easy to implement (and I don't claim to know whether DEC did it). ^ permalink raw reply [flat|nested] 146+ messages in thread
* Re: QBUS Prototyping 2010-04-30 14:59 ` Bob Koehler @ 2010-04-30 18:34 ` glen herrmannsfeldt 0 siblings, 0 replies; 146+ messages in thread From: glen herrmannsfeldt @ 2010-04-30 18:34 UTC (permalink / raw) In alt.sys.pdp11 Bob Koehler <koehler@eisner.nospam.encompasserve.org> wrote: (snip) > Fortran doesn't care whether the CPU can index using a 16 > bit register, calculation the address of an indexed expression by doing > the math is a valid approach, and you can certainly manipulate 32 bit > integers on a 16 bit PDP-11 (I never saw a Fortran compiler for an > -11 that didn't support INTEGER*4). That may be, but as I understand it some compilers only use 16 bits of those INTEGER*4 variables. The Fortran standard requires INTEGER and REAL variables to be the same size. (For example, when EQUIVALENCE is used.) That does not happen by default for most PDP-11 compilers. I don't remember that I ever actually tested this. -- glen ^ permalink raw reply [flat|nested] 146+ messages in thread
* Re: QBUS Prototyping 2010-04-29 7:01 ` John Wallace 2010-04-29 11:19 ` Jerome H. Fine @ 2010-04-29 15:19 ` Bob Koehler 2010-04-30 0:42 ` Johnny Billquist 2010-04-30 0:04 ` Johnny Billquist 2 siblings, 1 reply; 146+ messages in thread From: Bob Koehler @ 2010-04-29 15:19 UTC (permalink / raw) In article <4dff54d9-dfc7-4d90-9307-995e5d96e53f@y36g2000yqm.googlegroups.com>, John Wallace <johnwallace4@yahoo.co.uk> writes: > > Some of this "big data" stuff could be done relatively simply (from > the programmers point of view) with some flavours of PDP11 FORTRAN, > which had support for VIRTUAL arrays that didn't really fit in memory. > Even where it wasn't officially supported there was sometimes DECUS > code to do something equivalent. Iirc, it was done using on-disk data > structures rather than in-memory, so there would be a significant > speed penalty, even in comparison with the "twiddle the MMU" stuff. > But the user saw it as nice and simple. In BASIC you could not only have this kind of big data, if your program was big you could pass that data along as you CHAIN'ed your program together. CHAIN looked a lot like a subroutine call, but it was implemented by loading totally new code. ^ permalink raw reply [flat|nested] 146+ messages in thread
* Re: QBUS Prototyping 2010-04-29 15:19 ` Bob Koehler @ 2010-04-30 0:42 ` Johnny Billquist 0 siblings, 0 replies; 146+ messages in thread From: Johnny Billquist @ 2010-04-30 0:42 UTC (permalink / raw) Bob Koehler wrote: > In article <4dff54d9-dfc7-4d90-9307-995e5d96e53f@y36g2000yqm.googlegroups.com>, John Wallace <johnwallace4@yahoo.co.uk> writes: >> Some of this "big data" stuff could be done relatively simply (from >> the programmers point of view) with some flavours of PDP11 FORTRAN, >> which had support for VIRTUAL arrays that didn't really fit in memory. >> Even where it wasn't officially supported there was sometimes DECUS >> code to do something equivalent. Iirc, it was done using on-disk data >> structures rather than in-memory, so there would be a significant >> speed penalty, even in comparison with the "twiddle the MMU" stuff. >> But the user saw it as nice and simple. > > In BASIC you could not only have this kind of big data, if your > program was big you could pass that data along as you CHAIN'ed > your program together. > > CHAIN looked a lot like a subroutine call, but it was implemented > by loading totally new code. Talking of RSTS/E now, I assume... You could not really pass that much data between different programs. A CHAIN would wipe the memory, and as far as I can remember, files were not left open between programs. You you have the core common, in which you could save a little data between programs. About 512 bytes or so. And that was it. If you had more data, you had to write it to a normal file, which the program you chained to could then open, and read the data back from. Pretty simple and obvious. Virtual arrays in BASIC+ were also associated with a file. Hmm, you could probably let that file survive across a CHAIN though, and in that way preserve the values (close file, chain, open file, dimension virtual array). Maybe that is what you meant? 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 ^ permalink raw reply [flat|nested] 146+ messages in thread
* Re: QBUS Prototyping 2010-04-29 7:01 ` John Wallace 2010-04-29 11:19 ` Jerome H. Fine 2010-04-29 15:19 ` Bob Koehler @ 2010-04-30 0:04 ` Johnny Billquist 2 siblings, 0 replies; 146+ messages in thread From: Johnny Billquist @ 2010-04-30 0:04 UTC (permalink / raw) John Wallace wrote: > Some of this "big data" stuff could be done relatively simply (from > the programmers point of view) with some flavours of PDP11 FORTRAN, > which had support for VIRTUAL arrays that didn't really fit in memory. > Even where it wasn't officially supported there was sometimes DECUS > code to do something equivalent. Iirc, it was done using on-disk data > structures rather than in-memory, so there would be a significant > speed penalty, even in comparison with the "twiddle the MMU" stuff. > But the user saw it as nice and simple. Yeah. Virtual arrays can be done. Disk-mapped memory. I've done the same thing, with ZEMU for instance. As you note, the speed penality is even "worse", but definitely doable. Never said it couldn't be done... :-) 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 ^ permalink raw reply [flat|nested] 146+ messages in thread
* Re: QBUS Prototyping 2010-04-29 0:20 ` Johnny Billquist 2010-04-29 1:15 ` Johnny Billquist @ 2010-04-29 15:17 ` Bob Koehler 1 sibling, 0 replies; 146+ messages in thread From: Bob Koehler @ 2010-04-29 15:17 UTC (permalink / raw) In article <hrajck$cse$2@Iltempo.Update.UU.SE>, Johnny Billquist <bqt@softjar.se> writes: > Yes. Readonly data. Not read/write. And that also assumes that you are > *not* using split I/D space. No. Read/write data. You had to deal with the fact that a disk resident overlay would reinitialize the data, and a memory resident over would not. ^ permalink raw reply [flat|nested] 146+ messages in thread
* Re: QBUS Prototyping 2010-04-27 7:37 ` Johnny Billquist 2010-04-27 7:58 ` Bob Eager 2010-04-27 14:53 ` Bob Koehler @ 2010-04-27 15:43 ` jjh 2010-04-27 16:04 ` Richard B. Gilbert ` (2 more replies) 2 siblings, 3 replies; 146+ messages in thread From: jjh @ 2010-04-27 15:43 UTC (permalink / raw) On Apr 27, 3:37 am, Johnny Billquist <b...@softjar.se> wrote: > Bob Koehler wrote: > > In article <hr2d9r$l...@Iltempo.Update.UU.SE>, Johnny Billquist <b...@softjar.se> writes: > >> The PDP-11 is a 16-bit machine, meaning a 16-bit address space. That is > >> 64K (bytes). > >> On some machine, you can get away with 64K data and 64K code. But that's > >> the limit before it gets ugly... > > > I never had a PDP-11 with less than 18 bit address space. > > Instructions could only access 16 bits of it at a time, but the > > hardware was there to make use of the rest of it. > > Yes... As you yourself note - you can only access 16 bits of it. The > fact that the physical address can be more makes little difference. > That's from the MMU, not the CPU. In order to play with a larger address > space you either have to manipulate the MMU directly (not likely if you > are using any OS), or else use OS services to change you memory mapping > (assuming the OS even allows you). > > And that is where it gets "ugly" as I put it. Big performance penalties > involved, as well as becoming complex. > > Johnny > > -- > Johnny Billquist || "I'm on a bus > || on a psychedelic trip > email: b...@softjar.se || Reading murder books > pdp is alive! || tryin' to stay hip" - B. Idol "ugly".....from an architectural perspective the MMU organization and operation is elegant (for the pdp11) IMHO. The dynamic address translation is fast and actually has very little performance impacts (in general). Cache organization and reload policies affect the overall performance as well. In studies I did many many moons ago, performance impacts on address translation were minimal. It has been so long ago but there are many conference papers that did studies showing performance effects of various MMU schemes and coupled with cache schemes. Pullling in pages from disk at runtime is very costly but doing this at load time reduces the runtime performance hit quite a bit. Point is, from one perspective, performance was enhanced (pages already in memory, no disk load latencies), the time to do address translation is less than 1-2% of instruction execution time, hardly 'significant'. Things got a little more interesting with the vax architecture - Some of the 'modes' of address translation were, in my mind, somewhat convoluted. I'd have to digout some of my research papers to discuss specifics. The MMU 'complexity' got a bit out of control, partly because of the multitude of addressing modes of the CPU. It has been argued that the VAX architecture 'went overboard' in the ISA, losing the simple elegance that the PDP family embodied. The VAX ISA was typically used in comparison to RISC architectures as a reason not to develop CISC machines....but those are arguments for another time.... John ^ permalink raw reply [flat|nested] 146+ messages in thread
* Re: QBUS Prototyping 2010-04-27 15:43 ` jjh @ 2010-04-27 16:04 ` Richard B. Gilbert 2010-04-28 9:20 ` Johnny Billquist 2010-04-27 22:27 ` Bob Koehler 2010-04-28 9:18 ` Johnny Billquist 2 siblings, 1 reply; 146+ messages in thread From: Richard B. Gilbert @ 2010-04-27 16:04 UTC (permalink / raw) jjh wrote: > On Apr 27, 3:37 am, Johnny Billquist <b...@softjar.se> wrote: >> Bob Koehler wrote: >>> In article <hr2d9r$l...@Iltempo.Update.UU.SE>, Johnny Billquist <b...@softjar.se> writes: >>>> The PDP-11 is a 16-bit machine, meaning a 16-bit address space. That is >>>> 64K (bytes). >>>> On some machine, you can get away with 64K data and 64K code. But that's >>>> the limit before it gets ugly... >>> I never had a PDP-11 with less than 18 bit address space. >>> Instructions could only access 16 bits of it at a time, but the >>> hardware was there to make use of the rest of it. >> Yes... As you yourself note - you can only access 16 bits of it. The >> fact that the physical address can be more makes little difference. >> That's from the MMU, not the CPU. In order to play with a larger address >> space you either have to manipulate the MMU directly (not likely if you >> are using any OS), or else use OS services to change you memory mapping >> (assuming the OS even allows you). >> >> And that is where it gets "ugly" as I put it. Big performance penalties >> involved, as well as becoming complex. >> >> Johnny >> >> -- >> Johnny Billquist || "I'm on a bus >> || on a psychedelic trip >> email: b...@softjar.se || Reading murder books >> pdp is alive! || tryin' to stay hip" - B. Idol > > "ugly".....from an architectural perspective the MMU organization and > operation is elegant (for the pdp11) IMHO. I'll take a 64 bit machine thank you! And if I never have to use the "task builder" again, so much the better! ^ permalink raw reply [flat|nested] 146+ messages in thread
* Re: QBUS Prototyping 2010-04-27 16:04 ` Richard B. Gilbert @ 2010-04-28 9:20 ` Johnny Billquist 2010-04-28 16:12 ` Richard B. Gilbert 0 siblings, 1 reply; 146+ messages in thread From: Johnny Billquist @ 2010-04-28 9:20 UTC (permalink / raw) Richard B. Gilbert wrote: > jjh wrote: >> On Apr 27, 3:37 am, Johnny Billquist <b...@softjar.se> wrote: >>> Bob Koehler wrote: >>>> In article <hr2d9r$l...@Iltempo.Update.UU.SE>, Johnny Billquist >>>> <b...@softjar.se> writes: >>>>> The PDP-11 is a 16-bit machine, meaning a 16-bit address space. >>>>> That is >>>>> 64K (bytes). >>>>> On some machine, you can get away with 64K data and 64K code. But >>>>> that's >>>>> the limit before it gets ugly... >>>> I never had a PDP-11 with less than 18 bit address space. >>>> Instructions could only access 16 bits of it at a time, but the >>>> hardware was there to make use of the rest of it. >>> Yes... As you yourself note - you can only access 16 bits of it. The >>> fact that the physical address can be more makes little difference. >>> That's from the MMU, not the CPU. In order to play with a larger address >>> space you either have to manipulate the MMU directly (not likely if you >>> are using any OS), or else use OS services to change you memory mapping >>> (assuming the OS even allows you). >>> >>> And that is where it gets "ugly" as I put it. Big performance penalties >>> involved, as well as becoming complex. >>> >>> Johnny >>> >>> -- >>> Johnny Billquist || "I'm on a bus >>> || on a psychedelic trip >>> email: b...@softjar.se || Reading murder books >>> pdp is alive! || tryin' to stay hip" - B. Idol >> >> "ugly".....from an architectural perspective the MMU organization and >> operation is elegant (for the pdp11) IMHO. > > I'll take a 64 bit machine thank you! > > And if I never have to use the "task builder" again, so much the better! :-) Actually, while more address space makes some things much easer to solve, there just isn't that much fun programming modern computers. And TKB might have been slow, but it's vary good. And they finally managed to get it atleast a significant fraction faster, by finally making it split I/D space, and using the supervisor mode libraries for FCS. That have made a big impact on the speed, actually. Of course, not all systems can use that version... 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 ^ permalink raw reply [flat|nested] 146+ messages in thread
* Re: QBUS Prototyping 2010-04-28 9:20 ` Johnny Billquist @ 2010-04-28 16:12 ` Richard B. Gilbert 0 siblings, 0 replies; 146+ messages in thread From: Richard B. Gilbert @ 2010-04-28 16:12 UTC (permalink / raw) Johnny Billquist wrote: > Richard B. Gilbert wrote: >> jjh wrote: >>> On Apr 27, 3:37 am, Johnny Billquist <b...@softjar.se> wrote: >>>> Bob Koehler wrote: >>>>> In article <hr2d9r$l...@Iltempo.Update.UU.SE>, Johnny Billquist >>>>> <b...@softjar.se> writes: >>>>>> The PDP-11 is a 16-bit machine, meaning a 16-bit address space. >>>>>> That is >>>>>> 64K (bytes). >>>>>> On some machine, you can get away with 64K data and 64K code. But >>>>>> that's >>>>>> the limit before it gets ugly... >>>>> I never had a PDP-11 with less than 18 bit address space. >>>>> Instructions could only access 16 bits of it at a time, but the >>>>> hardware was there to make use of the rest of it. >>>> Yes... As you yourself note - you can only access 16 bits of it. The >>>> fact that the physical address can be more makes little difference. >>>> That's from the MMU, not the CPU. In order to play with a larger >>>> address >>>> space you either have to manipulate the MMU directly (not likely if you >>>> are using any OS), or else use OS services to change you memory mapping >>>> (assuming the OS even allows you). >>>> >>>> And that is where it gets "ugly" as I put it. Big performance penalties >>>> involved, as well as becoming complex. >>>> >>>> Johnny >>>> >>>> -- >>>> Johnny Billquist || "I'm on a bus >>>> || on a psychedelic trip >>>> email: b...@softjar.se || Reading murder books >>>> pdp is alive! || tryin' to stay hip" - B. Idol >>> >>> "ugly".....from an architectural perspective the MMU organization and >>> operation is elegant (for the pdp11) IMHO. >> >> I'll take a 64 bit machine thank you! >> >> And if I never have to use the "task builder" again, so much the better! > > :-) > Actually, while more address space makes some things much easer to > solve, there just isn't that much fun programming modern computers. > And TKB might have been slow, but it's vary good. > And they finally managed to get it atleast a significant fraction > faster, by finally making it split I/D space, and using the supervisor > mode libraries for FCS. > That have made a big impact on the speed, actually. Of course, not all > systems can use that version... > > Johnny > Since I learned on a 24 bit machine (SDS 930) I didn't have to worry too much about memory management, overlays, and all that crap. My PDP11 experience came much later and after I had learned IBM System/360 and VAX/VMS. I found the Micro 11/??? very limited and unsatisfying. ^ permalink raw reply [flat|nested] 146+ messages in thread
* Re: QBUS Prototyping 2010-04-27 15:43 ` jjh 2010-04-27 16:04 ` Richard B. Gilbert @ 2010-04-27 22:27 ` Bob Koehler 2010-04-28 9:18 ` Johnny Billquist 2 siblings, 0 replies; 146+ messages in thread From: Bob Koehler @ 2010-04-27 22:27 UTC (permalink / raw) In article <e73480e2-6c43-4d3b-b6dd-df695f696514@b6g2000yqi.googlegroups.com>, jjh <jjhudak@gmail.com> writes: > Things got a little more interesting with the vax architecture - Some > of the 'modes' of address translation were, in my mind, somewhat > convoluted. On the original VAX 11/780, the floating point accelerator accually did much more than accelerate floating point. The FPA was inserted into the data path between the memory and the CPU, it would calculate results and feed the CPU instructions to store the result along with some NOPs to pad so that branches came out correctly. It also carried out many of those complex addressing modes. So by the time the 11/780 CPU got them, instructions had a tendency to get significantly simplified. I don't know how many other models of the VAX implemented thier FPA this way, but I don't think these ideas were lost on folks building the high end systems. (I was so disapointed when I found out that all the things I learned to speed up via unusual uses of MOVCx and POLYx on my 11/780 trapped to an emulation on my MicroVAX II and became much slower than straightforward code.) ^ permalink raw reply [flat|nested] 146+ messages in thread
* Re: QBUS Prototyping 2010-04-27 15:43 ` jjh 2010-04-27 16:04 ` Richard B. Gilbert 2010-04-27 22:27 ` Bob Koehler @ 2010-04-28 9:18 ` Johnny Billquist 2 siblings, 0 replies; 146+ messages in thread From: Johnny Billquist @ 2010-04-28 9:18 UTC (permalink / raw) jjh wrote: > On Apr 27, 3:37 am, Johnny Billquist <b...@softjar.se> wrote: >> Bob Koehler wrote: >>> In article <hr2d9r$l...@Iltempo.Update.UU.SE>, Johnny Billquist <b...@softjar.se> writes: >>>> The PDP-11 is a 16-bit machine, meaning a 16-bit address space. That is >>>> 64K (bytes). >>>> On some machine, you can get away with 64K data and 64K code. But that's >>>> the limit before it gets ugly... >>> I never had a PDP-11 with less than 18 bit address space. >>> Instructions could only access 16 bits of it at a time, but the >>> hardware was there to make use of the rest of it. >> Yes... As you yourself note - you can only access 16 bits of it. The >> fact that the physical address can be more makes little difference. >> That's from the MMU, not the CPU. In order to play with a larger address >> space you either have to manipulate the MMU directly (not likely if you >> are using any OS), or else use OS services to change you memory mapping >> (assuming the OS even allows you). >> >> And that is where it gets "ugly" as I put it. Big performance penalties >> involved, as well as becoming complex. >> >> Johnny >> >> -- >> Johnny Billquist || "I'm on a bus >> || on a psychedelic trip >> email: b...@softjar.se || Reading murder books >> pdp is alive! || tryin' to stay hip" - B. Idol > > "ugly".....from an architectural perspective the MMU organization and > operation is elegant (for the pdp11) IMHO. The dynamic address > translation is fast and actually has very little performance impacts > (in general). Cache organization and reload policies affect the > overall performance as well. In studies I did many many moons ago, > performance impacts on address translation were minimal. It has been > so long ago but there are many conference papers that did studies > showing performance effects of various MMU schemes and coupled with > cache schemes. Pullling in pages from disk at runtime is very costly > but doing this at load time reduces the runtime performance hit quite > a bit. Point is, from one perspective, performance was enhanced (pages > already in memory, no disk load latencies), the time to do address > translation is less than 1-2% of instruction execution time, hardly > 'significant'. > Things got a little more interesting with the vax architecture - Some > of the 'modes' of address translation were, in my mind, somewhat > convoluted. I'd have to digout some of my research papers to discuss > specifics. The MMU 'complexity' got a bit out of control, partly > because of the multitude of addressing modes of the CPU. It has been > argued that the VAX architecture 'went overboard' in the ISA, losing > the simple elegance that the PDP family embodied. The VAX ISA was > typically used in comparison to RISC architectures as a reason not > to develop CISC machines....but those are arguments for another > time.... > John Sigh. Sometimes I wonder if people read what I write. Thanks for a long text on another subject, and I totally agree with most you write. I know that the MMU design of the VAX was changed halfway through because the original design was too complex to implement, but it would have been a nicer design. But that's the compromises you have to do when trying to make a product... But my comment about performance hit and uglyness was about the *changing* of the mapping in the program. When running under an OS, you cannot just go out and change the PAR when you want. You'll have to do a system call, which takes quite a lot of time. That time is actually so significant that DEC even implemented a special hack system call for just doing memory mapping changes in RSX (called fast map) to help improve this. But it is still quite a lot compared to any "normal" instruction. And the uglyness comes from having to design a program to run on the PDP-11, when that program requires so much data that I actually do need to play with the memory mappings to get enough data space to do what needs to be done. It has nothing to do with the PDP-11 architecture itself... 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 ^ permalink raw reply [flat|nested] 146+ messages in thread
* Re: QBUS Prototyping 2010-04-26 15:40 ` Bob Koehler 2010-04-27 7:37 ` Johnny Billquist @ 2011-04-18 13:00 ` Bob Koehler 2011-04-18 15:06 ` Johnny Billquist 1 sibling, 1 reply; 146+ messages in thread From: Bob Koehler @ 2011-04-18 13:00 UTC (permalink / raw) In article <FgC+HafqKJY6@eisner.encompasserve.org>, koehler@eisner.nospam.encompasserve.org (Bob Koehler) writes: > > I never had a PDP-11 with less than 18 bit address space. > Instructions could only access 16 bits of it at a time, but the > hardware was there to make use of the rest of it. Maybe you didn't, but many of us did. And on PDP-11 with 18 bit UNIBUS, we had some systems which were limitted to 16 bit RAM. (By design, not by purchase). No APRs, no need for them. ^ permalink raw reply [flat|nested] 146+ messages in thread
* Re: QBUS Prototyping 2011-04-18 13:00 ` Bob Koehler @ 2011-04-18 15:06 ` Johnny Billquist 0 siblings, 0 replies; 146+ messages in thread From: Johnny Billquist @ 2011-04-18 15:06 UTC (permalink / raw) On 2011-04-18 06:00, Bob Koehler wrote: > In article<FgC+HafqKJY6@eisner.encompasserve.org>, koehler@eisner.nospam.encompasserve.org (Bob Koehler) writes: >> >> I never had a PDP-11 with less than 18 bit address space. >> Instructions could only access 16 bits of it at a time, but the >> hardware was there to make use of the rest of it. > > Maybe you didn't, but many of us did. And on PDP-11 with 18 > bit UNIBUS, we had some systems which were limitted to 16 bit RAM. > (By design, not by purchase). > > No APRs, no need for them. The Unibus is always 18 address bits. A PDP-11 without MMU can only use 16 bits of addressing. All PDP-11s start running with MMU turned off, which means that you only have 16-bit address space. When you turn on the MMU you get 18 bit, or 22 bit, depending on model, and how you set up the MMU. The same is true for both Unibus and Q-bus. Although at 22-bit mode, the Unibus and Q-bus machines (obviously) differ, since Q-bus have 22 address bits available, while the Unibus don't. That's why Unibus machines that support 22-bit physical addressing have a Unibus map. (The CPU can access all 22 bits of memory, but Unibus DMA devices can not.) 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 ^ permalink raw reply [flat|nested] 146+ messages in thread
* Re: QBUS Prototyping 2010-04-25 11:33 ` Johnny Billquist 2010-04-25 12:17 ` glen herrmannsfeldt 2010-04-25 13:58 ` Steven Schweda @ 2011-04-18 12:56 ` Bob Koehler 2011-04-18 15:07 ` Johnny Billquist 2 siblings, 1 reply; 146+ messages in thread From: Bob Koehler @ 2011-04-18 12:56 UTC (permalink / raw) In article <hr19ad$m2m$1@Iltempo.Update.UU.SE>, Johnny Billquist <bqt@softjar.se> writes: > > (Oh, and a VAX is not a PDP... :-) That's right. No VAX ever implemented the MARK instruction. Now can you find a PDP-11 programmer who actually used it? ^ permalink raw reply [flat|nested] 146+ messages in thread
* Re: QBUS Prototyping 2011-04-18 12:56 ` Bob Koehler @ 2011-04-18 15:07 ` Johnny Billquist 2011-04-18 17:26 ` Michael Moroney 2011-04-18 17:49 ` Bob Koehler 0 siblings, 2 replies; 146+ messages in thread From: Johnny Billquist @ 2011-04-18 15:07 UTC (permalink / raw) On 2011-04-18 05:56, Bob Koehler wrote: > In article<hr19ad$m2m$1@Iltempo.Update.UU.SE>, Johnny Billquist<bqt@softjar.se> writes: >> >> (Oh, and a VAX is not a PDP... :-) > > That's right. No VAX ever implemented the MARK instruction. Now > can you find a PDP-11 programmer who actually used it? I used it. But only to test how to, and then decided "never more". :-) 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 ^ permalink raw reply [flat|nested] 146+ messages in thread
* Re: QBUS Prototyping 2011-04-18 15:07 ` Johnny Billquist @ 2011-04-18 17:26 ` Michael Moroney 2011-04-18 17:53 ` Bob Koehler 2011-04-19 3:35 ` Johnny Billquist 2011-04-18 17:49 ` Bob Koehler 1 sibling, 2 replies; 146+ messages in thread From: Michael Moroney @ 2011-04-18 17:26 UTC (permalink / raw) Johnny Billquist <bqt@softjar.se> writes: >On 2011-04-18 05:56, Bob Koehler wrote: >> In article<hr19ad$m2m$1@Iltempo.Update.UU.SE>, Johnny Billquist<bqt@softjar.se> writes: >>> >>> (Oh, and a VAX is not a PDP... :-) >> >> That's right. No VAX ever implemented the MARK instruction. Now >> can you find a PDP-11 programmer who actually used it? >I used it. >But only to test how to, and then decided "never more". :-) I'm guessing that instruction was developed for some compiler(s) which had some bizarre linkages for subroutines, and very few, if any, assembly language programmers ever used it, beyond trying to figure out what to do with it. (next question, which compiler(s) used it?) ^ permalink raw reply [flat|nested] 146+ messages in thread
* Re: QBUS Prototyping 2011-04-18 17:26 ` Michael Moroney @ 2011-04-18 17:53 ` Bob Koehler 2011-04-19 3:35 ` Johnny Billquist 1 sibling, 0 replies; 146+ messages in thread From: Bob Koehler @ 2011-04-18 17:53 UTC (permalink / raw) In article <iohs8j$ha6$1@pcls6.std.com>, moroney@world.std.spaamtrap.com (Michael Moroney) writes: > > I'm guessing that instruction was developed for some compiler(s) which had > some bizarre linkages for subroutines, and very few, if any, assembly > language programmers ever used it, beyond trying to figure out what to do > with it. I've worked with non-stack oriented systems that passed their arguments via memory resident linkages. MARK looked to me like an attempt to do something like that, but in a way that it actually had to use a stack. ^ permalink raw reply [flat|nested] 146+ messages in thread
* Re: QBUS Prototyping 2011-04-18 17:26 ` Michael Moroney 2011-04-18 17:53 ` Bob Koehler @ 2011-04-19 3:35 ` Johnny Billquist 2011-04-19 15:34 ` Michael Moroney 1 sibling, 1 reply; 146+ messages in thread From: Johnny Billquist @ 2011-04-19 3:35 UTC (permalink / raw) On 2011-04-18 10:26, Michael Moroney wrote: > Johnny Billquist<bqt@softjar.se> writes: > >> On 2011-04-18 05:56, Bob Koehler wrote: >>> In article<hr19ad$m2m$1@Iltempo.Update.UU.SE>, Johnny Billquist<bqt@softjar.se> writes: >>>> >>>> (Oh, and a VAX is not a PDP... :-) >>> >>> That's right. No VAX ever implemented the MARK instruction. Now >>> can you find a PDP-11 programmer who actually used it? > >> I used it. >> But only to test how to, and then decided "never more". :-) > > I'm guessing that instruction was developed for some compiler(s) which had > some bizarre linkages for subroutines, and very few, if any, assembly > language programmers ever used it, beyond trying to figure out what to do > with it. One rumour has it that it was developed in order to extend some patent or something. Another would be that they were just crazy. I've not seen a single compiler use the subroutine linkage that explicitly makes the MARK instruction meaningful, and besides. It is not usable if you have split I/D space. > (next question, which compiler(s) used it?) I have no idea. 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 ^ permalink raw reply [flat|nested] 146+ messages in thread
* Re: QBUS Prototyping 2011-04-19 3:35 ` Johnny Billquist @ 2011-04-19 15:34 ` Michael Moroney 2011-04-19 16:47 ` Johnny Billquist 0 siblings, 1 reply; 146+ messages in thread From: Michael Moroney @ 2011-04-19 15:34 UTC (permalink / raw) Johnny Billquist <bqt@softjar.se> writes: >One rumour has it that it was developed in order to extend some patent >or something. I heard the same little birdie, and it certainly makes sense, to make the instruction set unique. Someone could probably find another processor or processors that essentially implement each of the other PDP-11 instructions. Kind of like deliberate errors added to copyrighted maps. >Another would be that they were just crazy. That certainly would have helped! >I've not seen a single compiler use the subroutine linkage that >explicitly makes the MARK instruction meaningful, and besides. It is not >usable if you have split I/D space. I won't claim there is one, esp. if it doesn't work with split I/D space. >> (next question, which compiler(s) used it?) >I have no idea. ^ permalink raw reply [flat|nested] 146+ messages in thread
* Re: QBUS Prototyping 2011-04-19 15:34 ` Michael Moroney @ 2011-04-19 16:47 ` Johnny Billquist 0 siblings, 0 replies; 146+ messages in thread From: Johnny Billquist @ 2011-04-19 16:47 UTC (permalink / raw) On 2011-04-19 08:34, Michael Moroney wrote: > Johnny Billquist<bqt@softjar.se> writes: > >> One rumour has it that it was developed in order to extend some patent >> or something. > > I heard the same little birdie, and it certainly makes sense, to make the > instruction set unique. Someone could probably find another processor or > processors that essentially implement each of the other PDP-11 > instructions. Kind of like deliberate errors added to copyrighted maps. Yeah. >> Another would be that they were just crazy. > > That certainly would have helped! :-) >> I've not seen a single compiler use the subroutine linkage that >> explicitly makes the MARK instruction meaningful, and besides. It is not >> usable if you have split I/D space. > > I won't claim there is one, esp. if it doesn't work with split I/D space. And it won't. The idea with the MARK instruction is that it is pushed on the stack. At subroutine return, you are then supposed to jump to where the stack pointer points, and execute there, which is on the stack. This will clean up the stack, and restore PC. So stack needs to be in I-space. But for all other purposes stack is in D-space. So in short, stack needs to be in both I-space and D-space for the MARK instruction to work. So it can't be split. Pretty useless, if you ask me. And all just for making the cleaning of the stack from arguments to the function a little more streamlined. Having just an ADD #n,SP works just as fine, and do work with split I/D-space. :-) The difference being that the caller needs to clean the stack explicitly after a call, while with MARK, the caller push the MARK before calling, and the stack is cleaned as a part of the return. 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 ^ permalink raw reply [flat|nested] 146+ messages in thread
* Re: QBUS Prototyping 2011-04-18 15:07 ` Johnny Billquist 2011-04-18 17:26 ` Michael Moroney @ 2011-04-18 17:49 ` Bob Koehler 2011-04-19 3:36 ` Johnny Billquist 1 sibling, 1 reply; 146+ messages in thread From: Bob Koehler @ 2011-04-18 17:49 UTC (permalink / raw) In article <iohk2q$kmg$2@Iltempo.Update.UU.SE>, Johnny Billquist <bqt@softjar.se> writes: > > I used it. > But only to test how to, and then decided "never more". :-) Yes, I did that once. It was quite painfull. It looked to me like whoever designed it didn't actually get what he intended. ^ permalink raw reply [flat|nested] 146+ messages in thread
* Re: QBUS Prototyping 2011-04-18 17:49 ` Bob Koehler @ 2011-04-19 3:36 ` Johnny Billquist 0 siblings, 0 replies; 146+ messages in thread From: Johnny Billquist @ 2011-04-19 3:36 UTC (permalink / raw) On 2011-04-18 10:49, Bob Koehler wrote: > In article<iohk2q$kmg$2@Iltempo.Update.UU.SE>, Johnny Billquist<bqt@softjar.se> writes: >> >> I used it. >> But only to test how to, and then decided "never more". :-) > > Yes, I did that once. It was quite painfull. It looked to me > like whoever designed it didn't actually get what he intended. Yes. That sounds like a reasonable guess. 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 ^ permalink raw reply [flat|nested] 146+ messages in thread
* Re: QBUS Prototyping 2010-04-18 13:23 ` Johnny Billquist 2010-04-18 16:58 ` glen herrmannsfeldt @ 2011-04-18 12:52 ` Bob Koehler 2011-04-18 15:11 ` Johnny Billquist 2011-04-19 10:29 ` FTP is 40 years old Paul Sture 1 sibling, 2 replies; 146+ messages in thread From: Bob Koehler @ 2011-04-18 12:52 UTC (permalink / raw) In article <hqf13t$e29$1@Iltempo.Update.UU.SE>, Johnny Billquist <bqt@softjar.se> writes: > Actually, ftp don't have these problems. > ftp was designed to walk around these exact problems. So, ftp deals with > records, where each side are free to perform whatever stuff needed to > figure out what a record is, how to store and retrieve it, and so on. > So for Unix systems, if you transfer in ASCII mode, a record is the data > between two LF. The data is sent over, with the FTP definition of record > terminator, and the other side then strip of the FTP record terminator, > and writes the record to disk, with whatever tricks needed on that > system (like adding an LF on a Unix system). FTP doesn't really have the concept of records. It has the concept of text files containing lines of text. It transfers these via a standard that calls for lines of text to be separated by CRLF pairs. The OS on each end is free to do it's own thing in deciding how to store those lines of text. If FTP really had the concept of records, I could transmit a record with a CRLF pair in the middle. FTP can't handle that idea. Some OS use conventions that can't handle it, either. IMHO, this is better than lines of text separated by a single character, because I can embed a CR or an LF, or any other byte in the line of text, whether the OS at either end can deal with it or not. (It's not FTP's fault if the OS can't handle it). And in practice, I would not trust any FTP client or FTP server to transmit a line of text containing an embeded null character without first proving to myself that it worked. Nor would I be particularly comfortable that it was unlikely to break in some future update. Well, OK, maybe if I was transfering the text between two systems that implimented STRU VMS. ^ permalink raw reply [flat|nested] 146+ messages in thread
* Re: QBUS Prototyping 2011-04-18 12:52 ` Bob Koehler @ 2011-04-18 15:11 ` Johnny Billquist 2011-04-18 17:51 ` Bob Koehler 2011-04-19 10:29 ` FTP is 40 years old Paul Sture 1 sibling, 1 reply; 146+ messages in thread From: Johnny Billquist @ 2011-04-18 15:11 UTC (permalink / raw) On 2011-04-18 05:52, Bob Koehler wrote: > In article<hqf13t$e29$1@Iltempo.Update.UU.SE>, Johnny Billquist<bqt@softjar.se> writes: > >> Actually, ftp don't have these problems. >> ftp was designed to walk around these exact problems. So, ftp deals with >> records, where each side are free to perform whatever stuff needed to >> figure out what a record is, how to store and retrieve it, and so on. >> So for Unix systems, if you transfer in ASCII mode, a record is the data >> between two LF. The data is sent over, with the FTP definition of record >> terminator, and the other side then strip of the FTP record terminator, >> and writes the record to disk, with whatever tricks needed on that >> system (like adding an LF on a Unix system). > > FTP doesn't really have the concept of records. It has the concept > of text files containing lines of text. It transfers these via a > standard that calls for lines of text to be separated by CRLF pairs. > The OS on each end is free to do it's own thing in deciding how to > store those lines of text. > > If FTP really had the concept of records, I could transmit a record > with a CRLF pair in the middle. FTP can't handle that idea. Some > OS use conventions that can't handle it, either. You can, and ftp do. CRLF in the middle of records must be encoded so not to be confused with the record terminator. And ftp have a way for doing that. Unless I remember wrong, you do (to transfer a CRLF in the middle of a record) encode it as CR+NUL+LF. The NUL will be stripped away by the receiving side, and the CRLF will be embedded within the record. > IMHO, this is better than lines of text separated by a single > character, because I can embed a CR or an LF, or any other byte in > the line of text, whether the OS at either end can deal with it or > not. (It's not FTP's fault if the OS can't handle it). Right. > And in practice, I would not trust any FTP client or FTP server to > transmit a line of text containing an embeded null character without > first proving to myself that it worked. Nor would I be particularly > comfortable that it was unlikely to break in some future update. Hmm. I should check this, but I believe ftp also specifies how to handle NUL characters correctly. Of course, you can always find standards breaking software. > Well, OK, maybe if I was transfering the text between two systems that > implimented STRU VMS. It should not make a difference. 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 ^ permalink raw reply [flat|nested] 146+ messages in thread
* Re: QBUS Prototyping 2011-04-18 15:11 ` Johnny Billquist @ 2011-04-18 17:51 ` Bob Koehler 0 siblings, 0 replies; 146+ messages in thread From: Bob Koehler @ 2011-04-18 17:51 UTC (permalink / raw) In article <iohkc0$kn7$1@Iltempo.Update.UU.SE>, Johnny Billquist <bqt@softjar.se> writes: > >> And in practice, I would not trust any FTP client or FTP server to >> transmit a line of text containing an embeded null character without >> first proving to myself that it worked. Nor would I be particularly >> comfortable that it was unlikely to break in some future update. > > Hmm. I should check this, but I believe ftp also specifies how to handle > NUL characters correctly. > Of course, you can always find standards breaking software. Yes, that's the point. It's trivial to write C code that can't handle nulls in text. FTP as a standard has no problem with it, but the odds of running into a non-conforming implementation on this one are failry high. > >> Well, OK, maybe if I was transfering the text between two systems that >> implimented STRU VMS. > > It should not make a difference. STRU VMS implements records. Whatever you want in them. ^ permalink raw reply [flat|nested] 146+ messages in thread
* FTP is 40 years old 2011-04-18 12:52 ` Bob Koehler 2011-04-18 15:11 ` Johnny Billquist @ 2011-04-19 10:29 ` Paul Sture 1 sibling, 0 replies; 146+ messages in thread From: Paul Sture @ 2011-04-19 10:29 UTC (permalink / raw) In article <fL0rvC78zeBu@eisner.encompasserve.org>, koehler@eisner.nospam.encompasserve.org (Bob Koehler) wrote: > FTP doesn't really have the concept of records. It has the concept > of text files containing lines of text. It transfers these via a > standard that calls for lines of text to be separated by CRLF pairs. > The OS on each end is free to do it's own thing in deciding how to > store those lines of text. Your mention of FTP reminds me that it is 40 years old. More precisely, 16th April 1971 was the date RFC 114 was published. http://www.bit-tech.net/news/hardware/2011/04/15/ftp-is-40-years-old/1 -- Paul Sture ^ permalink raw reply [flat|nested] 146+ messages in thread
* Re: QBUS Prototyping 2010-04-08 21:01 ` Bill Gunshannon 2010-04-08 21:58 ` Rob Jarratt 2010-04-08 21:59 ` glen herrmannsfeldt @ 2010-04-09 14:39 ` Bob Koehler 2010-04-09 16:00 ` Bill Gunshannon 2010-04-15 6:12 ` Antti Louko 2010-04-15 17:19 ` Scott Dorsey 3 siblings, 2 replies; 146+ messages in thread From: Bob Koehler @ 2010-04-09 14:39 UTC (permalink / raw) In article <826uhoFu5dU1@mid.individual.net>, billg999@cs.uofs.edu (Bill Gunshannon) writes: > > For those who's curiosity has been piqued, I heve recently seen a few > examples of boards that interface IDE disks to the raw bus on a few > old microcomputers. Very few parts required and the cost is minimal. > I got curious about trying it for the PDP-11 and maybe even the VAX. We used to use a device that sat right on the UNIBUS. Originally developed for use with PDP-11/70, we were using it on VAX 11/780. Later the vendor came out with a Qbus version. So I've seen it done, but generally disks back then needed fairly intelligent controllers, so the controller was the board sitting on the bus. ^ permalink raw reply [flat|nested] 146+ messages in thread
* Re: QBUS Prototyping 2010-04-09 14:39 ` QBUS Prototyping Bob Koehler @ 2010-04-09 16:00 ` Bill Gunshannon 2010-04-09 23:16 ` John E. Malmberg 2010-04-15 6:12 ` Antti Louko 1 sibling, 1 reply; 146+ messages in thread From: Bill Gunshannon @ 2010-04-09 16:00 UTC (permalink / raw) In article <nGp8w9et44Sm@eisner.encompasserve.org>, koehler@eisner.nospam.encompasserve.org (Bob Koehler) writes: > In article <826uhoFu5dU1@mid.individual.net>, billg999@cs.uofs.edu (Bill Gunshannon) writes: >> >> For those who's curiosity has been piqued, I heve recently seen a few >> examples of boards that interface IDE disks to the raw bus on a few >> old microcomputers. Very few parts required and the cost is minimal. >> I got curious about trying it for the PDP-11 and maybe even the VAX. > > We used to use a device that sat right on the UNIBUS. Originally > developed for use with PDP-11/70, we were using it on VAX 11/780. > Later the vendor came out with a Qbus version. So I've seen it > done, but generally disks back then needed fairly intelligent > controllers, so the controller was the board sitting on the bus. According to the designer IDE does not require a fancy controller as it is included with the disk. For those who might still be interested in this, here are pictures and a write-up. http://www.cs.uofs.edu/~bill/M4ide.pdf http://www.cs.uofs.edu/~bill/M4ide.big.pdf Note that it consists of 3 simple IC's and a little glue. bill -- Bill Gunshannon | de-moc-ra-cy (di mok' ra see) n. Three wolves billg999@cs.scranton.edu | and a sheep voting on what's for dinner. University of Scranton | Scranton, Pennsylvania | #include <std.disclaimer.h> ^ permalink raw reply [flat|nested] 146+ messages in thread
* Re: QBUS Prototyping 2010-04-09 16:00 ` Bill Gunshannon @ 2010-04-09 23:16 ` John E. Malmberg 0 siblings, 0 replies; 146+ messages in thread From: John E. Malmberg @ 2010-04-09 23:16 UTC (permalink / raw) Bill Gunshannon wrote: > In article <nGp8w9et44Sm@eisner.encompasserve.org>, > According to the designer IDE does not require a fancy controller as > it is included with the disk. > > For those who might still be interested in this, here are pictures and a > write-up. > > http://www.cs.uofs.edu/~bill/M4ide.pdf > http://www.cs.uofs.edu/~bill/M4ide.big.pdf > > Note that it consists of 3 simple IC's and a little glue. A few years ago one of the Russian posters to comp.os.vms posted a link to his schematic for an IDE to QBUS adapter. He even had a driver for one of the older versions of VAX/VMS. However, you have some new challenges. The old ATA interface is basically obsolete, to use the full capacity of the newer drives, apparently you need to support UDMA mode, not the mode you have the plans for. Theorectically a UDMA ATA driver would allow a DS10 to access more than 137 GB on the newer drives. But I do not know anyone that is working on that. And it is unknown if the effective IDE bus lengths on the various Alpha servers is short enough to support UDMA. I am expecting ATA devices to also become hard to find as they will be replaced with SATA. So if you want your project to have some longevity, you would want to use SATA drives. In one case, this makes it more complex, but if you just make a gateway to a single board micro computer with a real time OS that supports SATA. My personal plan is to just set up SIM-H VAX on a XEN Linux partition and use it to MSCP serve some large SATA disks. Then I can use either Linux mirroring or VMS Shadowing to have redundant storage. It would only be eithernet speed, but that should be good enough for hobby work. -John wb8tyw@qsl.network Personal Opinion Only ^ permalink raw reply [flat|nested] 146+ messages in thread
* Re: QBUS Prototyping 2010-04-09 14:39 ` QBUS Prototyping Bob Koehler 2010-04-09 16:00 ` Bill Gunshannon @ 2010-04-15 6:12 ` Antti Louko 2010-04-15 16:24 ` Run.PDP 1 sibling, 1 reply; 146+ messages in thread From: Antti Louko @ 2010-04-15 6:12 UTC (permalink / raw) For prototyping purposes I would think using a simple AVR (or PIC) processor might be possible. Their clock speed goes up to 20MHz and it might be possible to implement Q-bus <--> SD card system with an AVR having enough pins to connect directly to the Q-Bus. And if bus drive capability is not enough, using simple buffer/latch ICs. ^ permalink raw reply [flat|nested] 146+ messages in thread
* Re: QBUS Prototyping 2010-04-15 6:12 ` Antti Louko @ 2010-04-15 16:24 ` Run.PDP 2010-04-15 16:46 ` Al Kossow ` (3 more replies) 0 siblings, 4 replies; 146+ messages in thread From: Run.PDP @ 2010-04-15 16:24 UTC (permalink / raw) Q-bus ==> Storage... For my few cents worth of thinking, I'd say that a MSCP implementation done in "public space" would be great! As I have understood it, many PGA-designs etc include a CPU-core, with embedded "ROM" and "RAM" as part of the programmed array. This is, as a concept, identical to the slightly older implementation using MSI/ LSI-scaled chips and a separate "embedded controller". After reading the quite relevant book "The SCSI Bus and Ide Interface" - that I really recomende reading before finalizing this design - I have learned that the IDE interface is just a "recode" of the ST-506 commands directely over the x-86 system bus, as opposed to SCSI which is at a higher level of abstraction. In other words, with a SCSI-disc, the controller/driver SW is offloaded quite some fuzz with records placement, bad block handling etc. So, for my opinion, count one more pro SCSI. But for future, one migth concider SAS (though not for free as today) or cheaper SATA, that is said to be actually a mixture of ATA interface and SCSI-commands using serial connectors... -I have not checked up on this myself, though. The paralell ATA/IDE interface is quite close to the xxx86-system bus of the same years (8086? / 80286??). So, using a x86 core or chip for a controller would most likely make it relatively easy to interface the IDE disc "outside", and require to program the MSCP-part towards the PDP, though "by religion", I'd prefer using either a PDP or some 68...-technology for the interface computer/core. Using such a technique, the next thought in my brain is a USB-memory stick, and when that is viewed, an USB-connected HD comes fast in mind... ATAPI-CD's, which is just a way of running CD SCSI- commands using IDE-interface might be of some interest. SD-card, hmm, it is used in cameras etc, but for primary storage !?? USB sticks are "for free" at my local low-cost supermarket... As for thinking ethernet, why has noone said I-SCSI ??? This would be quite modern thinking, woulde't it? Or would FcOE (Fibre-Channel over Ethernet) be simpler to implement? (I-SCSI seems to require a TCP- IP stack inside the "interface processor", as opposed to FcOE that only uses "low-level" Ethernet to transport Fibre-Channel commands. I'm however not familiar with if there are any available FCoE-servers to be run in, say Free-BSD or not. I'm today (commersially) operating a number of 11/93's using SCSI- discs, placed all around a dev. laboratory. I'd love to replace all these discs with a controller and an extra Ethernet-cable (100M/1G) connecting using a separate storage network to some kind of storage inside a computer room, instead of having discs in each computer. This controller card could, in my case, speak "SCSI as a disc", but going straight for the bus would be still nicer. One neat thing of implementing this as a core and some "fw" inside some gate-array-logic would be the possibility to include a PDP (with memory etc) in other parts of the same logic device. That would give a PDP with disc-interface included "on a chip"! The same chip should better include an ethernet interface, one or a few serial interfaces, maybe an vt300 or better terminal (using some PC-screen & KB) usable as a console. To me, paralell to the physical disc-interface there could be a separate ethernet and USB (or fire- wire?) for storage purpuses. This chip should use some kind of "bus" internally, and to any "external" device (that could be a Q or UNI-bus physical interface or an emulated device again!). Such a bus would be very nice to unite / standardize upon, to that several projects actually could be connecting each other! For oher ideas of storage; for the low-end, have you concidered to implement some decent HIGH SPEED serial interface in the Q-bus machine, and a responding TU-58-emulator? That would go underneeth any MSCP-thinking, but, depending on speed achieved, might give some bucks of storage technolgy for just an handful of dollars! Happy designing! /G|ran ] ^ permalink raw reply [flat|nested] 146+ messages in thread
* Re: QBUS Prototyping 2010-04-15 16:24 ` Run.PDP @ 2010-04-15 16:46 ` Al Kossow 2010-04-15 17:24 ` glen herrmannsfeldt 2010-04-15 17:20 ` glen herrmannsfeldt ` (2 subsequent siblings) 3 siblings, 1 reply; 146+ messages in thread From: Al Kossow @ 2010-04-15 16:46 UTC (permalink / raw) On 4/15/10 9:24 AM, Run.PDP wrote: > Q-bus ==> Storage... > > For my few cents worth of thinking, I'd say that a MSCP implementation > done in "public space" would be great! > It has been done once, if you can get the person who did it to release the code. http://www.wintersweet.com/mscpscsi/ MSCP was very late in the design life of DEC's PDP-11 OSs, though. > After reading the quite relevant book "The SCSI Bus and Ide Interface" > - that I really recomende reading before finalizing this design - I > have learned that the IDE interface is just a "recode" of the ST-506 > commands directely over the x-86 system bus No, the original IDE design was an integration of a Western Digital disk controller onto the drive. IDE commands haven't used cylinder/head/sector addressing, which was used back then, for MANY generations. , as opposed to SCSI which > is at a higher level of abstraction. Any IDE drive you could buy today use block addressing. ATAPI, for example, is essentially a mapping of the SCSI command set onto an IDE interface. ^ permalink raw reply [flat|nested] 146+ messages in thread
* Re: QBUS Prototyping 2010-04-15 16:46 ` Al Kossow @ 2010-04-15 17:24 ` glen herrmannsfeldt 0 siblings, 0 replies; 146+ messages in thread From: glen herrmannsfeldt @ 2010-04-15 17:24 UTC (permalink / raw) In alt.sys.pdp11 Al Kossow <aek@bitsavers.org> wrote: > On 4/15/10 9:24 AM, Run.PDP wrote: >> Q-bus ==> Storage... (snip, someone wrote) >> After reading the quite relevant book "The SCSI Bus and Ide Interface" >> - that I really recomende reading before finalizing this design - I >> have learned that the IDE interface is just a "recode" of the ST-506 >> commands directely over the x-86 system bus > No, the original IDE design was an integration of a Western Digital disk > controller onto the drive. IDE commands haven't used cylinder/head/sector > addressing, which was used back then, for MANY generations. I thought that newer ones still allowed for CHS addressing in addition to block addressing. I haven't tried it recently, though. > , as opposed to SCSI which >> is at a higher level of abstraction. > Any IDE drive you could buy today use block addressing. ATAPI, for example, > is essentially a mapping of the SCSI command set onto an IDE interface. ATAPI uses SCSI commands for CD-R control. As far as I know, they will also respond to the older commands for reading. -- glen ^ permalink raw reply [flat|nested] 146+ messages in thread
* Re: QBUS Prototyping 2010-04-15 16:24 ` Run.PDP 2010-04-15 16:46 ` Al Kossow @ 2010-04-15 17:20 ` glen herrmannsfeldt 2010-04-16 23:54 ` Johnny Billquist 2010-04-16 21:59 ` Bob Koehler 2010-04-17 9:24 ` jjh 3 siblings, 1 reply; 146+ messages in thread From: glen herrmannsfeldt @ 2010-04-15 17:20 UTC (permalink / raw) In alt.sys.pdp11 Run.PDP <run.pdp@gmail.com> wrote: > Q-bus ==> Storage... > For my few cents worth of thinking, I'd say that a MSCP implementation > done in "public space" would be great! (snip) > After reading the quite relevant book "The SCSI Bus and Ide Interface" > - that I really recomende reading before finalizing this design - I > have learned that the IDE interface is just a "recode" of the ST-506 > commands directely over the x-86 system bus, as opposed to SCSI which > is at a higher level of abstraction. In other words, with a SCSI-disc, > the controller/driver SW is offloaded quite some fuzz with records > placement, bad block handling etc. Yes, the original IDE was pretty much the PC/AT controller moved onto the disk drive PC board. But once you do that, you can change the interface between the disk and controller transparently to the outside. Among others, the sectors/tracks/cylinders abstract away, as long as the drive responds appropriately. > So, for my opinion, count one more pro SCSI. But IDE does that, too. Maybe not in the first version, but it does now. > But for future, one migth concider SAS (though not for free as today) > or cheaper SATA, that is said to be actually a mixture of ATA > interface and SCSI-commands using serial connectors... -I have not > checked up on this myself, though. As I understand it, SATA drives will respond to SCSI commands though the SATA interface. On most systems now they go through the SCSI device driver. On linux, they are sda not hda. > The paralell ATA/IDE interface is quite close to the xxx86-system bus > of the same years (8086? / 80286??). So, using a x86 core or chip for > a controller would most likely make it relatively easy to interface > the IDE disc "outside", and require to program the MSCP-part towards > the PDP, though "by religion", I'd prefer using either a PDP or some > 68...-technology for the interface computer/core. For the ISA bus, the data lines go pretty much directly onto the IDE cable. Address decoding is done such that the appropriate select line is active. The main complication for some systems is that most IDE drives won't do 8 bit transfer mode. > Using such a technique, the next thought in my brain is a USB-memory > stick, and when that is viewed, an USB-connected HD comes fast in > mind... ATAPI-CD's, which is just a way of running CD SCSI- > commands using IDE-interface might be of some interest. > SD-card, hmm, it is used in cameras etc, but for primary storage !?? > USB sticks are "for free" at my local low-cost supermarket... As far as I can tell, USB, CF, and SD stay pretty close in price for similar capacity. > As for thinking ethernet, why has noone said I-SCSI ??? This would > be quite modern thinking, woulde't it? Or would FcOE (Fibre-Channel > over Ethernet) be simpler to implement? (I-SCSI seems to require a TCP- > IP stack inside the "interface processor", as opposed to FcOE that > only uses "low-level" Ethernet to transport Fibre-Channel commands. > I'm however not familiar with if there are any available FCoE-servers > to be run in, say Free-BSD or not. Or Fibrechannel? > I'm today (commersially) operating a number of 11/93's using SCSI- > discs, placed all around a dev. laboratory. I'd love to replace all > these discs with a controller and an extra Ethernet-cable (100M/1G) > connecting using a separate storage network to some kind of storage > inside a computer room, instead of having discs in each computer. This > controller card could, in my case, speak "SCSI as a disc", but going > straight for the bus would be still nicer. Can an 11/93 transfer fast enough for 100Mb/s or gigabit ethernet? > One neat thing of implementing this as a core and some "fw" inside > some gate-array-logic would be the possibility to include a PDP (with > memory etc) in other parts of the same logic device. That would give a > PDP with disc-interface included "on a chip"! Many 8 bit processors have been implemented in FPGAs, including much of the system to go with the processor, such as a whole Apple II. I think an LSI-11 sized system should also fit in a medium sized FPGA. > The same chip should better include an ethernet interface, one or a > few serial interfaces, maybe an vt300 or better terminal (using some > PC-screen & KB) usable as a console. To me, paralell to the physical > disc-interface there could be a separate ethernet and USB (or fire- > wire?) for storage purpuses. > This chip should use some kind of "bus" internally, and to any > "external" device (that could be a Q or UNI-bus physical interface or > an emulated device again!). Such a bus would be very nice to unite / > standardize upon, to that several projects actually could be > connecting each other! I have thought before about a board with a medium to large FPGA, and then a variety of bus connectors. S100, ISA, Apple II, Qbus, Sbus. With that, one could implement many older systems, including the interface to old hardware. > For oher ideas of storage; for the low-end, have you concidered to > implement some decent HIGH SPEED serial interface in the Q-bus > machine, and a responding TU-58-emulator? That would go underneeth any > MSCP-thinking, but, depending on speed achieved, might give some bucks > of storage technolgy for just an handful of dollars! Well, you can respond to TU-58 commands with other interfaces, too. -- glen ^ permalink raw reply [flat|nested] 146+ messages in thread
* Re: QBUS Prototyping 2010-04-15 17:20 ` glen herrmannsfeldt @ 2010-04-16 23:54 ` Johnny Billquist 0 siblings, 0 replies; 146+ messages in thread From: Johnny Billquist @ 2010-04-16 23:54 UTC (permalink / raw) glen herrmannsfeldt wrote: > In alt.sys.pdp11 Run.PDP <run.pdp@gmail.com> wrote: >> The paralell ATA/IDE interface is quite close to the xxx86-system bus >> of the same years (8086? / 80286??). So, using a x86 core or chip for >> a controller would most likely make it relatively easy to interface >> the IDE disc "outside", and require to program the MSCP-part towards >> the PDP, though "by religion", I'd prefer using either a PDP or some >> 68...-technology for the interface computer/core. > > For the ISA bus, the data lines go pretty much directly onto > the IDE cable. Address decoding is done such that the appropriate > select line is active. The main complication for some systems > is that most IDE drives won't do 8 bit transfer mode. Obviously not an issue for any PDP-11. >> As for thinking ethernet, why has noone said I-SCSI ??? This would >> be quite modern thinking, woulde't it? Or would FcOE (Fibre-Channel >> over Ethernet) be simpler to implement? (I-SCSI seems to require a TCP- >> IP stack inside the "interface processor", as opposed to FcOE that >> only uses "low-level" Ethernet to transport Fibre-Channel commands. >> I'm however not familiar with if there are any available FCoE-servers >> to be run in, say Free-BSD or not. > > Or Fibrechannel? Didn't DEC already do an FC card for the Qbus? :-) >> I'm today (commersially) operating a number of 11/93's using SCSI- >> discs, placed all around a dev. laboratory. I'd love to replace all >> these discs with a controller and an extra Ethernet-cable (100M/1G) >> connecting using a separate storage network to some kind of storage >> inside a computer room, instead of having discs in each computer. This >> controller card could, in my case, speak "SCSI as a disc", but going >> straight for the bus would be still nicer. > > Can an 11/93 transfer fast enough for 100Mb/s or gigabit ethernet? As far as I can remember, the Qbus can't even drive a 10Mb/s ethernet. Who cares. You have local buffers on the ethernet card, and then you transfer over the bus as fast as the bus can deal with it. 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 ^ permalink raw reply [flat|nested] 146+ messages in thread
* Re: QBUS Prototyping 2010-04-15 16:24 ` Run.PDP 2010-04-15 16:46 ` Al Kossow 2010-04-15 17:20 ` glen herrmannsfeldt @ 2010-04-16 21:59 ` Bob Koehler 2010-04-16 23:56 ` Johnny Billquist 2010-04-17 9:24 ` jjh 3 siblings, 1 reply; 146+ messages in thread From: Bob Koehler @ 2010-04-16 21:59 UTC (permalink / raw) In article <c91f7295-e7ed-44bd-9e8f-f898ed22f624@w17g2000yqj.googlegroups.com>, "Run.PDP" <run.pdp@gmail.com> writes: > Q-bus ==> Storage... > > For my few cents worth of thinking, I'd say that a MSCP implementation > done in "public space" would be great! Linux folks have been saying "real soon now" for about a decade. ^ permalink raw reply [flat|nested] 146+ messages in thread
* Re: QBUS Prototyping 2010-04-16 21:59 ` Bob Koehler @ 2010-04-16 23:56 ` Johnny Billquist 0 siblings, 0 replies; 146+ messages in thread From: Johnny Billquist @ 2010-04-16 23:56 UTC (permalink / raw) Bob Koehler wrote: > In article <c91f7295-e7ed-44bd-9e8f-f898ed22f624@w17g2000yqj.googlegroups.com>, "Run.PDP" <run.pdp@gmail.com> writes: >> Q-bus ==> Storage... >> >> For my few cents worth of thinking, I'd say that a MSCP implementation >> done in "public space" would be great! > > Linux folks have been saying "real soon now" for about a decade. Linux folks say a lot of things... Such as Linux/VAX. Any century now... :-) The MSCP protocol have been disassembler enough for simh to even have a public domain(?) version of the uda50/kda50 controllers emulated. That is enough for anyone to be able to write their own. It just takes some time and patience. 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 ^ permalink raw reply [flat|nested] 146+ messages in thread
* Re: QBUS Prototyping 2010-04-15 16:24 ` Run.PDP ` (2 preceding siblings ...) 2010-04-16 21:59 ` Bob Koehler @ 2010-04-17 9:24 ` jjh 2010-04-17 9:56 ` glen herrmannsfeldt 2010-04-24 15:52 ` Bill Gunshannon 3 siblings, 2 replies; 146+ messages in thread From: jjh @ 2010-04-17 9:24 UTC (permalink / raw) On Apr 15, 12:24 pm, "Run.PDP" <run....@gmail.com> wrote: > Q-bus ==> Storage... > > For my few cents worth of thinking, I'd say that a MSCP implementation > done in "public space" would be great! snip > > For oher ideas of storage; for the low-end, have you concidered to > implement some decent HIGH SPEED serial interface in the Q-bus > machine, and a responding TU-58-emulator? That would go underneeth any > MSCP-thinking, but, depending on speed achieved, might give some bucks > of storage technolgy for just an handful of dollars! An emulation of a TU-58 on a PC has been done. Though not 'high speed' it runs speed ranges fairly close to what the TU-58 serial line speed is (19.2K?) IIRC, it was written by Bill Krantz and is floating around the web somewhere. I have a copy somewhere and used it a few years ago. -John ^ permalink raw reply [flat|nested] 146+ messages in thread
* Re: QBUS Prototyping 2010-04-17 9:24 ` jjh @ 2010-04-17 9:56 ` glen herrmannsfeldt 2010-04-17 21:04 ` Johnny Billquist 2010-04-24 15:54 ` Bill Gunshannon 2010-04-24 15:52 ` Bill Gunshannon 1 sibling, 2 replies; 146+ messages in thread From: glen herrmannsfeldt @ 2010-04-17 9:56 UTC (permalink / raw) In alt.sys.pdp11 jjh <jjhudak@gmail.com> wrote: > On Apr 15, 12:24?pm, "Run.PDP" <run....@gmail.com> wrote: >> For oher ideas of storage; for the low-end, have you concidered to >> implement some decent HIGH SPEED serial interface in the Q-bus >> machine, and a responding TU-58-emulator? That would go underneeth any >> MSCP-thinking, but, depending on speed achieved, might give some bucks >> of storage technolgy for just an handful of dollars! > An emulation of a TU-58 on a PC has been done. Though not 'high > speed' it runs speed ranges fairly close to > what the TU-58 serial line speed is (19.2K?) IIRC, it was written by > Bill Krantz and is floating around the web somewhere. I have a copy > somewhere and used it a few years ago. I thought he meant emulation of the TU-58 interface as seen by the system. Sort of the way that internal modems emulate the UART that would be connected to an external modem. (I think that is how they do it.) So the I/O ports on Qbus would look like the TU-58 interface, but would actually go somewhere else. Is the TU-58 interface an ordinary UART? If I remember the TU-58 emulation on the PC, it uses a PC UART to connect in place of the TU-58 drive. -- glen ^ permalink raw reply [flat|nested] 146+ messages in thread
* Re: QBUS Prototyping 2010-04-17 9:56 ` glen herrmannsfeldt @ 2010-04-17 21:04 ` Johnny Billquist 2010-04-24 15:54 ` Bill Gunshannon 1 sibling, 0 replies; 146+ messages in thread From: Johnny Billquist @ 2010-04-17 21:04 UTC (permalink / raw) glen herrmannsfeldt wrote: > In alt.sys.pdp11 jjh <jjhudak@gmail.com> wrote: >> On Apr 15, 12:24?pm, "Run.PDP" <run....@gmail.com> wrote: > >>> For oher ideas of storage; for the low-end, have you concidered to >>> implement some decent HIGH SPEED serial interface in the Q-bus >>> machine, and a responding TU-58-emulator? That would go underneeth any >>> MSCP-thinking, but, depending on speed achieved, might give some bucks >>> of storage technolgy for just an handful of dollars! > >> An emulation of a TU-58 on a PC has been done. Though not 'high >> speed' it runs speed ranges fairly close to >> what the TU-58 serial line speed is (19.2K?) IIRC, it was written by >> Bill Krantz and is floating around the web somewhere. I have a copy >> somewhere and used it a few years ago. > > I thought he meant emulation of the TU-58 interface as seen by > the system. Sort of the way that internal modems emulate the > UART that would be connected to an external modem. (I think > that is how they do it.) Yes, I believe that is what he meant. > So the I/O ports on Qbus would look like the TU-58 interface, > but would actually go somewhere else. Is the TU-58 interface > an ordinary UART? > > If I remember the TU-58 emulation on the PC, it uses a PC UART > to connect in place of the TU-58 drive. The big problem with this idea is that the DL11 (which is what the TU58 is using) is a interrupt driven, one byte at a time interface. No DMA. No buffering. I wouldn't be surprised if parts of DEC drivers were actually doing polling loops on the bloody thing. It sucks CPU, and if you were to implement a Qbus interface with the same programming model, the speeds you would be able to achieve would still be abmyssal, since the interface don't allow you to become much better, no matter how fast hardware you have hidden behind. 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 ^ permalink raw reply [flat|nested] 146+ messages in thread
* Re: QBUS Prototyping 2010-04-17 9:56 ` glen herrmannsfeldt 2010-04-17 21:04 ` Johnny Billquist @ 2010-04-24 15:54 ` Bill Gunshannon 1 sibling, 0 replies; 146+ messages in thread From: Bill Gunshannon @ 2010-04-24 15:54 UTC (permalink / raw) In article <hqc0kl$nhp$2@naig.caltech.edu>, glen herrmannsfeldt <gah@ugcs.caltech.edu> writes: > In alt.sys.pdp11 jjh <jjhudak@gmail.com> wrote: >> On Apr 15, 12:24?pm, "Run.PDP" <run....@gmail.com> wrote: > >>> For oher ideas of storage; for the low-end, have you concidered to >>> implement some decent HIGH SPEED serial interface in the Q-bus >>> machine, and a responding TU-58-emulator? That would go underneeth any >>> MSCP-thinking, but, depending on speed achieved, might give some bucks >>> of storage technolgy for just an handful of dollars! > >> An emulation of a TU-58 on a PC has been done. Though not 'high >> speed' it runs speed ranges fairly close to >> what the TU-58 serial line speed is (19.2K?) IIRC, it was written by >> Bill Krantz and is floating around the web somewhere. I have a copy >> somewhere and used it a few years ago. > > I thought he meant emulation of the TU-58 interface as seen by > the system. Sort of the way that internal modems emulate the > UART that would be connected to an external modem. (I think > that is how they do it.) > > So the I/O ports on Qbus would look like the TU-58 interface, > but would actually go somewhere else. Is the TU-58 interface > an ordinary UART? > > If I remember the TU-58 emulation on the PC, it uses a PC UART > to connect in place of the TU-58 drive. > TU-58 is just a standard asynchronous serial device as far as I know. bill -- Bill Gunshannon | de-moc-ra-cy (di mok' ra see) n. Three wolves billg999@cs.scranton.edu | and a sheep voting on what's for dinner. University of Scranton | Scranton, Pennsylvania | #include <std.disclaimer.h> ^ permalink raw reply [flat|nested] 146+ messages in thread
* Re: QBUS Prototyping 2010-04-17 9:24 ` jjh 2010-04-17 9:56 ` glen herrmannsfeldt @ 2010-04-24 15:52 ` Bill Gunshannon 2010-04-25 4:00 ` Johnny Billquist 1 sibling, 1 reply; 146+ messages in thread From: Bill Gunshannon @ 2010-04-24 15:52 UTC (permalink / raw) In article <99d2bd1a-4935-4f4a-a45c-a910f6565b4a@c42g2000yqn.googlegroups.com>, jjh <jjhudak@gmail.com> writes: > On Apr 15, 12:24�pm, "Run.PDP" <run....@gmail.com> wrote: >> Q-bus ==> Storage... >> >> For my few cents worth of thinking, I'd say that a MSCP implementation >> done in "public space" would be great! > snip >> >> For oher ideas of storage; for the low-end, have you concidered to >> implement some decent HIGH SPEED serial interface in the Q-bus >> machine, and a responding TU-58-emulator? That would go underneeth any >> MSCP-thinking, but, depending on speed achieved, might give some bucks >> of storage technolgy for just an handful of dollars! > An emulation of a TU-58 on a PC has been done. Though not 'high > speed' it runs speed ranges fairly close to > what the TU-58 serial line speed is (19.2K?) IIRC, it was written by > Bill Krantz and is floating around the web somewhere. I have a copy > somewhere and used it a few years ago. I would expect that any speed issues would be on the end other than the PC. A PC could easily do 155K on a serial line but I doubt anything looking for a TU-58 to read was going to go over 9600 or 19.2K. And because there is no mechanical movement in the drive I expect it could shove data down the pipe as fast as the PDP-11/VAX could take it. Actually, too fast might be the only potential problem!! bill -- Bill Gunshannon | de-moc-ra-cy (di mok' ra see) n. Three wolves billg999@cs.scranton.edu | and a sheep voting on what's for dinner. University of Scranton | Scranton, Pennsylvania | #include <std.disclaimer.h> ^ permalink raw reply [flat|nested] 146+ messages in thread
* Re: QBUS Prototyping 2010-04-24 15:52 ` Bill Gunshannon @ 2010-04-25 4:00 ` Johnny Billquist 2010-04-25 6:29 ` glen herrmannsfeldt 0 siblings, 1 reply; 146+ messages in thread From: Johnny Billquist @ 2010-04-25 4:00 UTC (permalink / raw) Bill Gunshannon wrote: > In article <99d2bd1a-4935-4f4a-a45c-a910f6565b4a@c42g2000yqn.googlegroups.com>, > jjh <jjhudak@gmail.com> writes: >> On Apr 15, 12:24 pm, "Run.PDP" <run....@gmail.com> wrote: >>> Q-bus ==> Storage... >>> >>> For my few cents worth of thinking, I'd say that a MSCP implementation >>> done in "public space" would be great! >> snip >>> For oher ideas of storage; for the low-end, have you concidered to >>> implement some decent HIGH SPEED serial interface in the Q-bus >>> machine, and a responding TU-58-emulator? That would go underneeth any >>> MSCP-thinking, but, depending on speed achieved, might give some bucks >>> of storage technolgy for just an handful of dollars! >> An emulation of a TU-58 on a PC has been done. Though not 'high >> speed' it runs speed ranges fairly close to >> what the TU-58 serial line speed is (19.2K?) IIRC, it was written by >> Bill Krantz and is floating around the web somewhere. I have a copy >> somewhere and used it a few years ago. > > I would expect that any speed issues would be on the end other > than the PC. A PC could easily do 155K on a serial line but I > doubt anything looking for a TU-58 to read was going to go over > 9600 or 19.2K. And because there is no mechanical movement in > the drive I expect it could shove data down the pipe as fast as > the PDP-11/VAX could take it. Actually, too fast might be the > only potential problem!! Since the speed of a DL11 is hardwired, no software ever really cares about what speed the serial port is using on a PDP-11. To a real TU58 you of course had to limit yourself to what the TU58 talked. With something else, you just have to limit yourself to whatever that other end is talking. The big problem, though, is that this is no DMA device. It's either interrupt-driven, or polled. Either way it consumes a lot of CPU, and going up in speed is only going to make it worse. There is definitely an upper limit on how many interrupt per second a PDP-11 can handle, and each interrupt can only deliver one byte. So no matter how high the speed of the serial line is, or how high the speed of the mass storage at the other end is, you will not be able to get that much speed on the PDP-11 side, and even so, it will consume lots of resources. And on top of that, a TU58 holds a ridicoulus small amount of blocks. Not a good interface to emulate, except for the fact that you already have a device driver for it. 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 ^ permalink raw reply [flat|nested] 146+ messages in thread
* Re: QBUS Prototyping 2010-04-25 4:00 ` Johnny Billquist @ 2010-04-25 6:29 ` glen herrmannsfeldt 2010-04-25 7:42 ` Wilm Boerhout 2010-04-25 11:40 ` Johnny Billquist 0 siblings, 2 replies; 146+ messages in thread From: glen herrmannsfeldt @ 2010-04-25 6:29 UTC (permalink / raw) In alt.sys.pdp11 Johnny Billquist <bqt@softjar.se> wrote: (snip) > Since the speed of a DL11 is hardwired, no software ever really cares > about what speed the serial port is using on a PDP-11. To a real TU58 > you of course had to limit yourself to what the TU58 talked. > With something else, you just have to limit yourself to whatever that > other end is talking. > The big problem, though, is that this is no DMA device. It's either > interrupt-driven, or polled. Either way it consumes a lot of CPU, and > going up in speed is only going to make it worse. There is definitely an > upper limit on how many interrupt per second a PDP-11 can handle, and > each interrupt can only deliver one byte. I hope there is flow control. The new interrupt shouldn't come before the previous character was read/sent. > So no matter how high the speed of the serial line is, or how high the > speed of the mass storage at the other end is, you will not be able to > get that much speed on the PDP-11 side, and even so, it will consume > lots of resources. And on top of that, a TU58 holds a ridicoulus small > amount of blocks. Does an emulated one have to have the same number of blocks? That is, does it sense EOF, or count blocks? > Not a good interface to emulate, except for the fact that you already > have a device driver for it. Sounds like a good reason to me. -- glen ^ permalink raw reply [flat|nested] 146+ messages in thread
* Re: QBUS Prototyping 2010-04-25 6:29 ` glen herrmannsfeldt @ 2010-04-25 7:42 ` Wilm Boerhout 2010-04-25 19:57 ` Antti Louko 2010-04-25 11:40 ` Johnny Billquist 1 sibling, 1 reply; 146+ messages in thread From: Wilm Boerhout @ 2010-04-25 7:42 UTC (permalink / raw) glen herrmannsfeldt mentioned on 25-4-2010 8:29: > In alt.sys.pdp11 Johnny Billquist<bqt@softjar.se> wrote: > > (snip) >> Since the speed of a DL11 is hardwired, no software ever really cares >> about what speed the serial port is using on a PDP-11. To a real TU58 >> you of course had to limit yourself to what the TU58 talked. > >> With something else, you just have to limit yourself to whatever that >> other end is talking. > >> The big problem, though, is that this is no DMA device. It's either >> interrupt-driven, or polled. Either way it consumes a lot of CPU, and >> going up in speed is only going to make it worse. There is definitely an >> upper limit on how many interrupt per second a PDP-11 can handle, and >> each interrupt can only deliver one byte. > > I hope there is flow control. The new interrupt shouldn't come > before the previous character was read/sent. > >> So no matter how high the speed of the serial line is, or how high the >> speed of the mass storage at the other end is, you will not be able to >> get that much speed on the PDP-11 side, and even so, it will consume >> lots of resources. And on top of that, a TU58 holds a ridicoulus small >> amount of blocks. > > Does an emulated one have to have the same number of blocks? > That is, does it sense EOF, or count blocks? > >> Not a good interface to emulate, except for the fact that you already >> have a device driver for it. > > Sounds like a good reason to me. > > -- glen It's a wolf in sheeps clothes: physically a tape, but driven as a disk. I don't think the driver has an EOF concept, but I don't know whether the number of blocks is fixed or configurable. Maybe some real old person still has an abandoned TU59 or TU60 driver in the attic? Anyway, on a VAX-11/750 it was the slowest boot device anyone could imagine. /Wilm ^ permalink raw reply [flat|nested] 146+ messages in thread
* Re: QBUS Prototyping 2010-04-25 7:42 ` Wilm Boerhout @ 2010-04-25 19:57 ` Antti Louko 0 siblings, 0 replies; 146+ messages in thread From: Antti Louko @ 2010-04-25 19:57 UTC (permalink / raw) Wilm Boerhout <wboerhout.no@spam.gmail.com> writes: > It's a wolf in sheeps clothes: physically a tape, but driven as a > disk. I don't think the driver has an EOF concept, but I don't know > whether the number of blocks is fixed or configurable. Maybe some real > old person still has an abandoned TU59 or TU60 driver in the attic? > Anyway, on a VAX-11/750 it was the slowest boot device anyone could > imagine. Anecdote: We (Helsinki University of Technology) had an RP07 disk in our DECSYSTEM-20. When the DEC retired, we had the RP07 connected to our VAX 11/750. This was a process itself as ecen DEC couldn't reformat the disk pack for 512 byte blocks (DEC-20 had 576 byte block, if I remember correctly). Well, finally the RP07 was VAX-compatible but there was no boot ROM for it. We had to use TU58 for many months as the bootstrap device, only for the first block of course. Finally the new boot ROM arrived. It was a 18-pin (or 20-28 pin) DIP. It was packed in a small plasric box (ca. 0.5" x 2" x 2") which was packed in a cardboard box (2" x 6" x 10") which was inside a large box (10" x 15" x 15"). ^ permalink raw reply [flat|nested] 146+ messages in thread
* Re: QBUS Prototyping 2010-04-25 6:29 ` glen herrmannsfeldt 2010-04-25 7:42 ` Wilm Boerhout @ 2010-04-25 11:40 ` Johnny Billquist 2010-04-25 21:47 ` John Wallace 1 sibling, 1 reply; 146+ messages in thread From: Johnny Billquist @ 2010-04-25 11:40 UTC (permalink / raw) glen herrmannsfeldt wrote: > In alt.sys.pdp11 Johnny Billquist <bqt@softjar.se> wrote: > > (snip) >> Since the speed of a DL11 is hardwired, no software ever really cares >> about what speed the serial port is using on a PDP-11. To a real TU58 >> you of course had to limit yourself to what the TU58 talked. > >> With something else, you just have to limit yourself to whatever that >> other end is talking. > >> The big problem, though, is that this is no DMA device. It's either >> interrupt-driven, or polled. Either way it consumes a lot of CPU, and >> going up in speed is only going to make it worse. There is definitely an >> upper limit on how many interrupt per second a PDP-11 can handle, and >> each interrupt can only deliver one byte. > > I hope there is flow control. The new interrupt shouldn't come > before the previous character was read/sent. You could implement all the flow control you want if you were to design a new board for the Qbus (or Unibus) which talked to a PC (or whatever) to read/write data. All it needs to be is the same from a software point of view on the PDP-11. I can't remember if flow control is a part of the protocol to the TU58, but I seem to remember that this was something added in a modification to the protocol. On the PDP11 side, you cannot physically get a new interrupt before the previous one have been handled. That is actually true of all CPUs I've ever written software for. If that wasn't true, you would face a serious hung CPU syndrome, since the fielded interrupt itself should not be looping the CPU, but just cause the interrupt to be taken once, and then dealt with. :-) So yes, you do need to do some serious buffering somewhere if you were to do this. >> So no matter how high the speed of the serial line is, or how high the >> speed of the mass storage at the other end is, you will not be able to >> get that much speed on the PDP-11 side, and even so, it will consume >> lots of resources. And on top of that, a TU58 holds a ridicoulus small >> amount of blocks. > > Does an emulated one have to have the same number of blocks? > That is, does it sense EOF, or count blocks? Count blocks. So yes, you'll only be able to have the same number of blocks unless you change device drivers. Oh, and I seem to remember that the block field in the protocol is rather short, so you cannot even theoretically have many more blocks no matter what you do without having to redesign the protocol. (I think it's a 16-bit value for block number.) >> Not a good interface to emulate, except for the fact that you already >> have a device driver for it. > > Sounds like a good reason to me. In that way it is, indeed. :-) 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 ^ permalink raw reply [flat|nested] 146+ messages in thread
* Re: QBUS Prototyping 2010-04-25 11:40 ` Johnny Billquist @ 2010-04-25 21:47 ` John Wallace 2010-04-26 0:32 ` Johnny Billquist 0 siblings, 1 reply; 146+ messages in thread From: John Wallace @ 2010-04-25 21:47 UTC (permalink / raw) On Apr 25, 12:40 pm, Johnny Billquist <b...@softjar.se> wrote: > glen herrmannsfeldt wrote: > > In alt.sys.pdp11 Johnny Billquist <b...@softjar.se> wrote: > > > (snip) > >> Since the speed of a DL11 is hardwired, no software ever really cares > >> about what speed the serial port is using on a PDP-11. To a real TU58 > >> you of course had to limit yourself to what the TU58 talked. > > >> With something else, you just have to limit yourself to whatever that > >> other end is talking. > > >> The big problem, though, is that this is no DMA device. It's either > >> interrupt-driven, or polled. Either way it consumes a lot of CPU, and > >> going up in speed is only going to make it worse. There is definitely an > >> upper limit on how many interrupt per second a PDP-11 can handle, and > >> each interrupt can only deliver one byte. > > > I hope there is flow control. The new interrupt shouldn't come > > before the previous character was read/sent. > > You could implement all the flow control you want if you were to design > a new board for the Qbus (or Unibus) which talked to a PC (or whatever) > to read/write data. All it needs to be is the same from a software point > of view on the PDP-11. I can't remember if flow control is a part of the > protocol to the TU58, but I seem to remember that this was something > added in a modification to the protocol. > > On the PDP11 side, you cannot physically get a new interrupt before the > previous one have been handled. That is actually true of all CPUs I've > ever written software for. If that wasn't true, you would face a serious > hung CPU syndrome, since the fielded interrupt itself should not be > looping the CPU, but just cause the interrupt to be taken once, and then > dealt with. :-) > > So yes, you do need to do some serious buffering somewhere if you were > to do this. > > >> So no matter how high the speed of the serial line is, or how high the > >> speed of the mass storage at the other end is, you will not be able to > >> get that much speed on the PDP-11 side, and even so, it will consume > >> lots of resources. And on top of that, a TU58 holds a ridicoulus small > >> amount of blocks. > > > Does an emulated one have to have the same number of blocks? > > That is, does it sense EOF, or count blocks? > > Count blocks. > So yes, you'll only be able to have the same number of blocks unless you > change device drivers. > Oh, and I seem to remember that the block field in the protocol is > rather short, so you cannot even theoretically have many more blocks no > matter what you do without having to redesign the protocol. > (I think it's a 16-bit value for block number.) > > >> Not a good interface to emulate, except for the fact that you already > >> have a device driver for it. > > > Sounds like a good reason to me. > > In that way it is, indeed. :-) > > Johnny > > -- > Johnny Billquist || "I'm on a bus > || on a psychedelic trip > email: b...@softjar.se || Reading murder books > pdp is alive! || tryin' to stay hip" - B. Idol The Tu58 protocol is Radial Serial Protocol and the documentation is Currently Out There Somewhere. TU58 performance had *two* limiting factors: serial line data rate (not brilliant), and seek time (verging on appalling). In the discussion here, which end are we talking about emulating? If you emulate the *drive*, you can create a "TU58" with zero seek time, and you *may* be able to make some other improvements too (serial line rate? number of blocks?). In my younger days, I introduced my then employers to the delights of VT103s. A VT103 was a VT100 with a Qbus backplane inside (and a few other differences). You could get them with built in TU58s, or use an external storage device. We used them with assorted flavours of LSI11 for RT11-based test equipment, whose typical mode of operation was "boot OS, load single standalone app, perform tests, log a small amount of data, print something to record the test results". RT11 on real TU58 was a bit slow to boot, but TU58s were dirt cheap and had other advantages (e.g. physical size - nil in a VT103) in comparison with the alternatives (e.g. RX02). When RT11 introduced the concept of the LD (?) device, we took that a step further and implemented "RT11 clusters". Each VT103 client thought its system device was a TU58. In actuality the "TU58's" serial line was connected to a DZ(V)11 port (or maybe DHV11, I can't remember 100%) on a "host" MicroPDP11/RT11 host running a home made application which had a separate LD device associated with each line on the DZ ie a separate LD device associated with each boot client. An RSP request for a block would return the relevant block from that port's LD image. To make RT11 work on the boot clients, each LD image had its own RT11 system image. Job done. The serial lines were still limited to DH/DZ/DL baud rates, but the horrendous TU58 seek times were totally eliminated and the time to application startup wasn't too bad (faster than a typical recent PC startup?). The pseudo devices we used were not, to the best of my recollection, necessarily limited to the size of a physical TU58, although there may have been other limits imposed by constraints in Radial Serial Protocol (e.g. field sizes for byte counts). More than enough for RT11 and a few apps though. Because of the silos on the DZ/DH11 the "one character per interrupt" overhead didn't apply on the "host" (or "server") although obviously the client end still had a genuine DL11 and the associated overhead. So, is that kind of thing of any interest to the current discussion? ^ permalink raw reply [flat|nested] 146+ messages in thread
* Re: QBUS Prototyping 2010-04-25 21:47 ` John Wallace @ 2010-04-26 0:32 ` Johnny Billquist 0 siblings, 0 replies; 146+ messages in thread From: Johnny Billquist @ 2010-04-26 0:32 UTC (permalink / raw) Hi, John. Thanks for your input... Comment inline below... John Wallace wrote: > On Apr 25, 12:40 pm, Johnny Billquist <b...@softjar.se> wrote: >> glen herrmannsfeldt wrote: >>> In alt.sys.pdp11 Johnny Billquist <b...@softjar.se> wrote: >>> (snip) >>>> Since the speed of a DL11 is hardwired, no software ever really cares >>>> about what speed the serial port is using on a PDP-11. To a real TU58 >>>> you of course had to limit yourself to what the TU58 talked. >>>> With something else, you just have to limit yourself to whatever that >>>> other end is talking. >>>> The big problem, though, is that this is no DMA device. It's either >>>> interrupt-driven, or polled. Either way it consumes a lot of CPU, and >>>> going up in speed is only going to make it worse. There is definitely an >>>> upper limit on how many interrupt per second a PDP-11 can handle, and >>>> each interrupt can only deliver one byte. >>> I hope there is flow control. The new interrupt shouldn't come >>> before the previous character was read/sent. >> You could implement all the flow control you want if you were to design >> a new board for the Qbus (or Unibus) which talked to a PC (or whatever) >> to read/write data. All it needs to be is the same from a software point >> of view on the PDP-11. I can't remember if flow control is a part of the >> protocol to the TU58, but I seem to remember that this was something >> added in a modification to the protocol. >> >> On the PDP11 side, you cannot physically get a new interrupt before the >> previous one have been handled. That is actually true of all CPUs I've >> ever written software for. If that wasn't true, you would face a serious >> hung CPU syndrome, since the fielded interrupt itself should not be >> looping the CPU, but just cause the interrupt to be taken once, and then >> dealt with. :-) >> >> So yes, you do need to do some serious buffering somewhere if you were >> to do this. >> >>>> So no matter how high the speed of the serial line is, or how high the >>>> speed of the mass storage at the other end is, you will not be able to >>>> get that much speed on the PDP-11 side, and even so, it will consume >>>> lots of resources. And on top of that, a TU58 holds a ridicoulus small >>>> amount of blocks. >>> Does an emulated one have to have the same number of blocks? >>> That is, does it sense EOF, or count blocks? >> Count blocks. >> So yes, you'll only be able to have the same number of blocks unless you >> change device drivers. >> Oh, and I seem to remember that the block field in the protocol is >> rather short, so you cannot even theoretically have many more blocks no >> matter what you do without having to redesign the protocol. >> (I think it's a 16-bit value for block number.) >> >>>> Not a good interface to emulate, except for the fact that you already >>>> have a device driver for it. >>> Sounds like a good reason to me. >> In that way it is, indeed. :-) >> >> Johnny >> >> -- >> Johnny Billquist || "I'm on a bus >> || on a psychedelic trip >> email: b...@softjar.se || Reading murder books >> pdp is alive! || tryin' to stay hip" - B. Idol > > The Tu58 protocol is Radial Serial Protocol and the documentation is > Currently Out There Somewhere. Yes. And the original RSP had timing and flow control issues. Therefore DEC came up with the modified RSP (MRSP) later on, if my memory serves me right. > TU58 performance had *two* limiting factors: serial line data rate > (not brilliant), and seek time (verging on appalling). Indeed. > In the discussion here, which end are we talking about emulating? If > you emulate the *drive*, you can create a "TU58" with zero seek time, > and you *may* be able to make some other improvements too (serial line > rate? number of blocks?). I think the intention of the OP was to emulate drive and controller. But wouldn't know for sure, since it wasn't me, and the project is less than interesting for me personally, in any other sense than purely theoretical. > In my younger days, I introduced my then employers to the delights of > VT103s. A VT103 was a VT100 with a Qbus backplane inside (and a few > other differences). You could get them with built in TU58s, or use an > external storage device. We used them with assorted flavours of LSI11 > for RT11-based test equipment, whose typical mode of operation was > "boot OS, load single standalone app, perform tests, log a small > amount of data, print something to record the test results". Yes. I know about the VT103. Have had a few around, but never actually ran any of them. > RT11 on real TU58 was a bit slow to boot, but TU58s were dirt cheap > and had other advantages (e.g. physical size - nil in a VT103) in > comparison with the alternatives (e.g. RX02). > > When RT11 introduced the concept of the LD (?) device, we took that a > step further and implemented "RT11 clusters". > > Each VT103 client thought its system device was a TU58. In actuality > the "TU58's" serial line was connected to a DZ(V)11 port (or maybe > DHV11, I can't remember 100%) on a "host" MicroPDP11/RT11 host running > a home made application which had a separate LD device associated with > each line on the DZ ie a separate LD device associated with each boot > client. > > An RSP request for a block would return the relevant block from that > port's LD image. To make RT11 work on the boot clients, each LD image > had its own RT11 system image. Job done. > > The serial lines were still limited to DH/DZ/DL baud rates, but the > horrendous TU58 seek times were totally eliminated and the time to > application startup wasn't too bad (faster than a typical recent PC > startup?). That same solution have already been done several times. There exist RSP "servers" in the public domain. It's really simple, since the interface is a normal serial line. And the server side, running on some kind of modern PC is way faster than needed anyway, so exactly what interface, and how it is used on that side is hardly relevant. What matters is that unless you build a new device for the client PDP-11, you will have to use a DL(V)-11, which is the most stupid serial port for the PDP-11 ever invented. And not really a good thing to use if you want any real speed to talk about. > The pseudo devices we used were not, to the best of my recollection, > necessarily limited to the size of a physical TU58, although there may > have been other limits imposed by constraints in Radial Serial > Protocol (e.g. field sizes for byte counts). More than enough for RT11 > and a few apps though. RT11 puts very little demand on the hardware. But most people will not be happy with a minimalistic RT11-system, but would want the extended monitor, lots of tools and programs, and so on. And suddenly it's not that fun anymore... :-) > Because of the silos on the DZ/DH11 the "one character per interrupt" > overhead didn't apply on the "host" (or "server") although obviously > the client end still had a genuine DL11 and the associated overhead. Well, not really true. The DZ11 is close to one interrupt per character as well, even though the SILO can be emptied of several characters on one interrupt. The same is true of the reception on a DH11. However, the DH11 use DMA for transmission, which starts making it a lot better. But this is all server side, which I suspect would not even be a PDP-11, or anything even remotely related today, so that point is moot. What matters is that currently, you need a DL11 on the client side. The DL11 is the real limitation here. If you build a new board, you can make it behave the same as te DL11 to the PDP-11, but be a lot smarter and faster talking to the server. That is what I think is being proposed, or toyed with. > So, is that kind of thing of any interest to the current discussion? I don't know. Others will have to tell... 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 ^ permalink raw reply [flat|nested] 146+ messages in thread
* Re: QBUS Prototyping 2010-04-08 21:01 ` Bill Gunshannon ` (2 preceding siblings ...) 2010-04-09 14:39 ` QBUS Prototyping Bob Koehler @ 2010-04-15 17:19 ` Scott Dorsey 3 siblings, 0 replies; 146+ messages in thread From: Scott Dorsey @ 2010-04-15 17:19 UTC (permalink / raw) Bill Gunshannon <billg999@cs.uofs.edu> wrote: >For those who's curiosity has been piqued, I heve recently seen a few >examples of boards that interface IDE disks to the raw bus on a few >old microcomputers. Very few parts required and the cost is minimal. >I got curious about trying it for the PDP-11 and maybe even the VAX. I've got one word for you. One word. Plastics. No, wait, that's not the right word..... DRV-11, that's it. Or DRQ3B. You plug in any 16-bit device, and DMA transfer blocks of data to and from it at almost bus speed. Fine for the PDP-11, though you'll have to write drivers to talk to it. Maybe not so good in the VAX world where everybody wants everything to look like an MSCP device. >On another note, I have also recently seen a system that uses a serial >connection to a PC or MAC as a disk interface. Giving some thought to >that as well. It will be slow, but when you come right down to it, >probably not much slower than an RD51. :-) If you're going to go that route you might as well just go the DRV-11 route... the cards are a bit harder to find but the bandwidth is a lot higher and the driver won't be any more or less work. >And my most ambitious project (and the one I am least likely to find >enough time to do before retirement) is a board that can emulate an >ST-506 disk while utilizing something icheaper and easier to find. I think I have the _opposite_ of that, one of the devices that make an ST506 drive look like a SCSI device. --scott -- "C'est un Nagra. C'est suisse, et tres, tres precis." ^ permalink raw reply [flat|nested] 146+ messages in thread
* Re: QBUS Prototyping 2010-04-08 20:46 ` John Wallace 2010-04-08 21:01 ` Bill Gunshannon @ 2010-04-09 1:00 ` Richard 2010-04-09 11:34 ` David Riley 1 sibling, 1 reply; 146+ messages in thread From: Richard @ 2010-04-09 1:00 UTC (permalink / raw) [Please do not mail me a copy of your followup] John Wallace <johnwallace4@yahoo.co.uk> spake the secret code <21555570-8094-4f6f-b790-18566557980f@h27g2000yqm.googlegroups.com> thusly: >There was a discussion on one of the related ngs recently, can't >remember (or easily find) exactly where, about the availability of >Qbus transceiver chips and the like (DC00x ?) or close substitutes. I >can't remember how it ended but I do remember subsequently wandering >across the Digital Brothers Group website at dbgweb.com, who say they >have some flavours of them. Their prices mostly say "call", but... Yes, every time I've read these discusions, we always end up on the problem of the transceiver. I bought some purportedly compatible chips off of ebay, but haven't tried them in a circuit yet. -- "The Direct3D Graphics Pipeline" -- DirectX 9 draft available for download <http://legalizeadulthood.wordpress.com/the-direct3d-graphics-pipeline/> Legalize Adulthood! <http://legalizeadulthood.wordpress.com> ^ permalink raw reply [flat|nested] 146+ messages in thread
* Re: QBUS Prototyping 2010-04-09 1:00 ` Richard @ 2010-04-09 11:34 ` David Riley 2010-04-09 21:24 ` Richard 0 siblings, 1 reply; 146+ messages in thread From: David Riley @ 2010-04-09 11:34 UTC (permalink / raw) On Apr 8, 9:00 pm, legalize+jee...@mail.xmission.com (Richard) wrote: > [Please do not mail me a copy of your followup] > > John Wallace <johnwalla...@yahoo.co.uk> spake the secret code > <21555570-8094-4f6f-b790-185665579...@h27g2000yqm.googlegroups.com> thusly: > > >There was a discussion on one of the related ngs recently, can't > >remember (or easily find) exactly where, about the availability of > >Qbus transceiver chips and the like (DC00x ?) or close substitutes. I > >can't remember how it ended but I do remember subsequently wandering > >across the Digital Brothers Group website at dbgweb.com, who say they > >have some flavours of them. Their prices mostly say "call", but... > > Yes, every time I've read these discusions, we always end up on the > problem of the transceiver. I bought some purportedly compatible chips > off of ebay, but haven't tried them in a circuit yet. What are the typical problems with the transceivers? The one's I'm using in my board are the 74AS641 (for the big bidirectional groups like DAL) and 74AS757 (for the single bidirectional lines like RPLY or DIN/DOUT). They're still generally available from Mouser and Digikey (though sometimes not in big quantities) and they're compliant, for the most part; I keep seeing people trying to use '245s, which are not open collector or high-current, and I am continually puzzled by that. The only thing I can see that's wrong with most of the things out there is that they have a fast slew rate, which can be bad news bears on a long backplane. I'm not quite sure how much that'll kill things in practice, though. They're also not designed for a 1.5v threshold, but I believe they should work on systems without too much ringing; I suppose I'll have to see how my board does in practice. - Dave ^ permalink raw reply [flat|nested] 146+ messages in thread
* Re: QBUS Prototyping 2010-04-09 11:34 ` David Riley @ 2010-04-09 21:24 ` Richard 0 siblings, 0 replies; 146+ messages in thread From: Richard @ 2010-04-09 21:24 UTC (permalink / raw) [-- Warning: decoded text below may be mangled, UTF-8 assumed --] [-- Attachment #1: Type: text/plain, Size: 917 bytes --] [Please do not mail me a copy of your followup] David Riley <fraveydank@gmail.com> spake the secret code <34bb9843-6871-4e65-aaf3-0feec42c05d6@r27g2000yqn.googlegroups.com> thusly: >On Apr 8, 9:00�pm, legalize+jee...@mail.xmission.com (Richard) wrote: >> >> Yes, every time I've read these discusions, we always end up on the >> problem of the transceiver. �I bought some purportedly compatible chips >> off of ebay, but haven't tried them in a circuit yet. > >What are the typical problems with the transceivers? Its a matter of achieving the proper voltage and current specifications for the Qbus. That's how I understand it, anyway. I haven't gotten too far into the details myself. -- "The Direct3D Graphics Pipeline" -- DirectX 9 draft available for download <http://legalizeadulthood.wordpress.com/the-direct3d-graphics-pipeline/> Legalize Adulthood! <http://legalizeadulthood.wordpress.com> ^ permalink raw reply [flat|nested] 146+ messages in thread
* Re: QBUS Prototyping 2010-04-08 13:52 QBUS Prototyping Bill Gunshannon 2010-04-08 14:38 ` Scott Dorsey 2010-04-08 14:58 ` Al Kossow @ 2010-04-08 20:18 ` JF Mezei 2 siblings, 0 replies; 146+ messages in thread From: JF Mezei @ 2010-04-08 20:18 UTC (permalink / raw) Bill Gunshannon wrote: > Does anyone know where I might find QBUS prototyping boards? You might want to contact Nemonix Engineering. They develop Qbus stuff, so they shoudl know where to get some (or make one for you). ^ permalink raw reply [flat|nested] 146+ messages in thread
end of thread, other threads:[~2011-04-19 16:47 UTC | newest] Thread overview: 146+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2010-04-08 13:52 QBUS Prototyping Bill Gunshannon 2010-04-08 14:38 ` Scott Dorsey 2010-04-08 14:58 ` Al Kossow 2010-04-08 15:44 ` Bill Gunshannon 2010-04-08 20:46 ` John Wallace 2010-04-08 21:01 ` Bill Gunshannon 2010-04-08 21:58 ` Rob Jarratt 2010-04-08 23:00 ` John Wallace 2010-04-09 11:22 ` David Riley 2010-04-09 18:08 ` Johnny Billquist 2010-04-09 18:22 ` Bill Gunshannon 2010-04-10 19:29 ` Johnny Billquist 2010-04-10 21:05 ` Bill Gunshannon 2010-04-11 9:50 ` Johnny Billquist 2010-04-11 14:13 ` Bill Gunshannon 2010-04-09 19:20 ` glen herrmannsfeldt 2010-04-11 22:08 ` Dennis Boone 2010-04-12 11:41 ` dsnyder 2010-04-12 14:46 ` Al Kossow 2010-04-13 11:08 ` dsnyder 2010-04-15 17:27 ` Scott Dorsey 2010-04-15 18:29 ` Al Kossow 2010-04-09 19:14 ` glen herrmannsfeldt 2010-04-09 20:02 ` John Wallace 2010-04-09 20:28 ` David Riley 2010-04-10 1:28 ` glen herrmannsfeldt 2010-04-14 22:28 ` Bob Koehler 2010-04-08 21:59 ` glen herrmannsfeldt 2010-04-08 22:38 ` Bill Gunshannon 2010-04-11 10:16 ` glen herrmannsfeldt 2010-04-11 14:24 ` Bill Gunshannon 2010-04-11 17:10 ` glen herrmannsfeldt 2010-04-12 21:25 ` Johnny Billquist 2010-04-12 22:02 ` John Wallace 2010-04-13 7:34 ` Johnny Billquist 2010-04-19 2:25 ` John Santos 2010-04-19 11:50 ` John Wallace 2010-04-19 10:50 ` VAXman- 2010-04-24 14:55 ` Bill Gunshannon 2010-04-12 22:33 ` glen herrmannsfeldt 2010-04-13 7:53 ` Johnny Billquist 2010-04-13 12:01 ` glen herrmannsfeldt 2010-04-16 23:44 ` Johnny Billquist 2010-04-17 3:15 ` glen herrmannsfeldt 2010-04-17 21:00 ` Johnny Billquist 2010-04-18 0:31 ` glen herrmannsfeldt 2010-04-18 13:23 ` Johnny Billquist 2010-04-18 16:58 ` glen herrmannsfeldt 2010-04-18 23:02 ` Johnny Billquist 2010-04-19 1:39 ` glen herrmannsfeldt 2010-04-19 20:22 ` Johnny Billquist 2010-04-19 21:27 ` glen herrmannsfeldt 2010-04-20 19:36 ` Hans Bachner 2010-04-24 15:36 ` Steven Schweda 2010-04-25 3:55 ` Johnny Billquist 2010-04-25 5:32 ` Steven Schweda 2010-04-25 11:33 ` Johnny Billquist 2010-04-25 12:17 ` glen herrmannsfeldt 2010-04-25 13:31 ` Johnny Billquist 2010-04-25 14:01 ` Steven Schweda 2010-04-25 21:58 ` Johnny Billquist 2010-04-25 13:58 ` Steven Schweda 2010-04-25 21:47 ` Johnny Billquist 2010-04-26 15:40 ` Bob Koehler 2010-04-27 7:37 ` Johnny Billquist 2010-04-27 7:58 ` Bob Eager 2010-04-27 14:56 ` Bob Koehler 2010-04-28 9:06 ` Johnny Billquist 2010-04-28 12:34 ` Bob Eager 2010-04-28 14:51 ` Bob Koehler 2010-04-29 0:18 ` Johnny Billquist 2010-04-29 15:16 ` Bob Koehler 2010-04-27 14:53 ` Bob Koehler 2010-04-28 9:11 ` Johnny Billquist 2010-04-28 14:52 ` Bob Koehler 2010-04-29 0:20 ` Johnny Billquist 2010-04-29 1:15 ` Johnny Billquist 2010-04-29 7:01 ` John Wallace 2010-04-29 11:19 ` Jerome H. Fine 2010-04-29 18:38 ` glen herrmannsfeldt 2010-04-29 19:53 ` Jerome H. Fine 2010-04-29 20:35 ` glen herrmannsfeldt 2010-04-29 21:43 ` Bob Eager 2010-04-30 0:23 ` Johnny Billquist 2010-04-30 1:39 ` glen herrmannsfeldt 2010-04-30 0:19 ` Johnny Billquist 2010-04-30 15:04 ` Bob Koehler 2010-04-30 0:09 ` Johnny Billquist 2010-04-30 0:51 ` Johnny Billquist 2010-04-30 0:58 ` Johnny Billquist 2010-04-30 11:44 ` Jerome H. Fine 2010-04-30 14:59 ` Bob Koehler 2010-04-30 18:34 ` glen herrmannsfeldt 2010-04-29 15:19 ` Bob Koehler 2010-04-30 0:42 ` Johnny Billquist 2010-04-30 0:04 ` Johnny Billquist 2010-04-29 15:17 ` Bob Koehler 2010-04-27 15:43 ` jjh 2010-04-27 16:04 ` Richard B. Gilbert 2010-04-28 9:20 ` Johnny Billquist 2010-04-28 16:12 ` Richard B. Gilbert 2010-04-27 22:27 ` Bob Koehler 2010-04-28 9:18 ` Johnny Billquist 2011-04-18 13:00 ` Bob Koehler 2011-04-18 15:06 ` Johnny Billquist 2011-04-18 12:56 ` Bob Koehler 2011-04-18 15:07 ` Johnny Billquist 2011-04-18 17:26 ` Michael Moroney 2011-04-18 17:53 ` Bob Koehler 2011-04-19 3:35 ` Johnny Billquist 2011-04-19 15:34 ` Michael Moroney 2011-04-19 16:47 ` Johnny Billquist 2011-04-18 17:49 ` Bob Koehler 2011-04-19 3:36 ` Johnny Billquist 2011-04-18 12:52 ` Bob Koehler 2011-04-18 15:11 ` Johnny Billquist 2011-04-18 17:51 ` Bob Koehler 2011-04-19 10:29 ` FTP is 40 years old Paul Sture 2010-04-09 14:39 ` QBUS Prototyping Bob Koehler 2010-04-09 16:00 ` Bill Gunshannon 2010-04-09 23:16 ` John E. Malmberg 2010-04-15 6:12 ` Antti Louko 2010-04-15 16:24 ` Run.PDP 2010-04-15 16:46 ` Al Kossow 2010-04-15 17:24 ` glen herrmannsfeldt 2010-04-15 17:20 ` glen herrmannsfeldt 2010-04-16 23:54 ` Johnny Billquist 2010-04-16 21:59 ` Bob Koehler 2010-04-16 23:56 ` Johnny Billquist 2010-04-17 9:24 ` jjh 2010-04-17 9:56 ` glen herrmannsfeldt 2010-04-17 21:04 ` Johnny Billquist 2010-04-24 15:54 ` Bill Gunshannon 2010-04-24 15:52 ` Bill Gunshannon 2010-04-25 4:00 ` Johnny Billquist 2010-04-25 6:29 ` glen herrmannsfeldt 2010-04-25 7:42 ` Wilm Boerhout 2010-04-25 19:57 ` Antti Louko 2010-04-25 11:40 ` Johnny Billquist 2010-04-25 21:47 ` John Wallace 2010-04-26 0:32 ` Johnny Billquist 2010-04-15 17:19 ` Scott Dorsey 2010-04-09 1:00 ` Richard 2010-04-09 11:34 ` David Riley 2010-04-09 21:24 ` Richard 2010-04-08 20:18 ` JF Mezei
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox