Re: [PATCH] cgroup: add tracepoints to track cgroup events

Andrea Righi
2014-08-21T17:45:25Z

On Thu, Aug 21, 2014 at 12:07:01PM -0500, Tejun Heo wrote:
...
> > I still need to figure out a smart way to track which PIDs are
> > added/removed to/from cgroup.procs from userland (inotifywait + git? :)),
> > but all the other informations provided by my tracepoint patch seem to
> > be already available via [di]notify.
>
> Hmmm... yeah, determining exactly which pids got added / removed can
> be cumbersome from just MODIFY events. That said, what are you trying
> to do with such information?

Just trying to figure out if a particular application/pid is moved too
much across different cgroups, or collect per-pid / per-cgroup
statistics in general.

Thanks,
-Andrea