Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: "Jerome H. Fine" <jhfineb9rv@b9rvnospamcompsys.to>
Subject: Re: PDP11 Memory Mangement
Date: Fri, 04 Feb 2005 16:16:52 -0500	[thread overview]
Message-ID: <C9ednX3yQeb1e57fRVn-og@rogers.com> (raw)
In-Reply-To: <mddlla4ktns.fsf@panix5.panix.com>

 >Rich Alderson wrote:

>>jmfbahciv@aol.com writes:
>  
>
>>You could have a "program" that was much larger than the available address
>>space.
>>
>Yes, but that is also true of the PDP-11 operating systems.  My point, in
>response to Jerome Fine's claim, was in regard to *paging* in any particular
>process, rather than the wholesale *segment replacement* of chained processes.
>In that context, each user process *was* limited to a 256K address space in a
>system that could physically be much bigger, but the OS still paged things.
>  
>
Jerome Fine replies:

If anyone reading my response does not agree, I suggest
that we are using the same words with different definitions.
If anyone is responding, then before any additional
viewpoint is expressed, the terms we are using need to
first be defined and agreed upon.

Both of you seem to have missed the key phrase
"PROGRAM  ADDRESS  SPACE"
which refers to the total addressable memory which
may be used at one time (or another) by the program
for either instructions or data.  In particular, when
used for data and there is less physical memory than
"program address space", then by using an algorithm which
results in an excessive number of page swaps to reference
the data across the "program address space", the job
is reduced to thrashing.

Just because the program reuses the same memory many
times due to having many overlays does not, in my
opinion, mean that the program size exceeds the
program address space.  Nor does any other method
of reusing the same memory many times!  Indeed, by
definition, a program can ONLY execute or use data
from within the program address space of the hardware
which is being used.  Only if the physical memory
is less than the total addressable program memory can
there be a problem.  With many early PDP-11 systems
(which did not have or need memory management), that was
often the case.  And in those early systems with less
physical memory then total addressable program memory
(i.e. less than 64 KBytes of memory), I can't seem to
remember anyone suggesting that paging was taking place
even though many programs did require overlays - such
as MACRO-11 on these old systems (maybe not a good
example since MACRO-11 still uses overlays and chains).

The examples used by the previous responders were not
what I accept as paging since the same program addresses
are just being reused, which is what is explicitly done
with program overlays.  So while any technique of managing
memory may be referred to as paging (as in a virtual system),
having worked with and helped to design an operating system
which had a 48 bit address (32 terabytes - it was bit
addressable - which might soon be equaled in physical memory,
but not in 1972 when it was developed using core memory),
I suggest that virtual paging should be with reference to
an operating system which manages memory for a user program
in a manner such that when the maximum allotment is exceeded
for any given program, making a new page available at an
address not currently present requires an older page at a
different address to be swapped (usually to the disk drive).

Under the conditions of true virtual paging, a program
requires a minimum amount of memory to execute in a
reasonable manner at any given time.  That amount of
memory could expand or contract during execution, but
it would often be much smaller than the maximum program
address space that a program would reference in total.

With a PDP-11, the use of overlays which could allow a
program to reuse the same program address space many
times (or the use of chained programs which amounted to
the same thing except that even the root segment was also
replaced), the limited (usually much less than 64 KBytes)
program address space was explicitly managed by the
programmer and reused as often as necessary via explicit
requests to the operating system - as opposed to the
programmer relying on the operating system to swap in a
newly used page without an explicit request to the
operating system as when a page fault (page not in memory)
occurs.

If anyone reading my response does not agree, I suggest
that we are using the same words with different definitions.
If anyone is responding, then before any additional
viewpoint is expressed, the terms we are using need to
first be defined and agreed upon.

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.


  reply	other threads:[~2005-02-04 21:16 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
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 [this message]
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