Thanks for the info, Danny.

Kenneth

On Wed, 28 Sep 2011, Danny Auble wrote:

Date: Wed, 28 Sep 2011 14:53:40 -0700
From: Danny Auble <d...@schedmd.com>
Reply-To: slurm-dev@lists.llnl.gov
To: slurm-dev@lists.llnl.gov
Subject: Re: [slurm-dev] format for text job accounting file?

Hey Kenneth,

Is there a reason you are looking to use the AccountingStorage filetxt plugin?  
It is quite simple to set up the database.  Also, the JobComp plugin is a
subset of what is available to the AccountingStorage.  You probably don't need 
both.

In any case, if you use the AccountingStorage filetxt plugin you can use 'sacct 
-O' to get a formatted dump of the file with explanations of each field in
each line.  It is quite verbose.  If you are trying to write something to look 
into this data you can also reference the file
src/plugins/accounting_storage/filetxt/accounting_storage_filetxt.c where the 
variable _jobstep_format can be used to decode what is on each line as
well.

There is no way to have any account enforcement or any hierarchy of 
associations without the database, but you can associate a job with an account
with AccountingStorage filetxt, the user must specify an account at submit time 
though.

Danny

On Monday September 26 2011 11:31:21 AM Kenneth Yoshimoto wrote:

Hi,


  I am looking at job accounting with SLURM 2.2.7.  Currently,
I have SLURM configured to use a text file:

AccountingStorageType=accounting_storage/filetxt
JobCompLoc=/var/log/slurm/slurmjob.log
JobCompType=jobcomp/filetxt
JobAcctGatherType=jobacct_gather/linux


  A job record looks like this:

accounting log:
2 normal 1317060759 1317060791 15984 15984 - - 0 slurmjob.ex 1 1 8 
switch0_node[0-1] (null)
2 normal 1317060759 1317060791 15984 15984 - - 0 slurmjob.ex 1 0 8 
switch0_node[0-1] (null)
2 normal 1317060759 1317060791 15984 15984 - - 0 slurmjob.ex 1 0 8 
switch0_node[0-1] (null)
2 normal 1317060759 1317060833 15984 15984 - - 3 42 4 4294967295 0

completion log:
JobId=2 UserId=kenneth(15984) GroupId=kenneth(15984) Name=slurmjob.ex 
JobState=CANCELLED Partition=normal TimeLimit=480
StartTime=2011-09-26T13:13:11 EndTime=2011-09-26T13:13:53 
NodeList=switch0_node[0-1] NodeCnt=2 ProcCnt=8
WorkDir=/home/kenneth/testprog


  Is there documentation for what each field in the accounting log means?
And there is no way to associate jobs with allocation accounts without
using a database?

Thanks,
Kenneth

Reply via email to