Preventing a single student programmer from choking the whole server.

2017-04-21 Thread Josh Roden
Hi server setup: -- Centos 6 32GB RAM 16 Cpu's 70 students max I am using /etc/security/limits.conf to prevent the students from choking the whole server but sometimes one student will write a very bad program that somehow runs itself again and again - so fast that "killall" and

Re: Preventing a single student programmer from choking the whole server.

2017-04-21 Thread guy keren
how about using cgroups, putting each user's login shell in a cgroup that cannot use more then X% of the whole CPUs. this will affect all processes spawned under the user's shell. --guy On 04/21/2017 03:07 PM, Josh Roden wrote: Hi server setup: -- Centos 6 32GB RAM 16