Hello,
We have noticed the following problem on
a dual pentium II machine with linux 2.0.32 (redhat dist):
the resource usage reported by 'getrusage' during execution of a program
is
not correct: The reported user time (ru_utime) is the user-time usage of
processor 1 and the system time (ru_stime) is the user(!)-time usage of
processor 2.
Is this problem already known? (I could not find anything on the net)
Is there a kernel patch?
Profiling a program is impossible because the profiler only counts
user-time
(i.e., only the time spent on proc. 1) and "forgets" the time spent on
proc. 2
Mario.
--
===========================================================================
| Mario Konijnenburg P.O. Box
5031 |
| Delft University of Technology 2600 GA
Delft |
| Faculty of Information Technology and Systems The
Netherlands |
| Section of Computer Architecture and Digital Technique (Test
Group) |
| phone(work):+31(0)152786177 fax:
+31(0)152784898 |
| email:
| www:
http://einstein.et.tudelft.nl/~mario/ |
===========================================================================