If you replaced builtin.c and rebuilt and restarted SLURM (slurmctld), and your code is not being invoked, I'm not sure what is wrong. Probably someone else on this list would know...
On Fri, Apr 01, 2016 at 10:12:49AM -0700, Naajil Aamir wrote: > Yes Exactly !!! > the type its set to builtin, and its using the original builtin, which is > obvious. But I dont get how I would be able to use the code which i changed. > > On Fri, Apr 1, 2016 at 10:08 PM, K Yoshimoto <[email protected]> wrote: > > > > > So, you have written a new builtin plugin, and you want SLURM to > > use that? I haven't tried that, so someone else on the list > > would know better than I. I would guess that you modify a config > > file to point to the new plugin, maybe in slurm.conf. What is > > SchedulerType set to? > > > > On Fri, Apr 01, 2016 at 10:01:42AM -0700, Naajil Aamir wrote: > > > I'm trying to replace the builtin.c file. > > > On Apr 1, 2016 9:58 PM, "K Yoshimoto" <[email protected]> wrote: > > > > > > > > > > > I'm not sure what code you are replacing. You might try taking > > > > a look at that Scheduler Plugin API page and see if you can > > > > put your code into a scheduler plugin, replacing the builtin scheduler. > > > > I haven't tried that, though. > > > > > > > > Kenneth > > > > > > > > On Fri, Apr 01, 2016 at 09:51:43AM -0700, Naajil Aamir wrote: > > > > > Thanks a lot Kenneth for your reply. I have currently modified the > > > > builtin > > > > > code and printed the values of different variables to see what is the > > > > value > > > > > of a particular variable at different times under different cases. My > > > > > question is how would I make slurm run my new builtin code instead > > of the > > > > > currently running version. Im kind of new to slurm so I dont know > > most of > > > > > its functions > > > > > thanks in advance > > > > > best regards > > > > > Naajil > > > > > > > > > > On Fri, Apr 1, 2016 at 9:41 PM, K Yoshimoto <[email protected]> > > wrote: > > > > > > > > > > > > > > > > > Hi, > > > > > > > > > > > > It depends on how your scheduler works. If it is an external > > polling > > > > > > scheduler, one that periodically gets job and node information from > > > > SLURM, > > > > > > then decides when and where to run jobs, then you might want to > > use the > > > > > > wiki or wiki2 interfaces. These are described here: > > > > > > > > > > > > http://slurm.schedmd.com/schedplugins.html > > > > > > > > > > > > I've integrated my own scheduler with SLURM through the wiki > > interface. > > > > > > This is a while back, so I'm not sure if the specifics have > > changed. > > > > > > Back then, this involved activating wiki by modifying > > > > > > slurm.conf and wiki.conf. > > > > > > > > > > > > slurm.conf: > > > > > > ... > > > > > > SchedulerType=sched/wiki > > > > > > SchedulerPort=7321 > > > > > > ... > > > > > > > > > > > > wiki.conf: > > > > > > ... > > > > > > AuthKey=<some auth key> > > > > > > ... > > > > > > > > > > > > This causes submitted jobs to go into JobHeld, with Priority=0. > > > > > > Now, SLURM commands or API calls can be used to start jobs. > > > > > > > > > > > > Something like: > > > > > > scontrol update JobId=<job id> ReqNodeList=<nodelist> Priority=1 > > > > > > > > > > > > would then cause the job to start on the specified nodes. > > > > > > > > > > > > I have a slideshow with some of this info: > > > > > > http://users.sdsc.edu/~kenneth/ipn.2010/workshop/slideshow.html > > > > > > > > > > > > Not sure how you would go about it, if your scheduler is meant to > > > > > > replace pieces of SLURM. > > > > > > > > > > > > You might also be interested in the PySlurm package, which provides > > > > > > a Python interface to SLURM: > > > > > > http://www.gingergeeks.co.uk/pyslurm/ > > > > > > > > > > > > Kenneth > > > > > > > > > > > > > > > > > > > > > > > > On Fri, Apr 01, 2016 at 04:44:44AM -0700, Naajil Aamir wrote: > > > > > > > Hi there > > > > > > > I want to know how can i embed my own job scheduler into slurm > > which > > > > i > > > > > > > coded myself. I have an fyp in which i have to code a scheduler > > on > > > > slurm. > > > > > > > Ive changed the existing builtin code to see what happens where > > and I > > > > > > would > > > > > > > like for that code to run instead of the builtin code, Secondly > > what > > > > > > > benchmarks are suitable to check slurm scheduler performance. > > > > > > > > > > > >
