From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Thread: 1164f8,4f4c3318a7af3d31 X-Google-Attributes: gid1164f8,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!news.glorb.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local1.nntp.dca.giganews.com!nntp.rogers.com!news.rogers.com.POSTED!not-for-mail NNTP-Posting-Date: Fri, 04 Feb 2005 15:17:28 -0600 Date: Fri, 04 Feb 2005 16:16:52 -0500 From: "Jerome H. Fine" Organization: Just Sufficient User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.7.2) Gecko/20040804 Netscape/7.2 (ax) X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.sys.dec Subject: Re: PDP11 Memory Mangement References: <368t5iF4t3e0oU1@individual.net> <4oGdncXfvei8-WLcRVn-hg@comcast.com> <36bckaF4vf01dU1@individual.net> <0dudnRxEFvpR2JzfRVn-uQ@rogers.com> In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Message-ID: NNTP-Posting-Host: 69.199.68.244 X-Trace: sv3-XhqW6a+72uCMkzRkTkPuFHqbfWZosRh1ywVYICSSLgd1IOyBnVaK0MLgLy748FNGnVmFcc/eI+WUAwz!Z5z4frkMWK0/TdioyiZ15/6FAN8RTxoznObjHqkU1SN89zXUBVXJOXJuYlCPB5e36298JMIk X-Complaints-To: abuse@rogers.com X-DMCA-Complaints-To: radman@rogers.wave.ca X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.22 Xref: g2news1.google.com comp.sys.dec:1327 >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.