On Thursday 25 October 2012 20:53:53 Balbir Singh wrote:
> You can just do one cgroup per process and be done with it without any
> changes. 
In my case this will lead to a lot of cgroups ;)

> You'll need cgroup help to move processes to the right
> cgroup. I think  you need to use cgrules and libcgroup-pam
I think the cgroup should be created before the task. Otherwise I imagine the 
following:
T0- create task in default cgroup
T1- task starts consuming memory 
T2- create new-cgroup with memory limit
T3- assign task to new cgroup
T4- in [T1; T3] task could have exceed its quota limit


I'm not sure that dynamic cgroup creation is supported via cgrules...

A workaround could be an handler/trigger function to be run whenever a process 
is added to a cgroup: but this could cause problems with frequently created 
threads...

Peace,
R.


-- 
Roberto Polli
Community Manager
Babel S.r.l. - http://www.babel.it
T: +39.06.9826.9651 M: +39.340.652.2736 F: +39.06.9826.9680
P.zza S.Benedetto da Norcia, 33 - 00040 Pomezia (Roma)

CONFIDENZIALE: Questo messaggio ed i suoi allegati sono di carattere 
confidenziale per i destinatari in indirizzo.
E' vietato l'inoltro non autorizzato a destinatari diversi da quelli indicati 
nel messaggio originale.
Se ricevuto per errore, l'uso del contenuto e' proibito; si prega di 
comunicarlo al mittente e cancellarlo immediatamente.

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
_______________________________________________
Libcg-devel mailing list
Libcg-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libcg-devel

Reply via email to