Not sure if this list is the right place, but I don't know anywhere else to ask. I can't figure out how to limit memory usage by existing process. I have a cgroup memory:limited (with 100M limit in /sys/fs/cgroup/limited/memory.max_usage_in_bytes). If I run "cgexec memory:limited program_name", then everything works as expected, most of the program is forced to swap (zram in my case). This is useful for some bloated programs where performance is not very important. But if program_name is already running (without cgexec) and I try to limit its memory usage: cgclassify -g memory:swap $(pgrep -f program_name) ...then the program is added to /sys/fs/cgroup/limited/tasks, but nothing else is happening (according to smem -k) - the program still uses as much memory as before, even if it is using much more than memory.max_usage_in_bytes allows. Am I doing something wrong, or is this a bug or limitation of current implementation? My Linux kernel version is 3.15.0 and I'm using cgroup-tools from Debian Sid.
------------------------------------------------------------------------------ Infragistics Professional Build stunning WinForms apps today! Reboot your WinForms applications with our WinForms controls. Build a bridge from your legacy apps to the future. http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk _______________________________________________ Libcg-devel mailing list Libcg-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libcg-devel