Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!ucsd!sdd.hp.com!zaphod.mps.ohio-state.edu!julius.cs.uiuc.edu!apple!agate!shelby!unix!garth!fouts@bozeman.bozeman.ingr.UUCP (Martin Fouts) From: fouts@bozeman.bozeman.ingr.UUCP (Martin Fouts) Newsgroups: comp.unix.cray Subject: Autotasking considered harmful (was Re: "vi" & Supercomputer Performance) Message-ID: <69@garth.UUCP> Date: 12 Oct 90 20:26:22 GMT References: <1990Oct4.050509.11405@eagle.lerc.nasa.gov> <3814@network.ucsd.edu> <2720@uc.msc.umn.edu> Sender: fouts@garth.UUCP Distribution: usa Organization: INTERGRAPH (APD) -- Palo Alto, CA Lines: 41 In-reply-to: alan@uf.msc.umn.edu's message of 5 Oct 90 18:59:43 GMT Alan Klietz replies to an earlier groan about the difficulty of autotasking on an interactive system: Granted, autotasking complicates things somewhat because it makes a context switch much more painful where stragglers can slow down striped loops. I don't know how UNICOS 6 does things, but as you suggested it ought to dedicate processors to autotasking or greatly penalize switches of active autotasked jobs. Swapping can be avoided by setting your sched parameters appropriately. The problem with {multi,micro,auto}tasking in a multiuser (even batch) workload is the assumption that all those processors are MINE, ALL MINE... It takes overhead to implement autotasking and it costs to run more threads than there are CPUS. If you autotask and I autotask, and we both run at once, we both take the same time in our code as if we didn't, plus the overhead we've introduced to manage the threads, so we slow the system down, get worse turnaround time and degrade throughput. (In economics, this would be a microeconomic gain leading to a macroeconomic loss, since it is good for one, but not good for more than one.) If you've got enough users to keep all of the processors on the machine busy without *tasking, than you are better off not doing it. Marty -- Martin Fouts UUCP: ...!pyramid!garth!fouts (or) uunet!ingr!apd!fouts ARPA: apd!fouts@ingr.com PHONE: (415) 852-2310 FAX: (415) 856-9224 MAIL: 2400 Geng Road, Palo Alto, CA, 94303 Moving to Montana; Goin' to be a Dental Floss Tycoon. - Frank Zappa