Hi,

Finally I could success limiting the cpu/core number for a specific partition using job_submit.lua script.

Using job_submit.lua , is is possible to print a custom message on user's terminal while he/she submitting a job like "It is not permited to use more than one core on this partition!" .


Is there a complete list of variables which I can use in job_submit.lua ( I grep some of them from job_submit_lua.c file) and list of slurm output enviroment variables (some of them are mentioned in sbatch man files, but it is not complete I think.. for example SLURM_STEP_ID doesnt take place there.)


Thanks a lot.

sefa..

On 08/05/2013 12:02 PM, Carles Fenoy wrote:
Hi,

Do you have the job_submit_lua.so file in /usr/lib64/slurm/
If not, your slurm may not be compiled with lua support and you will need to recompile it again.


On Mon, Aug 5, 2013 at 9:21 AM, Sefa Arslan <[email protected] <mailto:[email protected]>> wrote:

    Hi,

    I also tried that, the result is the same:

    [2013-08-05T10:16:00] debug3: Trying to load plugin
    /usr/lib64/slurm/job_submit_lua.so
    [2013-08-05T10:16:00] error: job_submit: Couldn't find the
    specified plugin name for job_submit/lua looking at all files
    [2013-08-05T10:16:00] error: job_submit: cannot find scheduler
    plugin for job_submit/lua
    [2013-08-05T10:16:00] fatal: failed to initialize job_submit plugin


I also tried to copy job_submit.lua into the folder /usr/lib64/slurm/, /usr/lib64/slurm/job_submit /etc/slurm ,
    /etc/slurm/job_submit , /etc/slurm/lua , /usr/lib64/slurm/lua
    folders..



    On 08/02/2013 06:06 PM, Carles Fenoy wrote:
    Hi,

    try with
    JobSubmitPlugins=lua


    On Fri, Aug 2, 2013 at 4:36 PM, Sefa Arslan
    <[email protected] <mailto:[email protected]>>
    wrote:


        I have copied contribs/lua/job_submit.lua script  to
        /etc/slurm/ folder
        (slurm.conf is also here).  and added line to slurm.conf like:

        JobSubmitPlugins=job_submit.lua

        then I restarted the slurmctld, I get the following error:

        [2013-08-02T17:03:14] debug3: Trying to load plugin
        /usr/lib64/slurm/job_submit_job_submit.lua.so
        <http://job_submit_job_submit.lua.so>
        [2013-08-02T17:03:14] error: job_submit: Couldn't find the
        specified
        plugin name for job_submit/job_submit.lua looking at all files
        [2013-08-02T17:03:14] error: job_submit: cannot find
        scheduler plugin
        for job_submit/job_submit.lua
        [2013-08-02T17:03:14] fatal: failed to initialize job_submit
        plugin

        accourding to the header of the job_submit.lua file , copying
        it in to
        the configuration folder should be enough to activate it. Am
        I wrong?

        "For use, this script should be copied into a file name
        "job_submit.lua"
          in the same directory as the SLURM configuration file,
        slurm.conf."

        regards




-- --
    Carles Fenoy




--
--
Carles Fenoy

Reply via email to