<div dir="ltr">Hi there,<div><br></div><div>we're using the jcomp_elasticsearch.c plugin (<a href="https://github.com/SchedMD/slurm/blob/master/src/plugins/jobcomp/elasticsearch/jobcomp_elasticsearch.c" target="_blank">https://github.com/SchedMD/slurm/blob/master/src/plugins/jobcomp/elasticsearch/jobcomp_elasticsearch.c</a>) to get some data for monitoring but we have to use the slurm-perlapi to gather the information related to the required memory due to the lack of memory information in the C plugin. Our problem here is the quantity of dependencies that has to be installed to have the slurm-perlapi running. Then, our ideas is to have all the code in C.</div><div><br></div><div>To solve this we are thinking in 2 approaches:<br></div><div>1) Try to do the same than slurm-perlapi but in C (if I'm not confused it uses something like <a href="https://github.com/SchedMD/slurm/blob/master/slurm/slurmdb.h" target="_blank">https://github.com/SchedMD/slurm/blob/master/slurm/slurmdb.h</a>)<br>2) Modify the code to create (and feed) a new memory variable inside the "job_record" structure defined in <a href="https://github.com/SchedMD/slurm/blob/master/src/slurmctld/slurmctld.h" target="_blank">https://github.com/SchedMD/slurm/blob/master/src/slurmctld/slurmctld.h</a></div><div><br></div><div>The effort is not the same in both tasks and we want to have the opinion of the slurm devs and the community before moving forward.</div><div><br></div><div>So, what do you think, option 1, 2 or another solution?</div><div><br></div><div>Thanks in advance!</div><div><br></div><div>Elisabeth<br><div dir="ltr" data-smartmail="gmail_signature"><div dir="ltr"><div style="color:rgb(136,136,136);font-size:12.8px"><span style="color:rgb(0,0,0);font-family:arial,helvetica,sans-serif">-----------------------------------------------------------</span></div><div style="color:rgb(136,136,136);font-size:12.8px">Elisabeth Ortega Carrasco • Computational Scientist<br></div><div dir="ltr" style="color:rgb(136,136,136);font-size:12.8px"><div><font color="#38761d"><font style="font-family:arial,helvetica,sans-serif"><a href="mailto:elisabeth.ortega@hpcnow.com" style="color:rgb(17,85,204)" target="_blank">elisabeth.ortega@hpcnow.com</a></font><span style="font-family:arial,helvetica,sans-serif"> </span></font></div><div><font color="#38761d"><a href="http://www.hpcnow.com/" style="color:rgb(17,85,204)" target="_blank"><font color="#38761d">www.hpcnow.com</font></a><br></font></div><div><span style="color:rgb(0,0,0);font-family:arial,helvetica,sans-serif;font-size:12.8px">------------------------------</span><span style="color:rgb(0,0,0);font-family:arial,helvetica,sans-serif;font-size:12.8px">------------------------------</span><span style="color:rgb(0,0,0);font-family:arial,helvetica,sans-serif;font-size:12.8px">--</span></div></div></div></div></div></div>