Skip to content
Snippets Groups Projects
Commit 9a76817d authored by Benjamin Lindner2's avatar Benjamin Lindner2
Browse files

introduced monitor performance controls for large number of cores

parent aa72945a
No related branches found
No related tags found
No related merge requests found
......@@ -495,7 +495,7 @@ void Params::read_xml(std::string filename) {
limits.services.signal.times.clientflush = 600; // 600 seconds
limits.services.monitor.delay = 1; // 1 second
limits.services.monitor.sampling = 1; // seconds
limits.services.monitor.sampling = 0; // 0 = automatic
limits.decomposition.utilization = 0.95; // 5% max loss
limits.decomposition.partitions.automatic = true; // pick number of independent partitions based on some heuristics
......
......@@ -131,11 +131,12 @@ void AbstractScatterDevice::runner() {
size_t samplingfactor = Params::Inst()->limits.services.monitor.sampling;
if (samplingfactor==0) {
samplingfactor = allcomm_.size()/100;
if (allcomm_.size()<100) samplingfactor=1;
samplingfactor = allcomm_.size()/20;
if (allcomm_.size()<20) samplingfactor=1;
}
p_monitor_->set_samplingfactor(samplingfactor);
if (allcomm_.rank()==0) {
Info::Inst()->write(string("Setting progress sampling factor for monitoring to ")+boost::lexical_cast<string>(samplingfactor));
p_monitor_->set_samplingfactor_server(samplingfactor);
p_monitor_->reset_server();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment