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: 102b75,85404311f8041f7a X-Google-Attributes: gid102b75,public X-Google-Thread: fa528,85404311f8041f7a X-Google-Attributes: gidfa528,public X-Google-ArrivalTime: 2001-06-29 10:49:31 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!newsfeeds.belnet.be!news.belnet.be!colt.net!newspeer.clara.net!news.clara.net!peer.news.eu-x.com!server2.netnews.ja.net!pegasus.csx.cam.ac.uk!nmm1 From: nmm1@cus.cam.ac.uk (Nick Maclaren) Newsgroups: comp.sys.dec,comp.unix.tru64,comp.arch Subject: Re: Compaq kills Alpha Date: 29 Jun 2001 17:49:29 GMT Organization: University of Cambridge, England Message-ID: <9hif39$obu$1@pegasus.csx.cam.ac.uk> References: <3B37351D.5080503@cli.de> <993820703.988205@haldjas.folklore.ee> <9hi0vk$ba7$1@pegasus.csx.cam.ac.uk> <9hibvs$o78$1@news.btv.ibm.com> NNTP-Posting-Host: draco.cus.cam.ac.uk Xref: archiver1.google.com comp.sys.dec:4961 comp.unix.tru64:2816 comp.arch:12550 In article <9hibvs$o78$1@news.btv.ibm.com>, hack wrote: >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). Oh, yes, I agree that you can share all memory resources from the level 1 cache onwards - 'conventional' (i.e. modern SMP) doesn't start before level 2, though earlier designs used to. But you can't share most of the thread context (e.g. registers, flags and mode) - and, in the Itanic's case, those total 4 KB. >> 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. That is a problem however you do it, because of the horrible coding styles and languages that are dominant today. I doubt that there is much difference between the models in the degree of parallelism you can use - it is merely sliced differently. >>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. I was actually thinking of the multiple mode problem. TLB misses and the simpler forms of page fault can be handled in a completely interrupt-disabled kernel thread, but you can't handle real page faults like that. Nor can you allow the calling of most kernel functions without adding vast extra complexity. Regards, Nick Maclaren, University of Cambridge Computing Service, New Museums Site, Pembroke Street, Cambridge CB2 3QG, England. Email: nmm1@cam.ac.uk Tel.: +44 1223 334761 Fax: +44 1223 334679