mirror of
https://github.com/ClusterCockpit/cc-backend
synced 2024-11-10 08:57:25 +01:00
Save commit
This commit is contained in:
parent
8e2475ca39
commit
439f937adb
12
acQuery.pl
12
acQuery.pl
@ -172,7 +172,7 @@ sub printPerfStat {
|
|||||||
print "Total walltime [h]: $walltime \n";
|
print "Total walltime [h]: $walltime \n";
|
||||||
print "Total node hours [h]: $nodeHours \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);
|
my @histo_mem_used = $dbh->selectall_array($query);
|
||||||
print "\nHistogram: Mem used\n";
|
print "\nHistogram: Mem used\n";
|
||||||
print "Mem\tcount\n";
|
print "Mem\tcount\n";
|
||||||
@ -183,7 +183,7 @@ sub printPerfStat {
|
|||||||
print "$bin->[0]\t$bin->[1]\t$str\n";
|
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);
|
my @histo_mem_bandwidth = $dbh->selectall_array($query);
|
||||||
print "\nHistogram: Memory bandwidth\n";
|
print "\nHistogram: Memory bandwidth\n";
|
||||||
print "BW\tcount\n";
|
print "BW\tcount\n";
|
||||||
@ -194,7 +194,7 @@ sub printPerfStat {
|
|||||||
print "$bin->[0]\t$bin->[1]\t$str\n";
|
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);
|
my @histo_flops_any = $dbh->selectall_array($query);
|
||||||
print "\nHistogram: Flops any\n";
|
print "\nHistogram: Flops any\n";
|
||||||
print "flops\tcount\n";
|
print "flops\tcount\n";
|
||||||
@ -293,19 +293,19 @@ if ( @duration ) {
|
|||||||
if ( @mem_used ) {
|
if ( @mem_used ) {
|
||||||
$hasprofile = 'true';
|
$hasprofile = 'true';
|
||||||
($add, $from, $to) = processRange($mem_used[0], $mem_used[1]);
|
($add, $from, $to) = processRange($mem_used[0], $mem_used[1]);
|
||||||
buildCondition('mem_used');
|
buildCondition('mem_used_max');
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( @mem_bandwidth ) {
|
if ( @mem_bandwidth ) {
|
||||||
$hasprofile = 'true';
|
$hasprofile = 'true';
|
||||||
($add, $from, $to) = processRange($mem_bandwidth[0], $mem_bandwidth[1]);
|
($add, $from, $to) = processRange($mem_bandwidth[0], $mem_bandwidth[1]);
|
||||||
buildCondition('mem_bw');
|
buildCondition('mem_bw_avg');
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( @flops_any ) {
|
if ( @flops_any ) {
|
||||||
$hasprofile = 'true';
|
$hasprofile = 'true';
|
||||||
($add, $from, $to) = processRange($flops_any[0], $flops_any[1]);
|
($add, $from, $to) = processRange($flops_any[0], $flops_any[1]);
|
||||||
buildCondition('flops_any');
|
buildCondition('flops_any_avg');
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( $hasprofile ) {
|
if ( $hasprofile ) {
|
||||||
|
@ -3,7 +3,7 @@ CREATE TABLE job ( id INTEGER PRIMARY KEY,
|
|||||||
start_time INTEGER, stop_time INTEGER, duration INTEGER,
|
start_time INTEGER, stop_time INTEGER, duration INTEGER,
|
||||||
walltime INTEGER, job_state TEXT,
|
walltime INTEGER, job_state TEXT,
|
||||||
num_nodes INTEGER, node_list TEXT, has_profile INTEGER,
|
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 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),
|
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,
|
FOREIGN KEY (job_id) REFERENCES job (id) ON DELETE CASCADE ON UPDATE NO ACTION,
|
||||||
|
Loading…
Reference in New Issue
Block a user