Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: "Jerome H. Fine" <jhfineb9rv@b9rvnospamcompsys.to>
Subject: Re: PDP11 Memory Mangement
Date: Wed, 02 Feb 2005 16:28:23 -0500	[thread overview]
Message-ID: <0dudnRxEFvpR2JzfRVn-uQ@rogers.com> (raw)
In-Reply-To: <hyuaQMw8ZNhg@vms.mppmu.mpg.de>

 >Joseph Huber wrote:

>"Mario Premke" <mapr@sybcom.de> writes:  
>
>>>For starters, you'll need to be more specific; memory management was
>>>different for different PDP-11 models.  For example, the map.reg's
>>>could be changed by UNIBUS devices on the 11/70, but not on the 11/34.
>>>
>>What I am interested in: was paging possible an these machines,
>>
>No , if You mean paging=virtual memory; PDP memory management
>is virtual addressing by segmenting.
>  
>
Jerome Fine replies:

The first thing to understand is that for the PDP-11, the program 
address range
(64 KByte of instructions/data and 64 KByte of separate 
Instructions/Data for
those systems with a separate I/D MMU capability) was ALWAYS less than
the physical address range for those systems WITH an MMU (memory
management unit), or at least the systems which were produced when memory
had become much less expensive.  The maximum allowable memory for a
standard PDP-11 is 4 MBytes with the top 8 KBytes not available since the
address lines are switched by the hardware to the hardware I/O PAGE.

As for the PDP-11/34, as far as I can understand, the reason that there were
no map registers for I/O devices was that the maximum memory was 256 KBytes
which, as far as I remember, Unibus I/O devices could handle without map
registers.  Map registers were not required on Qbus systems with more than
256 KBytes of memory since I/O devices which were for the Qbus and for
systems with 4 MBytes of memory had the extra bits in the CSR to allow
user buffers above 256 KBytes.  However, when I/O devices such as the
RX02 floppy controller were used, on a Qbus, it was also possible to use
a bounce buffer, although with the RT-11 operating system, DEC never did.

As for your actual question about paging, that concerns operating systems
which have less physical memory than the program address space, at least
as far as I am concerned.  I have worked with DEC,  IBM and CDC virtual
paging systems which automatically swap pages in for a user when the page
is referenced and is not already in physical memory.

>>could
>>segments became larger than 64K, was there a restriction that executables
>>were confined to 64K code + 64K data?
>>
>Virtual address segments are fixed 8KB, there are
>8 segments in each "address space", depending on the
>model: Kernel Instruction, Kernel Data,
>Supervisor I+D, User I+D.
>(Supervisor mode I think started with model 11/45).
>Use of supervisor I+D was supported on RSX11M+, so a program
>could use 128K Instructions + 128K Data.
>  
>
While I would use "Logical" rather than "Virtual", the
exact words are not essential.  In addition, the address
segments are a maximum of 8 KBytes, and may be any size
in increments of 64 Bytes.  PLUS, as far as the user is
concerned, by combining up to 8 address segments in a
contiguous area of physical memory, it is possible to
use a maximum of 64 KBytes as an area of memory either
for instructions or data which could be considered as
one address segment by the program even though the MMU
would still consider it to be 8 separate address segments
AND would set up the 8 pairs of hardware registers to
handle the 64 KBytes.

As stated above, where there is a separate I/D capability
(instruction/data), there are 3 hardware modes in the MMU
(such as the PDP-11/73):
Kernel
Supervisor
User

When there is no separate I/D capability, the 2 hardware
modes in the MMU are (such as the PDP-11/23):
Kernel
User

As for the restriction that the program space (both instruction
and data - if available) be restricted to 64 KBytes, this aspect
is a function of the instruction set and the hardware registers,
especially the PC (Program Counter).  In general, all single
registers with the PDP-11 are 16 bits which allows an address
of zero to 65535 bytes, although each word is 2 bytes and always
has an even address.  Since Base Registers (as per x86 hardware)
do NOT exist with the PDP-11, your question (while it makes sense
with the x86 hardware) shows that you need to read the manual for
a PDP-11 to understand why your question has no meaning in the
PDP-11 architecture.  The fact that the PDP-11 has up to 4 MBytes
of physical memory with a program address space of only 64 KBytes
seems to imply a virtual address capability.  In my opinion, that
assumption is incorrect based on my experience with systems which
have a program address space many times greater than the physical
memory.  In my mind, I refer to the program addresses as logical
(with the MMU converting them to physical addresses at execution
time) and which the program, in general, has no knowledge of nor
even cares.

This topic can be extremely confusing unless you read the manual
which describes the PDP-11 MMU hardware.

If you have any more questions, please ask!

Sincerely yours,

Jerome Fine
--
To obtain the original e-mail address, please remove
the ten characters which immediately follow the 'at'.
If you attempted to send a reply and the original e-mail
address has been discontinued due a high volume of junk
e-mail, then the semi-permanent e-mail address can be
obtained by replacing the four characters preceding the
'at' with the four digits of the current year.


  parent reply	other threads:[~2005-02-02 21:28 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-02-01  8:36 PDP11 Memory Mangement Mario Premke
2005-02-01 11:12 ` Bob Willard
2005-02-01 22:54   ` Eric Smith
2005-02-02  7:13   ` Mario Premke
2005-02-02  7:53     ` Joseph Huber
2005-02-02 20:30       ` Eric Smith
2005-02-03  7:30         ` Joseph Huber
2005-02-02 21:28       ` Jerome H. Fine [this message]
2005-02-03  0:30         ` Rich Alderson
2005-02-03 10:48           ` jmfbahciv
2005-02-04 19:32             ` Rich Alderson
2005-02-04 21:16               ` Jerome H. Fine
2005-02-05 11:20               ` jmfbahciv
2005-02-03 15:05     ` prep
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