[slurm-dev] Job Accounting for sstat

3 views
Skip to first unread message

Lachlan Musicman

unread,
Aug 29, 2016, 9:51:24 PM8/29/16
to slurm-dev
Hi,

I noticed that sstat wasn't giving any data, so I looked into how to make that happen.

After some reading, I cracked open slurm.conf and uncommented these two lines:

JobAcctGatherFrequency=30
JobAcctGatherType=jobacct_gather/linux

after confirming that jobacct_gather_linux.so was in PluginDir.

But I am still getting no data. So I went to read some more and noticed that the slurm.conf docs suggest that the format for Frequency is this:
JobAcctGatherFrequency=<datatype>=<interval>

Whereas on the jobacct_gather plugin page (http://slurm.schedmd.com/jobacct_gatherplugins.html), it states:

JobAcctGatherFrequency
Time interval between pollings in seconds.

1. Is adding the task= the only thing I'm missing, or do I need to do something else?
2. Does JobAcctGatherFrequency=30 have an implied task=, or is this an error in the default slurm.conf ?

Cheers
L.


------
The most dangerous phrase in the language is, "We've always done it this way."

- Grace Hopper

Christopher Samuel

unread,
Aug 29, 2016, 10:14:22 PM8/29/16
to slurm-dev

On 30/08/16 11:51, Lachlan Musicman wrote:

> I noticed that sstat wasn't giving any data, so I looked into how to
> make that happen.

Also anything you wan to track with sstat has to be launched via srun,
otherwise the information is only recorded in slurmdbd when it completes.

cheers!
Chris
--
Christopher Samuel Senior Systems Administrator
VLSCI - Victorian Life Sciences Computation Initiative
Email: sam...@unimelb.edu.au Phone: +61 (0)3 903 55545
http://www.vlsci.org.au/ http://twitter.com/vlsci

Lachlan Musicman

unread,
Aug 29, 2016, 10:39:27 PM8/29/16
to slurm-dev
Oh! Thanks.

I presume that includes sruns that are in an sbatch file.


Cheers
L.

------
The most dangerous phrase in the language is, "We've always done it this way."

- Grace Hopper

Christopher Samuel

unread,
Aug 29, 2016, 11:14:25 PM8/29/16
to slurm-dev

On 30/08/16 12:39, Lachlan Musicman wrote:

> Oh! Thanks.
>
> I presume that includes sruns that are in an sbatch file.

Yup, that's right.

Lachlan Musicman

unread,
Oct 3, 2016, 12:17:08 AM10/3/16
to slurm-dev
Ok, I know it's a late reply, but I still see no results in sstat when using srun within an sbatch file.

ie

$ sbatch my.sbatch

where my.sbatch is

#!/bin/bash
 
#SBATCH --nodes=1
#SBATCH --ntasks=8
#SBATCH --job-name="QOS_TEST"

srun -n 1 /home/lachlan.simpson/tmp/runjob.sh


I get nothing in sstat.

If I run:

$ srun runjob.sh

I get sstat results.


Is it because runjob.sh opens with #!/bin/bash?

L.



------
The most dangerous phrase in the language is, "We've always done it this way."

- Grace Hopper

Reply all
Reply to author
Forward
0 new messages