SLURM preemption it mostly designed to stop lower priority jobs when higher priority jobs are available. There is a web page about job preemption here: http://www.schedmd.com/slurmdocs/preempt.html
If you want to stop and start SLURM jobs at specific times. your best option may be to use a cron script to set the SLURM queue down and suspend or requeue all running jobs. SLURM's suspend/restart logic uses SIGSTOP/SIGCONT signals, so the program will continue to use memory. Quoting Lluis Garrido <[email protected]>: > Dear all, > > My name is Lluis Garrido, and I am a researcher in the Faculty of > Mathematics of the University of Barcelona. We have recently setup a lab > for students with about 30 computers with 8 cores each one. This lab is > going to be used by students during the day, and we would like to take > profit of the computing power of the computers during night. > > For that we would like to install SLURM as our resource manager. SLURM is > expected to be installed in a separate Linux partition than the Linux > partition students will use. Computers will be automatically waken up at a > certain time in the afternoon so that SLURM is activated. And they should > be hibernated at a certain time in the morning, before students arrive. > > Can this functionality be implemented with SLURM ? I've read that SLURM > supports preemption, but can jobs be completely stopped so that the > computer can be hibernated (via pm-hibernate, for example) ? > > Thanks a lot for your time, > > Best, > > Lluis Garrido >
