home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.sys.sgi:11495 comp.benchmarks:1197 comp.dcom.lans.ethernet:1488
- Path: sparky!uunet!cs.utexas.edu!swrinde!sdd.hp.com!elroy.jpl.nasa.gov!ames!sgi!fido!zola!twilight!zuni!anchor!olson
- From: olson@anchor.esd.sgi.com (Dave Olson)
- Newsgroups: comp.sys.sgi,comp.benchmarks,comp.dcom.lans.ethernet
- Subject: Re: How can I measure CPU-time and Network traffic time ?
- Message-ID: <nrfrvlg@zuni.esd.sgi.com>
- Date: 28 Jul 92 03:01:19 GMT
- References: <1992Jul24.075446.23229@news.uni-stuttgart.de> <nnbjkh8@zuni.esd.sgi.com> <1992Jul27.202416.6297@cbnewsl.cb.att.com>
- Sender: news@zuni.esd.sgi.com (Net News)
- Organization: Silicon Graphics, Inc. Mountain View, CA
- Lines: 33
-
- In <1992Jul27.202416.6297@cbnewsl.cb.att.com> sdo@cbnewsl.cb.att.com (scott.orshan) writes:
-
- | In article <nnbjkh8@zuni.esd.sgi.com> olson@anchor.esd.sgi.com (Dave Olson) writes:
- | >In <1992Jul24.075446.23229@news.uni-stuttgart.de> wnkretz@ikesg1.energietechnik.uni-stuttgart.de (Oliver Kretzschmar) writes:
- | >| who can tell me, how I can measure the CPU time of a program
- | >| or a routine inside a program. Exists there any other possibilities
- | >| as with time ? Does anybody know, how I can measure network
- | >| transfer time and other datas of network traffic in distributed
- | >| programsystems developed with SUN RPC's on SGI ? Please mail me
- | >| your informations !
- | >
- | >See 'man pixie prof ftimer gettimeofday time times'. One or more
- | >of those should help.
- |
- | This may not apply to the SGI machines, but some machines (Sequent and
- | Pyramid at least) provide a microsecond resolution timer/counter
- | that is accessible via a user level instruction or memory reference,
- | thus avoiding the system call overhead and lack of resolution of the
- | system calls. (See GETUSCLK() on the Sequent).
-
- We provide this only on the IP5 class machines with IO3 boards currently;
- see master.d/mem. Other machines will have it in the future, although
- they will likely be at different frequencies. There is a 24 bit counter
- on the IP12 class machines, but it is in the same pages as some other
- 'dangerous' registers, so we haven't made it available.
-
- The r4000 also has a freerunning counter at the CPU frequency, but it
- can only be accessed in system mode, so it would take a system call
- to get at it, which is too much overhead for some jobs.
- --
- Let no one tell me that silence gives consent, | Dave Olson
- because whoever is silent dissents. | Silicon Graphics, Inc.
- Maria Isabel Barreno | olson@sgi.com
-