Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
* Driver questions
@ 1993-01-15 19:28 cts
  1993-01-18 14:08 ` Bob Koehler
  1993-02-05 10:30 ` fisher
  0 siblings, 2 replies; 3+ messages in thread
From: cts @ 1993-01-15 19:28 UTC (permalink / raw)


I have an application which is being moved from a PDP11/44 (may it rest in
peace real soon now) to a MicroVAX system (actually, its one of the redundant
Mira systems).  Anyway, this application used to use a DR11-W on the PDP
side;  this is being changed to a DRV11-W.  

The application in question sends a data stream to a custom hardware device
which translates it into videotext.  This process works more or less 
pretty well;  the issues we're seeing are in the performance area.

The driver used for this device is custom;  it was started on by an individual
who then left the company;  I picked it up;  I should have thrown it out 
and started from scratch... however.

The application requires that each I/O be sent twice.  This is handled in
the driver.  Further, as things are set up now, each QIO write requires
4 write cycles.  The first strobes the FC1 bit high - this tells the
custom hardware on the other end to prepare itself.  Then, the data
is transfered.  Then we repeat the previous two steps.  We're waiting
for an interrupt back from the device for each of these.  (Note, the FC1
bit is a replacement for the old GO line on the DR11-W, apparently this
cycle did not exist on the PDP side)

At best, we're seeing about 25 I/Os per second (from the user program point
of view) out of this device.  Changing the packet size doesn't appear to 
make a lot of difference;  the PDP seems to be able to do around 80 I/Os
per second (this could include the double I/O);  in any case, it's 
not fast enough. 

Putting the application on a PDP is not an option, perhaps unfortunately.

Any thoughts, suggestions, or comments;  any hints on the DRV11-W 
would be appreciated.

Also, in the same project, we will be using a DRV11-J to create an 
interrupt (from a button push on a control pannel).  This interrupt 
needs to be handled, and cause an output to the above DRV11-W in
4/30's of a second or less.  Is this a reasonable thing to achieve
on a Vax?



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Driver questions
  1993-01-15 19:28 Driver questions cts
@ 1993-01-18 14:08 ` Bob Koehler
  1993-02-05 10:30 ` fisher
  1 sibling, 0 replies; 3+ messages in thread
From: Bob Koehler @ 1993-01-18 14:08 UTC (permalink / raw)


In article <1993Jan15.142835.1014@dragon.com>, cts@dragon.com writes...
>I have an application which is being moved from a PDP11/44 (may it rest in
>peace real soon now) to a MicroVAX system (actually, its one of the redundant
>Mira systems).  Anyway, this application used to use a DR11-W on the PDP
>side;  this is being changed to a DRV11-W.  

> Further, as things are set up now, each QIO write requires
>4 write cycles.  The first strobes the FC1 bit high - this tells the
>custom hardware on the other end to prepare itself.  Then, the data
>is transfered.  Then we repeat the previous two steps.  We're waiting
>for an interrupt back from the device for each of these.  (Note, the FC1
>bit is a replacement for the old GO line on the DR11-W, apparently this
>cycle did not exist on the PDP side)
> 

This is probably not necessary and may cause problems.  The typical thing to do
in going from a DR11W to a DRV11W is to sense the change in the state of READY
as a replacement for the GO bit pulse on the user side.  (When GO is set in the
CSR, the READY state changes).  DEC types (I think it was the author of
XADRIVER) have confirmed that this is the apropriate thing to do, you can
actually get into trouble using a function bit, I don't recall the details.

------------------------------------------------------------------------------
Bob Koehler                     |   Any illusion to these opinions being other
rkoehler@author.gsfc.nasa.gov   |   than just mine alone is just that.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Driver questions
  1993-01-15 19:28 Driver questions cts
  1993-01-18 14:08 ` Bob Koehler
@ 1993-02-05 10:30 ` fisher
  1 sibling, 0 replies; 3+ messages in thread
From: fisher @ 1993-02-05 10:30 UTC (permalink / raw)


In article <1993Jan15.142835.1014@dragon.com>, cts@dragon.com writes:
> I have an application which is being moved from a PDP11/44 (may it rest in
> peace real soon now) to a MicroVAX system (actually, its one of the redundant
> Mira systems).  Anyway, this application used to use a DR11-W on the PDP
> side;  this is being changed to a DRV11-W.  
> 
This should not pose problem.  The DRV11-W is the correct Q-BUS equivelant for
a DR11-W.

> The driver used for this device is custom;  it was started on by an individual
> who then left the company;  I picked it up;  I should have thrown it out 
> and started from scratch... however.
> 

Does it appear to you the customized device driver was written from scratch, or
was the XADRIVER.MAR in SYS$EXAMPLES used as a starting point?  XADRIVER does a
pretty good job at being a straight forward QIO-driven DMA device driver.

> 
> At best, we're seeing about 25 I/Os per second (from the user program point
> of view) out of this device.  Changing the packet size doesn't appear to 
> make a lot of difference;  the PDP seems to be able to do around 80 I/Os
> per second (this could include the double I/O);  in any case, it's 
> not fast enough. 
> 
I've been able to get a 250 word structure cycled in and out of memory at a
rate of 50 HZ (20ms) with the stock XADRIVER running on a MicroVAX 3600 (rated
at 2.7 VUPS).  This is 100 I/O operations per second. 

> Any thoughts, suggestions, or comments;  any hints on the DRV11-W 
> would be appreciated.
> 
Take a look at SYS$EXAMPLES:XADRIVER.MAR to see if what you have is close. 
Also, get a copy of Digital's Realtime User's Guide (dec order number
AA-PE1WA-TE).  This book has a very good explanation of ways to tune VMS to
improve realtime performance, and how to reduce system overhead in device i/o.
You should be able to get it either through your local Sales Office or from one
of the Digital 800 order numbers like Dec-Direct.

I would consider the book mandatory reading for anyone serious about doing
realtime work on a VAX.

> Also, in the same project, we will be using a DRV11-J to create an 
> interrupt (from a button push on a control pannel).  This interrupt 
> needs to be handled, and cause an output to the above DRV11-W in
> 4/30's of a second or less.  Is this a reasonable thing to achieve
> on a Vax?
> 

You should be able to do this if you are careful with your process priorities.

Also, does your VAX have to be running VAX/VMS? Or can it be running VAXeln for
the realtime kernel?  If so, you would have a whole new dimension to what you
can do with the realtime application.  The Realtime User's Guide also has a
very nice overview of VAXeln.

-- 
-----------------------------------------------------------------------------
Lawrence Fisher                      Realtime Software Specialist
Fisher@HIGHD.ENET.DEC.COM            Digital Equipment Corporation
                                     Southern California
   -- From the desert to the sea, helping meet Digital's Realtime needs --
*   This message reflects my own views/opinions, not those of my company    *
-----------------------------------------------------------------------------



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~1993-02-05 10:30 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1993-01-15 19:28 Driver questions cts
1993-01-18 14:08 ` Bob Koehler
1993-02-05 10:30 ` fisher

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox