The Unix Heritage Society mailing list
 help / color / mirror / Atom feed
* [TUHS] Memory on Lion's v6
@ 2022-02-28  5:48 Will Senn
  2022-02-28  6:09 ` Warner Losh
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Will Senn @ 2022-02-28  5:48 UTC (permalink / raw)
  To: TUHS main list

[-- Attachment #1: Type: text/plain, Size: 806 bytes --]

Does anybody know how much memory was configured on the PDP-11 that 
Lion's used for the commentary system. Here's what the book says about 
the system:

; from lions, page 1
; The code selection presumes a "model" system consisting of:
; PDP11/40 processor;
; RK05 disk drives;
; LP11 line printer;
; PC11 paper tape reader/punch;
; KL11 terminal interface.

I usually add the mag tape, too
; TM10 magnetic tape - not in lions, but super handy

It seems like he must have had an MMU and 128k memory, but I don't know. 
I'm hoping y'all remember, know, or can otherwise divine the correct 
value. I've run with no MMU - crash on boot. I've also run with less 
memory, but then cc won't build mkconf, when I have the TM10 enabled 
kernel loaded. As a reminder, his book was published in 1977.

Thanks,

Will

[-- Attachment #2: Type: text/html, Size: 1201 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread
* Re: [TUHS] Memory on Lion's v6
@ 2022-03-01  0:44 Noel Chiappa
  0 siblings, 0 replies; 10+ messages in thread
From: Noel Chiappa @ 2022-03-01  0:44 UTC (permalink / raw)
  To: tuhs; +Cc: jnc

    > From: Will Senn

    > Does anybody know how much memory was configured on the PDP-11 that
    > Lion's used for the commentary system. Here's what the book says about
    > the system:
    > ..
    > ; PDP11/40 processor;
    > ...
    > It seems like he must have had an MMU

V6 absolutely requires an MMU; the need for it is all throughout basic
attributes of the system - e.g. user processes start their address space at 0.

(BTW, there are V6 descendants, MINI-UNIX:

  http://gunkies.org/wiki/MINI-UNIX

and LSX, which don't use/need an MMU, and run on -11 models without memory
managament, such as -11/05's, but I don't think they were in wide use outside
Bell.)


    > and 128k memory

The -11/40, as originally released, only supported the MM11-L, which came in
multiples of 16KB (for a 3-board set). Use of the later MM11-U (32KB units)
required a new main power harness, which only came in on
higher-serial-numbered -11/40's.

The -11/40 (as it was at first) that I had at LCS had, to start with, I'm
pretty sure, 3 MM11-L units (i.e. one MM11-L backplane full) - i.e. 48KB. I
know this sounds incredible, and I'm having a hard time believing it myself,
wondering if my memory is failing with age; but it definitely had
extraordinarily little.

I just looked on my V6 (running in a simulator), and it appears that by
trimming all parameters (e.g. number of disk buffers) to the absolute bone,
the kernel could be trimmed to about 36KB. (I haven't actually tried it,
since I don't feel like recompiling all the kernel modules, but one can
estimate it - take the current system size [44KB], delete 10 buffers @ .5KB
gives 39KB, etc, etc.)

That would allow a maximum user process of 12KB on a 48KB machine - and
MINI-UNIX, which runs basically stock V6 user code, can manage with user
processes that small.

I see Andrew's email which reports that the Lions machine had more main
memory, 128KB (maybe 4 MM11-U's - two MM11-U backplanes full); that 
woould have made their life a lot easier.

	Noel

^ permalink raw reply	[flat|nested] 10+ messages in thread
* Re: [TUHS] Memory on Lion's v6
@ 2022-03-02  1:19 Noel Chiappa
  2022-03-02  2:15 ` Warner Losh
  0 siblings, 1 reply; 10+ messages in thread
From: Noel Chiappa @ 2022-03-02  1:19 UTC (permalink / raw)
  To: tuhs; +Cc: jnc

    > From: Andrew Hume

    > the actual configuration of Lions; PDP 11/40 was
    >        128 Kbytes of core memory
    > ...
    > but note that because ... of addressing weirdness (the top 8KB were
    > memory-mapped to I/O registers), Lions' PDP actually had 112KB of main
    > memory

I think that '112KB' must be an error; the 8KB for the 'I/O page' (as DEC
eventually named ir, long after the rest of the world had started using the
term :-) were deducted from the _UNIBUS_ address space, meaning a UNIBUS -11
(the 'pure' UNIBUS -11's, i.e. other than the -11/70, -11/44, etc) could have
a maximum of 248KB of main memory (which is on the UNIBUS).

A pure UNIBUS -11 with 128KB of main memory (like Lions') has... 128KB of
main memory. The 'small memory management model' -11's (like the /40, /60,
/23, etc) can use at most 64KB of that _at any moment in time_ for user
processes (i.e. directly accessible by the CPU, in 'user' mode).

(The kernel on such machines is basically retricted to 56KB at any moment in
time, since one 'segment/page' - the terminology changed over time - has to be
dedicated to the I/O page: the memory management control registers are in
that, so once the CPU can no longer 'see' them, it's stuck. Long, potentially
interesting digression about, and ways to semi-work around that, elided,
unless people want to hear it.)


    > From: Noel Chiappa

    > The -11/40 (as it was at first) that I had at LCS had, to start with,
    > I'm pretty sure, 3 MM11-L units .. - i.e. 48KB. I know this sounds
    > incredible, and I'm having a hard time believing it myself, wondering
    > if my memory is failing with age

It is:

  # size /lib/c0
  13440+2728+10390=26558 (63676)

('c1' takes 14848+6950+2088=23886, FWIW.) So 'my' -11/40 must have had more
than 48KB. 

MINI-UNIX provides, on an -11/05 type machine with the maximum of 56KB of
addressable main memory (if you plugged in 64KB worth, the /05 CPU couldn't
'see' the top 8KB of that), up to 32KB for a user process. So that will
just hold the stock V6 C compiler.

I'm not now sure how much memory my -11 _did_ have initially, but it's not
important.

	Noel

^ permalink raw reply	[flat|nested] 10+ messages in thread
* Re: [TUHS] Memory on Lion's v6
@ 2022-03-02  2:26 Noel Chiappa
  0 siblings, 0 replies; 10+ messages in thread
From: Noel Chiappa @ 2022-03-02  2:26 UTC (permalink / raw)
  To: tuhs; +Cc: jnc

    > You made a comment that MINI-UNIX wasn't available outside of Bell...

No, I didn't say that. What I _actually_ said was: "don't think they were in
wide use outside Bell".

     Noel

PS: Can I appeal to people to please take a few seconds of their time and
trim messages they are replying to? Thank you.

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

end of thread, other threads:[~2022-03-02  2:35 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-28  5:48 [TUHS] Memory on Lion's v6 Will Senn
2022-02-28  6:09 ` Warner Losh
2022-02-28 15:48 ` Clem Cole
2022-02-28 23:27   ` Andrew Hume
2022-03-01 15:31     ` Andrew Hume
2022-03-01  1:25 ` Bakul Shah
2022-03-01  0:44 Noel Chiappa
2022-03-02  1:19 Noel Chiappa
2022-03-02  2:15 ` Warner Losh
2022-03-02  2:26 Noel Chiappa

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).