From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10f8a1,b0b9a5eaad4ab6eb X-Google-Attributes: gid10f8a1,public X-Google-Thread: 1164f8,b0b9a5eaad4ab6eb X-Google-Attributes: gid1164f8,public From: Jerome Fine Subject: Re: Tangental topics Date: 1998/03/02 Message-ID: <34FA4017.F189C19A@idirect.com>#1/1 X-Deja-AN: 329938438 Content-Transfer-Encoding: 7bit References: <1998Jan29.000909.1@eisner> <6buja8$hrr@flonk.uk.sun.com> <6cg8vp$bbf@nntp02.primenet.com> <34EE53C9.2843@OntheNet.com.au> <6cn3kq$qo3$1@andros.cygnus.com> <6db0g4$ih4$2@nntpd.lkg.dec.com> To: Michael Pettengill Content-Type: text/plain; charset=us-ascii Organization: "TUCOWS Interactive Inc" MIME-Version: 1.0 Newsgroups: comp.sys.dec,vmsnet.alpha >Michael Pettengill wrote: >>Bill Moyer wrote in message <6cn3kq$qo3$1@andros.cygnus.com>... >> Well, can we blame Cutler for using the same braindead FIFO page >>replacement policy in WNT as he did in VMS, which is subject to >>Belady's Anomaly? Or the same fixed-size working sets, which can >Lest anyone be confused, VMS does not use FIFO page replacement, >nor fixed working sets, and that hasn't been the case for well over >15 years. Replacing the initial implementations proved to be far more >difficult than the theory suggested. In fact, the supposed superior >algorithms degraded performance in a lot of common cases. I'm >sure that this was the case with WNT; the theoretical best algorithms >failed to deliver and it took a lot of work to modify the alorithms to >fit reality. Jerome Fine replies: A long time ago in a computer system far, far away there was once an operating system that was too far ahead of its time for the hardware that was insufficient in capacity and too expensive for even most large corporations. Or was the problem a simple lack of understanding that a large investment in software means that users will not blindly switch to a new piece of hardware that is faster and more cost effective after all the conversion is done. Because if the conversion is too difficult and too expensive, the aspect of how cost effective the computer can run after the conversion is not terribly important. But back in 1970, such thoughts were not yet dangerous. Or at least, marketing had not heard of them at the time. Now I am probably simplifying the situation, but Control Data likely spent over $ 50 Million to develop the STAR 100 under Cray as the fastest hardware of the time. It had a 48 bit address (virtual obviously) for each bit which gave a 32 TeraByte User address space - well not quite - half the address space was set aside for the operating system. But there could be about 4096 jobs at once (there never was that many - but the hardware design and the software implementation would have allowed it), so the total combined address space for jobs was 131,000 TeraBytes. On a computer that, if I remember correctly, had about 1 MByte of physical memory. The point of this whole preliminary is that virtual paging was essential and trashing was potentially common in such a limited environment. To make a very long story shorter, the algorithm used was LRU which the hardware set up automatically since each referenced memory page was pushed to the top of a list of MRU pages. The LRU algorithm seemed to function fairly well, except that there was always a shortage of free pages. With that thought in mind, I set up some code in the page manager which would select pages which were LRU candidates and flushed them to the disk (if they had been modified). It was considered, however, that some of these pages might be actually needed before they were discarded. Consequently, the pages were kept in the available list and flagged to determine if keeping them available served any useful purpose after they had already been written to disk. Surprisingly, a reasonable percentage (in some cases as high as 40%) were found to be needed before they were actually discarded and overwritten even though they had been LRU (the alternative would have been to discard any page selected, send the contents to disk, then read the same page back into memory when it was found to be needed - thereby requiring a second I/O operation - a READ - at a time when the job was actually waiting for the page) candidates. Since the project was eventually canned, little remains in the way of solid data as to how working set size and other variables might have been involved or used to improve the situation. I have heard that VMS does use an LRU algorithm that has to be implemented via software. I am not aware of what additional touches are being used at present, but it would be interesting to discuss such algorithms either in this public forum or by private e-mail. While my experience may be dated, at least it had the advantage of using a hardware maintained LRU list which I suspect very few, if any, systems now implement. Indeed, I would be very pleased to hear about any systems which have a hardware maintained LRU list for pages in a virtual memory environment. It was all very leading edge technology for a while, but I find now that staying with the PDP-11 and RT-11 is somehow just as satisfying. Even now, the market for RT-11 is actually larger than the STAR 100 market at its peak (likely less than a dozen STAR 100 systems were ever sold). Sincerely yours, Jerome Fine RT-11/TSX-PLUS User/Addict Year 2000 Solutions for Legacy RT-11 Applications (Sources not always required)