Replies: 2 comments 3 replies
-
I believe kernel tasks are |
Beta Was this translation helpful? Give feedback.
-
The Once its a zombie only limit data is available, until the parent
I don't know a better way, except for wrapping the command in something like gnu time. |
Beta Was this translation helpful? Give feedback.
-
I'm trying to use
bpftrace
to log memory usage for a group of processes (any descendant process of amake -j
) as each process exits. This command works (sometimes) for the whole system:I occasionally don't see
VmPeak
stats and friends in some of the processes, but most of them do. But when running in a cgroup (to easily filter the set of processes to look at), I never seeVmPeak
stats in the output. I've tried runningbpftrace
both inside and outside the cgroup with no difference.Looking at the source, it looks like the
task_struct->mm
isn't available or locked or something else? I had tried usingcurtask->mm->hiwater_rss
in thebpf
program but this leads me to believe that is an invalid thing to do if the kernel doesn't want to do it in the first place.Is
sys_exit_enter
too late in the process lifetime to capture this data? Is there a different tracepoint I could use for this?Beta Was this translation helpful? Give feedback.
All reactions