Hello!
On Thu, 09 Jun 2011 09:28:02 -0700, Mark A. Grondona have written:
>On Thu, 9 Jun 2011 06:05:47 -0700, "Andrej N. Gritsenko" <[email protected]>
>wrote:
>Non-text part: multipart/mixed
>> Hello there!
>> Currently there is no stackable plugins in slurmd but sometimes it's
>> crucial to do something in system environment before slurmstepd is even
>> forked. Apparently task plugin is the best one to make it stackable. And
>> attached patch make it so. It's still fully compatible with old behavior
>> but there is new one - TaskPlugin variable in slurm.conf can be a list of
>> plugins with comma as separator, each element can be either 'task/plugin'
>> or just 'plugin' name as it is for JobSubmitPlugins variable. Neither any
>> changes in documentation was made nor any changes for TaskPluginParams
>> variable, it's still sticky for task/affinity.
>There are stackable plugins in SLURM, see the spank(8) manpage.
>In fact, replacing the "task" plugin is the main reason the spank
>framework was initially developed.
Unfortunately, there is no way to run any of spank plugins before
starting slurmstepd but in some rare cases there is a need to do it (for
example, if some user environment does not exist and slurmstepd fails to
start) so it's why we were forced to make a task plugin but that move
denied the ability to use task/affinity unfortunately so it's why I've
written that code. I think it might be useful for someone else too.
And, of course, we already using lot of own spank plugins so I know
about them and their functionality, thank you. Spank plugins are perfect
(really perfect!) in their place but not before slurmstepd started. :)
And I want to mention that other parts of SLURM have some stackable
plugins - slurmctld has job_submit, slurmstepd has spank but slurmd had
none yet. So I hope to see stackable plugins in slurmd version 2.3 so we
can avoid local patching that possibility in the future.
With best wishes.
Andriy.