<div dir="ltr">Dear Diego,<br><div><br></div><div>A while back, I attempted to make some edits locally to see whether I could produce "better" results. Here is a comparison of the output of your latest version, and then mine:</div><div><br></div><div>[root@hpc bin]# seff 24567<br>Use of uninitialized value $hash{"2"} in division (/) at /bin/seff line 108, <DATA> line 602.<br>Use of uninitialized value $hash{"2"} in division (/) at /bin/seff line 108, <DATA> line 602.<br>Job ID: 24567<br>Cluster: hpc<br>User/Group: chuat/users<br>State: COMPLETED (exit code 0)<br>Nodes: 1<br>Cores per node: 4<br>CPU Utilized: 00:00:00<br>CPU Efficiency: 0.00% of 00:00:40 core-walltime<br>Memory Utilized: 1.24 MB (estimated maximum)<br>Memory Efficiency: 0.06% of 2.00 GB (2.00 GB/node)</div><div><br>[root@hpc bin]# seff.bak 24567<br>Job ID: 24567<br>Cluster: hpc<br>User/Group: chuat/users<br>State: COMPLETED (exit code 0)<br>Nodes: 1<br>Cores per node: 4<br>CPU Utilized: 00:00:20<br>CPU Efficiency: 50.00% of 00:00:40 core-walltime<br>Job Wall-clock time: 00:00:10<br>Memory Utilized: 1.24 MB<br>Memory Efficiency: 0.06% of 2.00 GB<br></div><div><br></div><div>Yours doesn't seem to report anything for CPU Utilized or CPU Efficiency. At the same time, however, the changes I made to my code to produce those results may not even be "correct." Moreover, my version may or may not work for multi-node jobs; I have no way to test those, since at the moment no user is running them.</div><div><br></div><div>For what it's worth, here is a diff of your script vs. mine, in case that's helpful. That said, while I used to code Perl scripts all the time, I haven't in, oh, about 20 years, so again, my edits could be entirely the wrong approach:</div><div><br></div><div><a href="https://docs.google.com/document/d/1esg5dE6bP2EzJsLAqIcgfBdgo2GPLKtLNiKoYrdjUl0/edit?usp=sharing">https://docs.google.com/document/d/1esg5dE6bP2EzJsLAqIcgfBdgo2GPLKtLNiKoYrdjUl0/edit?usp=sharing</a><br></div><div><br></div><div>Warmest regards,</div><div>Jason</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Nov 17, 2020 at 6:42 AM Diego Zuccato <<a href="mailto:diego.zuccato@unibo.it">diego.zuccato@unibo.it</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Il 09/11/20 12:53, Diego Zuccato ha scritto:<br>
<br>
> Seems my corrections actually work only for single-node jobs.<br>
> In case of multi-node jobs, it only considers the memory used on one<br>
> node, hence understimates the real efficiency.<br>
> Someone more knowledgeable than me can spot the error?Seems I managed to have it account for the memory on all the nodes.<br>
See attached file.<br>
The results seem quite meaningful and match the ones done by hand.<br>
<br>
-- <br>
Diego Zuccato<br>
DIFA - Dip. di Fisica e Astronomia<br>
Servizi Informatici<br>
Alma Mater Studiorum - Università di Bologna<br>
V.le Berti-Pichat 6/2 - 40127 Bologna - Italy<br>
tel.: +39 051 20 95786<br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div style="color:rgb(0,0,0);font-family:Helvetica;font-size:14px;margin:0px"><span style="color:rgb(130,36,51)"><font face="Century Gothic"><b>Jason L. Simms, Ph.D., M.P.H.</b></font></span></div><div style="color:rgb(0,0,0);font-family:Helvetica;font-size:14px;margin:0px"><font face="Century Gothic"><span>Manager of Research and High-Performance Computing</span></font></div><div style="color:rgb(0,0,0);font-family:Helvetica;font-size:14px;margin:0px"><font face="Century Gothic"><span>XSEDE Campus Champion<br></span><span style="color:gray">Lafayette College<br>Information Technology Services<br>710 Sullivan Rd | Easton, PA 18042<br>Office: 112 Skillman Library<br>p: (610) 330-5632</span></font></div></div></div></div></div></div></div></div></div>