* Re: PDP-11 UARTS [not found] <9m6u26Fre7U1@mid.individual.net> @ 2012-01-01 0:28 ` Jerome H. Fine [not found] ` <jdlqlj$2s0$1@Iltempo.Update.UU.SE> 1 sibling, 0 replies; 2+ messages in thread From: Jerome H. Fine @ 2012-01-01 0:28 UTC (permalink / raw) [-- Attachment #1: Type: text/plain, Size: 3585 bytes --] >Bill Gunshannon wrote: >All this hardware talk with the DTC01 made me think again. >One of the weak points with the PDP-11 is serial communications. >Has anyone ever considered making a simple board using a 16550 >so that higher speed communications could be done? I have a >cool little SD to serial interface I am playing with that can do >FAT or raw data access and it would make a nice disk drive >for the PDP-11. I am going to play with it at lower speeds >but if we could access this at higher speeds (115.2K or maybe >even 460.8K :-) wouldn't the lack of mehanically induced latency >make it potentially faster than the RX02, RL02 and maybe even >some of the older RD5x disks? > >If I can work out the how-to's I may scavenge one of my old >Terak serial boards to host a 16550 for a test. > >And, while I am asking, does anyone have skeleton code for a >simple disk driver for RT-11 (and Ultrix-11 and BSD 2.11) so >I can try to throw something together to test it at 9600 baud? > When DEC provided a sample (simple) disk device driver for RT-11, the RK05 (RK.SYS) was used as a simple example. In addition, the TU-58 (DD.SYS) tape drive which is based on a serial line interface is also handled as a disk drive as far as RT-11 is concerned. Finally, in Ersatz-11, the demo version always includes the HD (HD.SYS - Hypothetical Disk) device driver along with the source code HD.MAC file. Together, all 3 should provide a good idea of what is the minimum requirement for an RT-11 device driver. I can't help with Ultrix or BSD. If you want really fast disk I/O, then run RT-11 under Ersatz-11 on a current Intel CPU with SATA disk drives. Even before the drive (RT-11 limits a disk drive to 32 MB) is cached by the operating system, making a copy of one drive to a second drive takes under 1 second under Windows XP - that is all 32 MB being read into the emulated PDP-11 memory and written to the emulated disk drive on the physical disk (which can be a 32 MB portion of a much larger disk file). I was using a core 2 duo CPU (E8200) and 500 GB SATA2 hard drives. For the test, I selected two "disk drives" which were on different physical hard drives. After the 32 GB for EACH RT-11 disk drive was cached in physical memory, it took much less time since the read portion of the operation was already in memory and the write portion of the operation was finished by Windows XP after the memory had been updated, but before the blocks were written to the disk file. In addition, Ersatz-11 shows up the significant overhead of the MSCP interface. Benchmarks using DU devices take considerably longer than benchmarks which use the HD device - which only Ersatz-11 makes available - although it would be great if someone also wrote the code for SIMH as well. Probably the PDP-11 hardware addicts will ignore the above I/O transfer rates, but the software addicts like myself do not really care what the actual hardware consists of. In fact, there is a relatively new Qbus board which replaces the CPU, memory and disk controller that is now able to support this level of CPU and disk I/O performance available under Ersatz-11 The newest board is the PDQ-1000 and it is currently manufactured by the Logical Co. and is the fastest PDP-11 "hardware" available, although I suspect that Ersatz-11 running under a 32 bit Windows XP operating system on the newest Intel CPUs will be even faster in BOTH CPU and disk I/O speeds when the latest CPUs and SATA disk drives are used. Jerome Fine [-- Attachment #2: Type: text/html, Size: 4353 bytes --] ^ permalink raw reply [flat|nested] 2+ messages in thread
[parent not found: <jdlqlj$2s0$1@Iltempo.Update.UU.SE>]
[parent not found: <3Yydnfu9EbWq5mPTnZ2dnUVZ5vWdnZ2d@giganews.com>]
[parent not found: <jdmv7h$e2h$1@Iltempo.Update.UU.SE>]
* Re: PDP-11 UARTS [not found] ` <jdmv7h$e2h$1@Iltempo.Update.UU.SE> @ 2012-01-01 0:35 ` Jerome H. Fine 0 siblings, 0 replies; 2+ messages in thread From: Jerome H. Fine @ 2012-01-01 0:35 UTC (permalink / raw) [-- Attachment #1: Type: text/plain, Size: 3031 bytes --] >Johnny Billquist wrote: > No, it has only one bus for both memory and I/O (with the exception of > the last models, which had memory sortof on the side). Also, I wasn't > talking about one serial port, I was talking about an example with 8. > Most PDP-11s I've ever used have had more serial ports than that. > The most I remember was an 11/70 with 64 serial ports. > > Also, buffering is nice, and most serial interfaces on the PDP-11 have > that, but it is difficult to utilize fully. For output, you need then > to know how much space you have free in the buffer, and write the > right number of bytes. For input, you really don't want to wait until > the buffers are full, as interactive usage means people expects things > to happen right away, as well as some characters have special meaning > on input. > But I kept it simple in my text by intention. Yes, buffering will help > some with interrupts, but we're still talking huge numbers of > interrupts when we get to high speeds. Which should be obvious from > what I wrote. I remember (probably at least 20 years ago so this is very hazy) looking at the interrupt code for a DZ11 with 16 channels. The FIFO buffer was set to interrupt on every character, so you are correct with regard to an interrupt for the first byte to enter. However, if I do remember correctly, before the interrupt code released control back to the CPU (I think this was a PDP-11/34A, but I would guess that the same code concept could be used for any DZ or DH multi-channel serial device with an input buffer), it was possible to determine if more bytes were in the input buffer at which point, all the extra overhead of entering and leaving the interrupt handler could be avoided. The net result was that when a number of channels received nearly simultaneous input (within a few microseconds), fewer hardware interrupts were produced since the interrupt handler code detected the presence of bytes already in the input buffer (the hardware buffer in the DZ or DH multiplexor) and those bytes were transferred to their software buffers for the tasks or jobs which were waiting. At 128K bytes per second for each input channel on eight channels, that would be two bytes, on average, every microsecond. I can't remember the instruction speed on a PDP-11/73, but it would have to be at least 10 instructions per microsecond to handle 1 word on the Qbus, on average, each microsecond and very little else during a sustained burst. Johnny, I think that you would best be able to comment since my hardware background is seriously lacking. However, if the hardware speed was to be increased by a 100 by using a PDQ-1000 from Logical Co., then it might be very possible to handle a sustained burst without any difficulty. I think there there is even hardware for a compatible DH board for the PDQ-1000, but then the Qbus speed might be the limiting factor. Johnny, can you comment on this aspect as well? Jerome Fine [-- Attachment #2: Type: text/html, Size: 3700 bytes --] ^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-01-01 0:37 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <9m6u26Fre7U1@mid.individual.net>
2012-01-01 0:28 ` PDP-11 UARTS Jerome H. Fine
[not found] ` <jdlqlj$2s0$1@Iltempo.Update.UU.SE>
[not found] ` <3Yydnfu9EbWq5mPTnZ2dnUVZ5vWdnZ2d@giganews.com>
[not found] ` <jdmv7h$e2h$1@Iltempo.Update.UU.SE>
2012-01-01 0:35 ` Jerome H. Fine
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox