From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 102b75,85404311f8041f7a X-Google-Attributes: gid102b75,public X-Google-Thread: 1164f8,5747331edea7cbab X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 2001-07-24 06:32:07 PST Newsgroups: comp.sys.dec,comp.arch Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.mathworks.com!news.mathworks.com!uunet!ash.uu.net!world!clj From: Chris Jones Subject: Re: using memory beyond the "top" of stack (was: Re: CPU failure in an SMP system (was Re: Compaq kills Alpha)) Sender: clj@world.std.com (Chris Jones) Message-ID: Date: Tue, 24 Jul 2001 13:31:35 GMT References: <994616870.688233@haldjas.folklore.ee> <9iuka3$rku$1@mach.thp.univie.ac.at> Organization: The World Public Access UNIX, Brookline, MA X-Newsreader: Gnus v5.3/Emacs 19.34 Followup-To: comp.arch Xref: archiver1.google.com comp.sys.dec:6103 comp.arch:14505 jthorn@mach.thp.univie.ac.at (Jonathan Thornburg) writes: > > [[referring to programs that wrongly assume that memory beyond the > top-of-stack is available for use]] > Someone who (if I have correctly unwrapped the nested quotation) > may have been Terje Mathisen , wrote > in what may have been message news:3B517D2D.2E0F8142@hda.hydro.com, > # This is _not_ a valid reason to allow such code to keep working. > # > # IMNSHO code like that should be 'terminated with extreme prejudice', and > # the perpetrators forced to write at least one working Dos program, where > # the application stack is also the hw interrupt stack. I agree that such code is broken and deserves whatever happens to it. Late in the lifetime of Multics, a performance enhancement called "stack truncation" was implemented in the kernel. The idea was that any pages in a stack segment past the stack pointer were logically invalid, and could be dropped at any time memory was required. We later backed off and allowed one (or two?) pages to stick around, but as I recall that wasn't due to discovering that anyone was using that memory, but that observation showed us that dropping those pages was a bad idea from a performance standpoint -- the stack was very likely to grow back and cause a page fault requiring them to be created again.