Re: Notification when a task is created/exits
From: KAMEZAWA Hiroyuki
Date: Tue Feb 16 2010 - 22:46:49 EST
On Wed, 17 Feb 2010 08:46:51 +0530
"Leonidas ." <leonidas137@xxxxxxxxx> wrote:
\
> > Â2. implement cgroup subsystem
> > Â ÂAFAIK, in the latest kernel, cgroup subsystem can be implemented as module.
> > Â Âcgroup has fork/exit handler.
> > Â ÂAnd you can implement some useful controls for tasks you watch via
> > Â Âcgroup's control interface.
> >
>
> This sounds close to what I have in mind, but unfortunately I dont
> have any idea what is cgroup
> subsystem. How to implement cgroup subsystem? Can you give pointers to
> some existing code
> or document?
Documentation/cgroup/*.txt
Maybe cpuacct cgroup in kernel/sche.c or device cgroup in security/device_cgroup.c
is portable size, but they are not module.
block/blk-cgroup is module and maybe in readable size.
> Also, using this mechanism can we monitor each thread created in
> user space? I.e. it is only a fork handler or even a
> pthread_create/clone can be tracked this way.
>
please read documents. I think you can.
Thanks,
-Kame
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/