home *** CD-ROM | disk | FTP | other *** search
- From: tmilner@hprpcd.rose.hp.com (Tom Milner)
- Date: Tue, 11 Aug 1992 23:40:53 GMT
- Subject: Re: MP CPU-time phenomena
- Message-ID: <15250002@hprpcd.rose.hp.com>
- Organization: Performance Technology Center, Roseville
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!darwin.sura.net!mips!sdd.hp.com!hpscdc!hplextra!hpcc05!hpyhde4!hpycla!hpergfg2!hprdash!hprpcd!tmilner
- Newsgroups: comp.unix.wizards
- References: <1992Aug6.214740.164@socrates.umd.edu>
- Lines: 30
-
- In comp.unix.wizards, boyd@prl.dec.com (Boyd Roberts) writes:
-
- | In article <1992Aug6.214740.164@socrates.umd.edu>, steves@socrates.umd.edu (Steven Sonnenberg) writes:
- | > The cpu-bound application is:
- | >
- | > while (1) i++;
- | >
- | > I am measuring process CPU utilization based on u.u_utime + u.u_stime
- | > over the elapsed time (CPU seconds). For example, in 10 seconds
- | > there are 20 seconds on CPU time (assuming 2 processors).
- | >
- |
- | And just how is your while loop going to run on both processors at the same time?
- |
- |
- | Boyd Roberts boyd@prl.dec.com
- |
-
- There's no reason that a processor switch could not occur anywhere in
- the code... In a 10 second window, all processors could have a chance to
- execute the code stream.
- _____________________________________
- /_______________ ___________________/
- / /
- / /
- / / Tom Milner (Tn: 785-5637)
- / / HP Performance Tech Center
- / / tom@hpptc16.rose.hp.com
- /_/ __________________________
-
-