Save commit

This commit is contained in:
Jan Eitzinger 2019-10-15 20:43:25 +02:00
parent 8e2475ca39
commit 439f937adb
2 changed files with 7 additions and 7 deletions

View File

@ -172,7 +172,7 @@ sub printPerfStat {
print "Total walltime [h]: $walltime \n";
print "Total node hours [h]: $nodeHours \n";
$query = 'SELECT ROUND(mem_used), COUNT(*) FROM job '.$conditionstring.' AND has_profile=1 GROUP BY 1';
$query = 'SELECT ROUND(mem_used_max), COUNT(*) FROM job '.$conditionstring.' AND has_profile=1 GROUP BY 1';
my @histo_mem_used = $dbh->selectall_array($query);
print "\nHistogram: Mem used\n";
print "Mem\tcount\n";
@ -183,7 +183,7 @@ sub printPerfStat {
print "$bin->[0]\t$bin->[1]\t$str\n";
}
$query = 'SELECT ROUND(mem_bw), COUNT(*) FROM job '.$conditionstring.' AND has_profile=1 GROUP BY 1';
$query = 'SELECT ROUND(mem_bw_avg), COUNT(*) FROM job '.$conditionstring.' AND has_profile=1 GROUP BY 1';
my @histo_mem_bandwidth = $dbh->selectall_array($query);
print "\nHistogram: Memory bandwidth\n";
print "BW\tcount\n";
@ -194,7 +194,7 @@ sub printPerfStat {
print "$bin->[0]\t$bin->[1]\t$str\n";
}
$query = 'SELECT ROUND(flops_any), COUNT(*) FROM job '.$conditionstring.' AND has_profile=1 GROUP BY 1';
$query = 'SELECT ROUND(flops_any_avg), COUNT(*) FROM job '.$conditionstring.' AND has_profile=1 GROUP BY 1';
my @histo_flops_any = $dbh->selectall_array($query);
print "\nHistogram: Flops any\n";
print "flops\tcount\n";
@ -293,19 +293,19 @@ if ( @duration ) {
if ( @mem_used ) {
$hasprofile = 'true';
($add, $from, $to) = processRange($mem_used[0], $mem_used[1]);
buildCondition('mem_used');
buildCondition('mem_used_max');
}
if ( @mem_bandwidth ) {
$hasprofile = 'true';
($add, $from, $to) = processRange($mem_bandwidth[0], $mem_bandwidth[1]);
buildCondition('mem_bw');
buildCondition('mem_bw_avg');
}
if ( @flops_any ) {
$hasprofile = 'true';
($add, $from, $to) = processRange($flops_any[0], $flops_any[1]);
buildCondition('flops_any');
buildCondition('flops_any_avg');
}
if ( $hasprofile ) {

View File

@ -3,7 +3,7 @@ CREATE TABLE job ( id INTEGER PRIMARY KEY,
start_time INTEGER, stop_time INTEGER, duration INTEGER,
walltime INTEGER, job_state TEXT,
num_nodes INTEGER, node_list TEXT, has_profile INTEGER,
mem_used REAL, flops_any REAL, mem_bw REAL, ib_bw REAL, file_bw REAL);
mem_used_max REAL, flops_any_avg REAL, mem_bw_avg REAL, ib_bw_avg REAL, file_bw_avg REAL);
CREATE TABLE tag ( id INTEGER PRIMARY KEY, tag_type TEXT, tag_name TEXT);
CREATE TABLE jobtag ( job_id INTEGER, tag_id INTEGER, PRIMARY KEY (job_id, tag_id),
FOREIGN KEY (job_id) REFERENCES job (id) ON DELETE CASCADE ON UPDATE NO ACTION,