user/CPU-time in /proc/<pid>/stat problems

Roman Breuer (breuer@rz.rwth-aachen.de)
Thu, 12 Aug 1999 12:28:48 +0200


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/