<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>Hello all,</p>
<p>I write to this list in order to see if some can provide some
clarification about what I see as an inconsistency between
reservations, accounting, and the output provided by sreport(most
probably I’m missing something).</p>
<p>I define my test: <br>
</p>
<ul>
<li>We are testing SLURM in a small test cluster: 2 nodes with 16
CPU each (32 in total).</li>
</ul>
<ul>
<li>Two users (user1 and user2), each one of them in a different
account (account1 and account2).</li>
</ul>
<ul>
<li>We create a reservation of 10 minutes for the user1. In total
it should be 320 min/cpu:<br>
</li>
</ul>
<p>scontrol create reservation starttime=2018-11-22T13:05
duration=10 user=user1 nodes=all</p>
<ul>
<li>The user1 does not submit any job, but the reservation is
billed anyways, as it should. As result, the command sreport
cluster displays 320 as the time consumed for user1 and
account1. So far so good.</li>
</ul>
<p>~]# sreport cluster UserUtilizationByAccount start=2018-11-22
end=2018-11-22T23:59<br>
Cluster Login Account Used Energy<br>
--------- --------- --------------- --------------- --------
--------<br>
test_cl user1 Account1 320 0<br>
</p>
<ul>
<li>Now the user2 submits a job which takes around 190 sec in 8
cpu, which is around 25 cpu minutes. Again, everything’s good:</li>
</ul>
<p>~]# sreport cluster UserUtilizationByAccount start=2018-11-22
end=2018-11-22T23:59<br>
Cluster Login Account Used Energy<br>
--------- --------- --------------- --------------- --------
--------<br>
test_cl user1 Account1 320 0<br>
test_cl user2 Account2 25 0<br>
</p>
<ul>
<li>Now we create a new reservation for the user2, and the user2
submits the same job but inside the reservation:</li>
</ul>
<p>~]# scontrol create reservation starttime=2018-11-22T16:05
duration=10 user=user2 nodes=all<br>
~]& srun --reservation=user2_1 …<br>
<br>
</p>
<ul>
<li>And then, here it comes the inconsistency. These are the
sreport results:</li>
</ul>
<p>sreport cluster UserUtilizationByAccount start=2018-11-22
end=2018-11-22T23:59<br>
Cluster Login Account Used Energy<br>
--------- ------------------------ -------- --------<br>
test_cl user1 Account1 320 0<br>
test_cl user2 Account2 269 0</p>
<p>Which is the result of the total reservation minus the two jobs
submitted (320- 25-25 and some rounding up). Corroborated several
times. <br>
</p>
<p>But in theory, it should be around 345 (the whole reservation, no
matter if used or not, and the job submitted without reservation).</p>
<p>Am I misunderstanding something about the way slurm handles the
reservations?<br>
Can anyone provide some insight?</p>
<p>Apologies for the long post, but I wanted to provide a consistent
context.</p>
<p>Thanks for your time.<br>
Alberto,<br>
</p>
<pre class="moz-signature" cols="72">--
------------------------------------------------------------
Alberto García Fernández.
Ingénieur de recherche
CNRS - IDRIS
Tel: +33 (0)1 69 35 84 37
Mob: +33 (0)7 88 55 80 49 +34 669 692 272
Web: <a class="moz-txt-link-freetext" href="https://es.linkedin.com/in/alberto-garcia-fernandez-bb94449a">https://es.linkedin.com/in/alberto-garcia-fernandez-bb94449a</a></pre>
</body>
</html>