libcgroup
is a library that abstracts the control group file system in Linux. It comes with various command-line tools and configuration files, see their man pages for details.
This documentation provides description of libcgroup
API. Read following sections, preferably in this order: