Cgroups
Cgroups (shortcut of Control Groups) is a feature of Linux which allows to control usage of resources (memory, I/O operations, networking etc.) for certain group of processes. See Wikipedia for more information.
Cgroups is offered by MetaCentrum since October 2015 in order to offer special settings of user jobs - you can set an impassable resources limits of your job.
Cgroups can be applied only on machines with property set:
- cgroups=cpuacct https://metavo.metacentrum.cz/pbsmon2/props?property=cgroups%3Dcpuacct or
- cgroups=cpuset https://metavo.metacentrum.cz/pbsmon2/props?property=cgroups%3Dcpuset
WARNING: Using of Cgroups function is recommended as the last way, how to reduce CPU usage. Generally, we are able to set CPU usage limits on a level of code for every job in MetaCentrum. If you have some troubles with your jobs/codes/software, send us an email meta@cesnet.cz
By Cgroups you can limit several resources:
- cpuacct - limiting CPU
- cpuset - assign specific CPU #This is a key parameter for PBS
qsub -l select=1:ncpus=1:cgroups=cpuset ...
You won't definitely affect other users with Cgroups in your job, because you cannot exceed given resources.