Skip to main content
edited title
Link
Kiwy
  • 9.9k
  • 13
  • 51
  • 81

Does /proc/[PID]/stat display cumulative CPU stats about child processes

correct style and orthograph
Source Link
Kiwy
  • 9.9k
  • 13
  • 51
  • 81

Does /proc/[PID]/stat display cumulative stats about son processchild processes

I'm not sure to express this question correctly and I've try to read the man proc, but I can't manage to find a proper answer and I couldcouldn't find a simple way to verify it.
I try to get CPU/RAM consumption for one PID but I don't know how many sub processuschild processes will be cast by the program and I want to get the total amount of CPU and RAM consumtionconsumption not just the main process.
I know for fact and experience that /proc/[PID]/io is indeed cumulative through all son processchild processes, but I would like to know and if possible with proof if the same applies to /proc/[PID]/stat.

Does /proc/[PID]/stat display cumulative stats about son process

I'm not sure to express this question correctly and I've try to read the man proc, but I can't manage to find a proper answer and I could find a simple way to verify it.
I try to get CPU/RAM consumption for one PID but I don't know how many sub processus will be cast by the program and I want to get the total amount of CPU and RAM consumtion not just the main process.
I know for fact and experience that /proc/[PID]/io is indeed cumulative through all son process, but I would like to know and if possible with proof if the same applies to /proc/[PID]/stat.

Does /proc/[PID]/stat display cumulative stats about child processes

I'm not sure to express this question correctly and I've try to read the man proc, but I can't manage to find a proper answer and I couldn't find a simple way to verify it.
I try to get CPU/RAM consumption for one PID but I don't know how many child processes will be cast by the program and I want to get the total amount of CPU and RAM consumption not just the main process.
I know for fact and experience that /proc/[PID]/io is indeed cumulative through all child processes, but I would like to know and if possible with proof if the same applies to /proc/[PID]/stat.

Source Link
Kiwy
  • 9.9k
  • 13
  • 51
  • 81

Does /proc/[PID]/stat display cumulative stats about son process

I'm not sure to express this question correctly and I've try to read the man proc, but I can't manage to find a proper answer and I could find a simple way to verify it.
I try to get CPU/RAM consumption for one PID but I don't know how many sub processus will be cast by the program and I want to get the total amount of CPU and RAM consumtion not just the main process.
I know for fact and experience that /proc/[PID]/io is indeed cumulative through all son process, but I would like to know and if possible with proof if the same applies to /proc/[PID]/stat.