Commit af6ddd5b authored by Mike Hibler's avatar Mike Hibler

Allow some crank-age of BW frequency (up to 2 nodes per minute as per

Dan's message).
parent 17472a43
......@@ -25,8 +25,8 @@ cp -p /proj/$PID/exp/$EID/tmp/node_list /var/tmp/node-mapping
#
# Start up our own monitor
#
echo $SH ${DBMONITOR_DIR}/run-dbmonitor.sh $ARGS
$SH ${DBMONITOR_DIR}/run-dbmonitor.sh $ARGS &
echo $SH ${DBMONITOR_DIR}/run-dbmonitor.sh -r $ARGS
$SH ${DBMONITOR_DIR}/run-dbmonitor.sh -r $ARGS &
DBMONPID=$!
# Kill the monitor if we get killed - TODO: harsher kill?
# Note that we assume that a kill of us is "normal" and just exit 0.
......
......@@ -288,16 +288,19 @@ while (1) {
my $elapsed = time() - $startat;
if ($tweakbgmon && ($intervals % $bgmon_update) == 0) {
# XXX +60 to ensure overlap
# XXX XXX wait on the +60 until I am sure that bgmon DTR thing.
my $duration = $interval * $bgmon_update;
logmsg("==== Set DB update frequency/duration to ".
"$interval/$duration at +$elapsed\n");
# XXX flaming hack
my $bwinterval = 0;
# if (@bgmon_nodes <= 20) {
# $bwinterval = 600;
# }
my $duration = $interval * $bgmon_update + 60;
#
# For bandwidth we don't go lower than <# of nodes> * 30 seconds;
# e.g., 10 minutes for 20 nodes.
#
my $bwinterval = scalar(@bgmon_nodes) * 30;
if ($bwinterval < $interval) {
$bwinterval = $interval;
}
logmsg("==== Set DB update lat_freq/bw_freq/duration to ".
"$interval/$bwinterval/$duration at +$elapsed\n");
bgmon_update($interval, $bwinterval, $duration);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment