title: Jobs allocate twice the cores that I request on SLURM
body: <p>I am trying to understand why twice the amount of cores I request are being allocated to my sbatch jobs.
  From what I can tell, my partition has 106 threads:</p>
  <pre><code>    [.... snake_make]$ sinfo -p mypartition -o %z
  S:C:T
  2:26:2
  </code></pre>
  <p>Yet with the sbatch set like so for my snakemake:</p>
  <blockquote>
  <p>module load snakemake/5.6.0
  snakemake -s snake_make_tetragonula --cluster-config cluster.yaml --jobs 70 <br />
  --cluster &quot;sbatch -n 4 -M {cluster.cluster} -A {cluster.account} -p {cluster.partition}&quot; <br />
  --latency-wait 10</p>
  </blockquote>
  <p>Each job is being allocated 8 cores instead of 4. When I run squeue, I see that it is only able to run as many as 12 jobs at a time, suggesting that it is using 8 cores for each job despite me specifying 4 threads. Also when I look at my job usage on XDMoD, I see that only half of the cpus on the job are getting used. How can I use exactly as many cpus as I want and not double that amount, like it is currently running? I have also tried</p>
  <blockquote>
  <p>--ntasks=1 --cpus-per-task=4</p>
  </blockquote>
  <p>which still doubled it to 8. Thanks.</p>