Hello everybody,

I'm playing with cgconfig at the moment with libcgroup 0.37.4.el3 on a
CentOS 6.3

I've created a small "limited" group which is working fine :

group limited {
  memory {
    memory.limit_in_bytes = 50M;
    memory.memsw.limit_in_bytes = 50M;
  }
}

$ cgexec -g memory:limited ./malloc 100
Allocated 1 MB
Allocated 2 MB
Allocated 3 MB
Allocated 4 MB
Allocated 5 MB
Allocated 6 MB
...
Allocated 50 MB
Killed

I'm not interested in limiting the virtual memory size since I want to
be able to use mmap on big file. Basically, I just want a working "rss"
limit (just like in limits.conf, but not ignored ^-^).

The problem I've got with the previous "limited" group is that the limit
concerns all the process in that group. If I run two ./malloc 100), each
process will be able to allocate 25 MB (depending on the timing of
course, but you've got the idea).

Is there a nice way to implement this behaviour in a automated fashion ?

My goal is to limit the individual RSS size of each process launched by
different user : I'm not interested in limiting the total of all RSS,
but just the RSS of individual process (plus their child).

Any idea or suggestion ?

Jean-Baptiste


------------------------------------------------------------------------------
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
_______________________________________________
Libcg-devel mailing list
Libcg-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libcg-devel

Reply via email to