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!news1.google.com!newsread.com!newsprint.newsread.com!news-feed01.roc.ny.frontiernet.net!nntp.frontiernet.net!nntp.giganews.com.MISMATCH!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: Wed, 02 Feb 2005 15:27:39 -0600 Date: Wed, 02 Feb 2005 16:28:23 -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> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: <0dudnRxEFvpR2JzfRVn-uQ@rogers.com> NNTP-Posting-Host: 69.199.68.244 X-Trace: sv3-rcHyxSJknwxX6+AO4j7xiCXbRl27QO7JhfbcoBWYaQySPjH5MRQ0VqgcfQafUYVXpCkqHxYRyHrrBhU!Cl4PL60GUfDLuJWAVQS/P+kIB/lvA8Vrf4yP5AJjpLcrrq+SVfIwycu4A1XbaUjBMstx/2qg 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:1306 >Joseph Huber wrote: >"Mario Premke" 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.