I have an SSH server where users login to do various tasks. The problem is I have 4 cores, and one user is running tasks on 4. How can I limit the number of cores any given user can use?
This is not a virtual machine.
UPDATE: I was reading /etc/security/limits.conf and saw
#*               soft    core            0
#root            hard    core            100000
#*               hard    rss             10000
#@student        hard    nproc           20
#@faculty        soft    nproc           20
#@faculty        hard    nproc           50
#ftp             hard    nproc           0
#ftp             -       chroot          /ftp
#@student        -       maxlogins       4
I tried setting this up so that a user is limited to 3 processes. but the user gets
 -bash: fork: retry: No child processes
in their terminal.
I have started looking into ulimit, and quota
 
     
     
    