I'm unaware of any mechanism to do this on a per-user basis. The partition configuration does include the parameter "ReqResv" ( https://slurm.schedmd.com/slurm.conf.html):
ReqResv Specifies users of this partition are required to designate a reservation when submitting a job. This option can be useful in restricting usage of a partition that may have higher priority or additional resources to be allowed only within a reservation. Possible values are "YES" and "NO". The default value is "NO". Using QOS is another possibility (https://slurm.schedmd.com/qos.html): RequiresReservaton If set, jobs using this QOS must designate a reservation when submitting a job. This option can be useful in restricting usage of a QOS that may have greater preemptive capability or additional resources to be allowed only within a reservation. Sorry I don't have any concrete solutions, but those might help you find a solution - Michael On Tue, Oct 20, 2020 at 12:04 AM SJTU <weijian...@sjtu.edu.cn> wrote: > Hi, > > We reserved compute node resource on SLURM for specific users and hope > they will make good use of it. But in some cases users forgot the > '--reservation' parameter in job scripts, competing with other users > outside the reserved nodes. > > Is there a recommended way to limit users' usage *OUTSIDE* their reserved > resource? > > Thank you! > > Jianwen >