With cgroups, it's possible to allocate resources dynamically to process
sudo yum install -y \
libcgroup \
libcgroup-tools # the service
lscgroup list all cgroups
Example:
lscgroup -g cpu:/
lscgroup -g cpu:/student
lscgroup
See cgcreate
See cgset
sudo cgcreate -g cpu:/cpu_50
sudo cgset -r cpu.shares=512 cpu_50
sudo cgexec -g cpu:cpu_50 mybigcommand