From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,85404311f8041f7a X-Google-Attributes: gidfa528,public X-Google-Thread: 102b75,85404311f8041f7a X-Google-Attributes: gid102b75,public X-Google-Thread: 1164f8,5747331edea7cbab X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 2001-06-29 08:50:42 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!newsfeed.gamma.ru!Gamma.RU!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 15:50:40 GMT Organization: University of Cambridge, England Message-ID: <9hi84g$i3d$1@pegasus.csx.cam.ac.uk> References: <3B37351D.5080503@cli.de> <3B375AA6.FBBF9FE3@smbc-cm.com> <3B376A34.9080705@compaq.com> <3B3AE9BD.5070205@imk.fzk.de> <3B3B4580.25C255DD@zk3.dec.com> <9hfj3b$48u$1@aquila.mdx.ac.uk> <3B3C75DD.3528147C@TeraPort.de> <993820703.988205@haldjas.folklore.ee> <9hi0vk$ba7$1@pegasus.csx.cam.ac.uk> <993824790.709648@haldjas.folklore.ee> <9hi4ds$egm$1@pegasus.csx.cam.ac.uk> <5lithfuxa4.fsf@rum.cs.yale.edu> NNTP-Posting-Host: virgo.cus.cam.ac.uk Originator: nmm1@virgo.cus.cam.ac.uk Xref: archiver1.google.com comp.sys.dec:4951 comp.unix.tru64:2807 comp.arch:12537 In article <5lithfuxa4.fsf@rum.cs.yale.edu>, "Stefan Monnier " writes: |> >>>>> "Nick" == Nick Maclaren writes: |> > It gets seriously tricky if you allow interrupts during the |> > process, which is needed for really massive virtual memory |> > systems. Pageable page tables are not easy to support in |> > conjunction with multi-threading. |> |> I thought asynchronous interrupts would just schedule a new thread |> (or rather wake up a special thread) while synchronous interrupts |> (like TLB faults) would stop the offending thread (put it to sleep) |> and start another one (maybe the very same special thread used for |> async interrupts). The latter is a GHASTLY idea, though POSIX came close to requiring it. Inter alia, scheduling synchronous interrupts in a single thread means that things like underflow or TLB misses become even more horribly inefficient than they need be. And a single dedicated thread for asynchronous interrupts means that you can handle only one level of them. Not good news in many environments, though less of a problem than the former one. |> At least that seems like the most straightforward way to deal |> with interrupts within an SMT system. What are the problems with such an |> approach (apart from the obvious changes in the OS) ? It doesn't help - that's the problem. The problems that I am referring to come whenever you have two threads running in different modes - HOWEVER you get there. For example, assume one is running in kernel mode and has disabled all interrupts and the second is running in user mode and needs to take an interrupt. Without GREAT care, something then goes wrong. 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