[slurm-users] A little help writing a select plugin ?

PULIDO, Alexandre alexandre.pulido at ariane.group
Fri Jun 1 05:32:52 MDT 2018


Hi,
I've been trying to modify the select_cons_res plugin to take into account the free memory on a job, more context on the mailing list here<https://groups.google.com/forum/#!topic/slurm-users/tpn7dev4GEU>. I figured I need to edit the definition of "free_mem" here<https://github.com/SchedMD/slurm/blob/master/src/plugins/select/cons_res/job_test.c#L853> and subtract the actual free memory on the node instead of the allocated one.
So I've been searching the whole source code trying to understand how the node's usage is calculated/passed to the "_verify_node_state" function, or anywhere actually. The goal is only to edit the plugin, I was hoping to do so without modifying slurmctld, in order to use the free memory on the node.

I figured I need to add the mem_free variable to the node usage structure, but I really don't get how the structure is being filled up with the actual resource usage.

Could you give me a little help and guide me towards the resolution  ?


Ce courriel (incluant ses éventuelles pièces jointes) peut contenir des informations confidentielles et/ou protégées ou dont la diffusion est restreinte ou soumise aux règlementations relatives au contrôle des exportations ou ayant un caractère privé. Si vous avez reçu ce courriel par erreur, vous ne devez ni le reproduire, ni l'utiliser, ni en divulguer le contenu à quiconque. Merci d'en avertir immédiatement l'expéditeur et de supprimer de votre système informatique ce courriel ainsi que tous les documents qui y sont attachés. Toute exportation ou réexportation non autorisée est interdite. ArianeGroup SAS décline toute responsabilité en cas de corruption par virus, d'altération ou de falsification de ce courriel lors de sa transmission par voie électronique.
This email (including any attachments) may contain confidential or proprietary and/or privileged information or information otherwise protected from disclosure or may be subject to export control laws and regulations. If you are not the intended recipient, please notify the sender immediately, do not reproduce this message or any attachments and do not use it for any purpose or disclose its content to any person, but delete this message and any attachments from your system. Unauthorized export or re-export is prohibited. ArianeGroup SAS disclaims any and all liability if this email transmission was virus corrupted, altered or falsified. ArianeGroup SAS (519 032 247 RCS PARIS) - Capital social : 265 904 408 EUR - Siège social : Tour Cristal, 7-11 Quai André Citroën, 75015 Paris - TVA FR 82 519 032 247 - APE/NAF 3030Z
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.schedmd.com/pipermail/slurm-users/attachments/20180601/1fa1a587/attachment.html>


More information about the slurm-users mailing list