[slurm-users] How to request ONLY one CPU instead of one socket or one node?
Marcus Wagner
wagner at itc.rwth-aachen.de
Wed Feb 13 04:57:20 UTC 2019
Hi Leon,
depends on how the admins configured slurm. If they set select/linear,
you have no chance to get just a core, as slurm will schedule only
complete nodes.
Nonetheless, you omitted to tell slurm, how much memory you need (at
least there is nothing in your script). Slurm will then also schedule a
complete node.
Please try something like --mem=1024. This will restrict your job to 1
GB memory. If you need more, you'll have to specify more.
Best
Marcus
On 2/13/19 5:19 AM, Wang, Liaoyuan wrote:
>
> Dear there,
>
> I wrote an analytic program to analyze my data. The analysis costs
> around twenty days to analyze all data for one species. When I submit
> my job to the cluster, it always request one node instead of one CPU.
> I am wondering how I can ONLY request one CPU using “sbatch” command?
> Below is my batch file. Any comments and help would be highly
> appreciated.
>
> Appreciatively,
>
> Leon
>
> ================================================
>
> #!/bin/sh
>
> #SBATCH --ntasks=1
> #SBATCH --cpus-per-task=1
> #SBATCH -t 45-00:00:00
> #SBATCH -J 9625%j
> #SBATCH -o 9625.out
> #SBATCH -e 9625.err
>
> /home/scripts/wcnqn.auto.pl
>
> ===========================================
>
> Where wcnqn.auto.pl is my program. 9625 denotes the species number.
>
--
Marcus Wagner, Dipl.-Inf.
IT Center
Abteilung: Systeme und Betrieb
RWTH Aachen University
Seffenter Weg 23
52074 Aachen
Tel: +49 241 80-24383
Fax: +49 241 80-624383
wagner at itc.rwth-aachen.de
www.itc.rwth-aachen.de
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.schedmd.com/pipermail/slurm-users/attachments/20190213/56ec422d/attachment.html>
More information about the slurm-users
mailing list