lkml.org 
[lkml]   [1999]   [Aug]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subjectuser/CPU-time in /proc/<pid>/stat problems
Hi,
I have a problem with the file /proc/<pid>/stat in the
linux-2.2.7-kernel
.
As I read in the documentation there is an entry for the time in jiffies
that the process spend in user- and system-mode. Also there is an entry
for the time that its children spend in both modes. But if I summarize
the values of the (u/s)times from the children they are not equal to the
c(u/s)time from the parent.
Can you help me with that problem ? Can I somehow get the values in C
without looking in /proc/<pid>/stat ?


Thanks in advance,
Roman

--
-------------------------------------------------------------------------
\_\_\_\_ \_ \_\_\_\_\_ \_ Rheinisch-
\_ \_\_ \__ \_ \_ \_ \_ Westfaelische
\_\_\_ \_\_\_\_ \_ \_\_\_ Technische
\_ \_ \__ \__ \_ \_ \_ Hochschule
\_ \_ \_ \_ \_ \_ \_ Aachen
============================================
Workstation-Verbund RECHENZENTRUM
-------------------------------------------------------------------------
Roman Breuer, Rechenzentrum RWTH Aachen
e-mail: breuer@rz.rwth-aachen.de
-------------------------------------------------------------------------

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:53    [W:0.022 / U:0.056 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site