Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: sandee@Think.COM (Daan Sandee)
Subject: Re: Help Requested in Defeating Ring Buffer Software Patent
Date: 29 Sep 91 19:51:03 GMT	[thread overview]
Message-ID: <1991Sep29.195103.18362@Think.COM> (raw)
In-Reply-To: 882@salt.bellcore.com

This in response to Dave Goldblatt's request on the history of circular buffers,
and as comment on Howard Bussey's response.
Note I have set the followup to comp.sys.cdc, so we old CDC hands can go and
wallow in nostalgia without annoying the rest of the universe further.
There's still stuff that I don't know either that Dave would want to know, 
i.e. the real first date, so this is a hint to Dave to keep reading this
newsgroup, as more details may turn up. -- Daan.

In article <882@salt.bellcore.com>, howard@thumper.bellcore.com (Howard Bussey) writes:
|> The SCOPE (and later KRONOS and NOS) operating systems on the CDC 6000
|> and 7000 series used a circular buffer for I/O.  The control structure
|> was like:
|> 
|> struct CBUFFER {
|>  int *first, *in, *out, *limit;
|> };
 [ excellent description deleted ]

|>  ..............  Actually, the PPs were only 1 processor, which
|> time-multiplexed itself each microsecond among 10 or 20 different
|> contexts, resulting in what looked like 10 or 20 individual PPs (each
|> with 1 microsecond instruction cycle times).

 (not quite relevant, and not quite correct either. With 20 PPs, there were
*two* PP chassis each acting as 10 logical PPs in a slot-and-barrel
arrangement. Only the 6000 series ; don't know about 7000 series ; Cyber 70's
were the same but optionally had 7 PPs per chassis ; Cyber 170s from Model D
onwards had real hardware individual PPs).

|> The SCOPE/KRONOS/NOS operating system ....
  Well, there's SCOPE, later known as NOS/BE ; and KRONOS, later known as
  NOS. That's two operating systems.
  The fact that both Scope and Kronos had circular buffers means that the
  feature must be *very* old. After 1970, they weren't talking to each other.
  In fact, lots of the Scope and Kronos development consisted of the two sides
  (re)inventing the same wheels, though in a different order.

|>   ..... may have allowed several
|> simultaneous and independent transfers.  I do know that tape-tape copies
|> could keep the tapes spinning continuously.

At least in SCOPE, the CPU-resident program could set up TWO of these structs
(called File Environment Tables, or FETs), one for reading, one for writing,
using the same buffer, then fire up one PP for reading and one for writing.
The read PP would move the IN pointer, and the write PP would move the OUT
pointer, and the CPU program could sit back and watch. This mechanism was known
as pointer chasing. In this manner a tape-to-tape copy would proceed at full
tape speed. If there was a hitch (say, error recovery on read) the write PP
would find the buffer empty and give up. The CPU program would regain control,
wait for data to be available, and fire up the write PP again.

|> --------------------------------------------------------------
|> Howard Bussey <howard@thumper.bellcore.com>

Dave's original request was for any code before Oct 81. Well, I can find code
which I *think* I wrote around 1976. But the basic principle was in CDC
operating systems *at least* in the very early 1970's. Before my time, anyway.
I first heard of this method in late 1973. (I wonder, do I still have the
SCOPE 3.4 Handbook, dated 1972 or 1973, which describes this?)
Is Greg Mansfield out there ? or Dave Cahlander ? Or Seymour Cray, for that
matter : I don't think he invented it, but I'm sure he knows who did.

Daan Sandee                                           sandee@think.com
Thinking Machines Corporation
Cambridge, Mass 02142


  parent reply	other threads:[~1991-09-29 19:51 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1991-09-29 17:48 Help Requested in Defeating Ring Buffer Software Patent Howard Bussey
1991-09-29 19:05 ` Clarence Wilkerson
1991-09-29 19:51 ` Daan Sandee [this message]
1991-09-30 21:02   ` Steve Jay
  -- strict thread matches above, loose matches on Subject: below --
1991-09-27 10:41 Dave Goldblatt
read-only archive

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