From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,5747331edea7cbab X-Google-Attributes: gid1164f8,public X-Google-Thread: fa528,85404311f8041f7a X-Google-Attributes: gidfa528,public X-Google-Thread: 102b75,85404311f8041f7a X-Google-Attributes: gid102b75,public X-Google-ArrivalTime: 2001-06-29 09:56:34 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news-was.dfn.de!znr.news.ans.net!news.chips.ibm.com!newsfeed.btv.ibm.com!news.btv.ibm.com!hack From: hack@watson.ibm.com (hack) Newsgroups: comp.sys.dec,comp.unix.tru64,comp.arch Subject: Re: Compaq kills Alpha Date: 29 Jun 2001 16:56:28 GMT Organization: IBM_Research Message-ID: <9hibvs$o78$1@news.btv.ibm.com> References: <3B37351D.5080503@cli.de> <3B3C75DD.3528147C@TeraPort.de> <993820703.988205@haldjas.folklore.ee> <9hi0vk$ba7$1@pegasus.csx.cam.ac.uk> NNTP-Posting-Host: starcraft.watson.ibm.com X-Trace: news.btv.ibm.com 993833788 24808 9.2.8.37 (29 Jun 2001 16:56:28 GMT) X-Complaints-To: news@btv.ibm.com NNTP-Posting-Date: 29 Jun 2001 16:56:28 GMT Xref: archiver1.google.com comp.sys.dec:4956 comp.unix.tru64:2812 comp.arch:12544 In article <9hi0vk$ba7$1@pegasus.csx.cam.ac.uk>, Nick Maclaren wrote: > >In article <993820703.988205@haldjas.folklore.ee>, >Sander Vesik writes: >|> In comp.arch Martin Knoblauch wrote: >|> > do threads have to come from one single application to make use of SMT >|> > (at least as it was planned for EV8)? >|> >|> No, not at all. And unless they screwed something up, one thread would be >|> able to be ay doing TLB reload for itself while some other thread was >|> doing computation, etc. > >This has been tried before - it didn't work then, either. > >Most systems have modes (kernel and other, if nothing else). Now, >consider the problems of allowing the two threads to be associated >with applications running in different modes. There are basically >two solutions: > > 1) Replicate enough of the state so that you are really >talking about SMP-on-a-chip and not SMT any longer. This is indeed one way of looking at SMT. It still differs from SMP-on-a-chip in that things which can be shared are shared, hopefully leading to better exploitation of chip resources. If caching is by absolute address, for example, cache sharing makes sense. If TLB entries are tagged to identify the source for translations, TLB lookup can be shared too. TLB reload might be more complicated, but one hopes that this would be rare. There may indeed be restrictions: in a system with a global virtual address space, for example, it may be necessary that all CPUs have the same translation source -- but that is often a natural restriction anyway (applicable to ordinary SMP as well). > 2) Insist that all CPU threads are associated with the same >application, and probably same process. Early SMT implementations (some might say this is not "full" SMT) may have taken the easy way out: stop multithreading when one thread enters kernel mode. But if thread compatibility is too constrained, there would be a chicken-and-egg problem. One has to be able to demonstrate at least some advantage for an existing software mix. > >You might be able to introduce a kludge by which TLB reload and >in-memory page faults were included in this, but great care would >be needed. Beyond that, madness lies. I'm not sure why you'd characterise as a kludge the steps necessary to make TLB sharing meaningful in an SMT context. Great care is needed, *of course* -- madness lies in not taking great care. No disagreement. Michel.