[slurm-users] Site factor plugin example?

Loris Bennett loris.bennett at fu-berlin.de
Tue Oct 24 15:00:07 UTC 2023

Loris Bennett <loris.bennett at fu-berlin.de> writes:

> Christopher Samuel <chris at csamuel.org> writes:
>> On 10/13/23 10:10, Angel de Vicente wrote:
>>> But, in any case, I would still be interested in a site factor
>>> plugin example, because I might revisit this in the future.
>> I don't know if you saw, but there is a skeleton example in the Slurm
>> sources:
>> src/plugins/site_factor/none
>> Not sure if that helps?
> Thanks for the pointer, Chris.  I couldn't find the folder 'none' on
> Github at first, because it doesn't seem to be on the 'master' branch,
> but once I switched branches, I found it.
> I'll have a go at creating a memory-wasted factor.

OK, the structure of the plugin itself given here


seems relatively straight forward.  The crux seems to be what one would
need in

  _update(void *x, void *ignored)

to get the data regarding the requested and used memory for each user
for a given period.

>From my rather limited understanding, the multifactor plugin just has
access to information such as 'effective usage' and 'normalized shares'
for the association.  Thus it is not possible to directly access the
amount of unused memory.  Therefore it seems like I would have rely on
generating my own metric for memory-wasting and then reading that from
the plugin.

Or does anyone see an alternative?



Dr. Loris Bennett (Herr/Mr)
ZEDAT, Freie Universität Berlin

More information about the slurm-users mailing list