KaliVeda
Toolkit for HIC analysis
|
Read GE (Grid Engine) log files to extract status of batch jobs.
Created by KVClassFactory on Fri Nov 25 09:53:18 2011 Author: John Frankland
Updated to handle correctly new format of end-of-job informations:
Definition at line 40 of file KVGELogReader.h.
#include <KVGELogReader.h>
Public Member Functions | |
KVGELogReader () | |
virtual | ~KVGELogReader () |
virtual Bool_t | Incomplete () const |
virtual void | Reset () |
Public Member Functions inherited from KVLogReader | |
KVLogReader () | |
virtual | ~KVLogReader () |
Double_t | GetCPUratio () const |
calculate ratio of used CPU to requested CPU | |
Double_t | GetCPUrequest () const |
Double_t | GetCPUused () const |
const Char_t * | GetJobname () const |
Double_t | GetMEMrequest () const |
Double_t | GetMEMused () const |
Int_t | GetRunNumber () const |
try to get run number from jobname using format string fFMT | |
Double_t | GetSCRATCHrequest () const |
Double_t | GetSCRATCHused () const |
const Char_t * | GetStatus () const |
Bool_t | JobOK () const |
Bool_t | Killed () const |
void | ReadFile (const Char_t *fname) |
Open file 'fname' and read contents. | |
Bool_t | SegFault () const |
void | SetNameFormat (const Char_t *fmt) |
Private Member Functions | |
virtual Int_t | GetByteMultiplier (const KVString &unit) |
virtual void | ReadCPU (const KVString &line) |
virtual void | ReadKVCPU (const KVString &line) |
virtual void | ReadLine (const KVString &line, Bool_t &) |
analyse contents of line read from log file | |
virtual void | ReadMemUsed (const KVString &line) |
virtual void | ReadScratchUsed (const KVString &line) |
virtual void | ReadStatus (const KVString &line) |
virtual Double_t | ReadStorage (const KVString &stor) |
Private Attributes | |
Bool_t | fInConsumed |
Bool_t | fInRequested |
|
inline |
Definition at line 54 of file KVGELogReader.h.
|
inlinevirtual |
Definition at line 57 of file KVGELogReader.h.
unit = "K", "M" or "G" value returned is 1, 2**10 or 2**20, respectively
Implements KVLogReader.
Definition at line 165 of file KVGELogReader.cpp.
|
inlinevirtual |
Reimplemented from KVLogReader.
Definition at line 64 of file KVGELogReader.h.
read line of type "* CPU time: 00:32:14 (1934 seconds) *" which is either the requested CPU time or the consumed CPU time, depending on where we are in the file
Implements KVLogReader.
Definition at line 103 of file KVGELogReader.cpp.
update infos on CPU time, memoire & disk from lines such as "CpuSys = 7.044505 s. CpuUser = 846.259888 s. ResMem = 338.109375 MB VirtMem = 1039.921875 MB DiskUsed = 5678742 KB"
Definition at line 75 of file KVGELogReader.cpp.
analyse contents of line read from log file
Reimplemented from KVLogReader.
Definition at line 16 of file KVGELogReader.cpp.
read line of type "* vmem: 1.284 GB (2) *" corresponding to memory used by job
Implements KVLogReader.
Definition at line 136 of file KVGELogReader.cpp.
this just sets fScratcKB=0 because there is no information on scratch disk usage in the GE logfiles
Implements KVLogReader.
Definition at line 123 of file KVGELogReader.cpp.
read line of type
"* Exit status: 0 *"
with final status of job.
if status = "0" then JobOK() will return kTRUE otherwise, JobOK() will be kFALSE.
Implements KVLogReader.
Definition at line 187 of file KVGELogReader.cpp.
'stor' is a string such as "200MB", "3GB" etc. value returned is corresponding storage space in KB if no units symbol found, we assume MB
Implements KVLogReader.
Definition at line 212 of file KVGELogReader.cpp.
|
inlinevirtual |
Reimplemented from KVLogReader.
Definition at line 58 of file KVGELogReader.h.
|
private |
Definition at line 51 of file KVGELogReader.h.
|
private |
Definition at line 50 of file KVGELogReader.h.