Updates:
Labels: OpSys-Linux
Comment #1 on issue 490 by g.rodola: Expose cgroup as process attr
http://code.google.com/p/psutil/issues/detail?id=490
I've been meaning to look into this for a while now but I've never really
had the chance to look into how Linux cgroups work and how to configure
them on a per-process basis (yet).
It must be noted that Process.rlimit() was introduced as some kind of
substitute for Linux cgroups as it allows to configure many aspects of the
process execution with a clean(er) API:
http://psutil.readthedocs.org/en/latest/#psutil.Process.rlimit
If there's one thing I understood from Linux cgroups is that it's not
immediately clear how to configure them, therefore it's also not clear what
kind of API we should expose.
I'm kind of a newbie here so any kind of suggestion is appreciated.