From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,40805cf22f2b1b2c X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 1992-12-05 14:28:48 PST Newsgroups: comp.sys.dec Path: sparky!uunet!convex!darwin.sura.net!paladin.american.edu!news.univie.ac.at!hp4at!mcsun!dxcern!dscomsa!zeus02.desy.de!hallam From: hallam@zeus02.desy.de (Phill Hallam-Baker) Subject: Re: Alpha throughput question Message-ID: Sender: usenet@dscomsa.desy.de (usenet) Reply-To: Hallam@zeus02.desy.de Organization: Deutsches Elektronen Synchrotron, Experiment ZEUS bei HERA References: <1992Dec1.174951.4062@linus.mitre.org> <1992Dec2.175053.17122@linus.mitre.org> Distribution: comp.sys.dec, comp.arch Date: Sat, 5 Dec 1992 00:30:43 GMT In article <1992Dec2.175053.17122@linus.mitre.org>, bds@mbunix.mitre.org (Smith) writes: |>In article strange@zk3.dec.com (Steve |>Strange) writes: |>>In article <1992Dec1.174951.4062@linus.mitre.org> bds@mbunix.mitre.org |>(Smith) writes: |>> |>> I have a simple question. In looking at the Alpha machines, it seems |>> the only upgrades necessary to make a VAX 4000 or 7000 into an Alpha |>> is a CPU board swap. This means all the peripherals are the same. So |>> my question is, if the disks, memory, I/O, etc. are all the same, then |>> how could the overall system throughput be significantly higher with |>> the Alpha machine than with the VAX? |>> |>> Barry |>> |>>A simple answer: Because the performance of many operations is |>>bounded by the CPU speed, not by the I/O or memory speed or bandwidth. |>> |>> Steve |>>-- |> |>Could you give me some more information, please? Let me pose a |>hypothetical situation. Suppose I have a data file that I want to |>manipulate and then display as a graph. There may be better ways to |>do this, but for the sake of argument, suppose I take these steps: |> |>1. Read the file in to memory from the disk by loading data structures |>in a linked list. You have a sequential data structure |>2. Walk through that list, manipulate the data (let's say do simple |>arithmetic), and load it into another list in memory. We scan it sequentialy! |>3. Walk through that list, and for each item in that list, draw it to |>a window on screen. |> |>4. Write that list to a disk file. |> |>It seems to me that this sequence should test most aspects of the |>throughput of a system. It's also a fairly common sequence. The only |>time that the chip speed will significantly affect the performance is |>when the data is manipulated (is this true?). If this is the case, |>then doubling the speed on the chip should not significantly increase |>the speed of the system. What's wrong with this analysis? Steps 2, 3, 4 take place in parallel. DECthreads. |> |>Barry |> |>PS - By the way, in no way am I trying to cause problems for DEC. |>The problem as stated is generic, and applicable to any vendor's |>products. The threads are part of the posix spec. not sure if it's an optional extra or what, don't think so (ADA has to have it). The reason why threads are superior to spawning processes is the behaviour on a multiuser system. Consider the situation :- 10 Users on workstation, each has 1/10th of CPU Fred Bastard decides to run his mandelbrot set, spawns 90 processes to do it Fred gets 90% of system resources, everybody else 10%. Also it's much easier to program. I do not have to interact with the shell, do not have to create a process (this takes time on VMS), and can share my data without any hassle. I also get the support of locking primitives etc etc. -- Phill Hallam-Baker