4 ms·
Shameless plug: I needed to run multiple instances of a binary while limiting the memory footprint (memory + swap) for each instance, so I wrote a launcher that
by geoka9 11y ago
Shameless plug: I needed to run multiple instances of a binary while limiting the memory footprint (memory + swap) for each instance, so I wrote a launcher that achieves this by placing the process in its own cgroup.
May be useful as a "production" example of libcgroup usage.
https://github.com/geokat/cgfy/blob/master/cgfy.c https://github.com/geokat/cgfy/blob/master/cgfy.c
- matsumotory 11y agoIt's useful! Thank you for your example.