home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / sys / sgi / 11495 < prev    next >
Encoding:
Internet Message Format  |  1992-07-27  |  2.5 KB

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