Commit afcf4204 authored by Ondrej Vysocky's avatar Ondrej Vysocky
Browse files

FIX if one killed an application before MERIC_Close() uncore freq will remain...

FIX if one killed an application before MERIC_Close() uncore freq will remain at a specific value - provided some way of handling this issue #38
parent 9ca263b1
......@@ -103,7 +103,15 @@ void Environment::getFrequenciesLimits()
adaptHandlerUncore = x86_adapt_lookup_ci_name(X86_ADAPT_DIE, "Intel_UNCORE_MIN_RATIO");
x86_adapt_get_setting(fd, adaptHandlerUncore, &setting);
FreqLimits[SYS_OTHER].minUncoreFreq = (int)setting;
if (FreqLimits[SYS_OTHER].maxUncoreFreq == FreqLimits[SYS_OTHER].minUncoreFreq && FreqLimits[SYS_OTHER].maxUncoreFreq != -1)
std::cerr << "MERIC warning: system does not have correctly set uncore frequencies\n\tMERIC set them to 1.2-3.0GHz. FIX them if you are not runnig HSW-EP system.\n"; //BDW ranges are 1.2-2.7 GHz
FreqLimits[SYS_OTHER].maxUncoreFreq = FreqLimits[SYS_HASWELL].maxUncoreFreq;
FreqLimits[SYS_OTHER].minUncoreFreq = FreqLimits[SYS_HASWELL].minUncoreFreq;
FreqLimits[SYS_OTHER].defaultUncoreFreq = FreqLimits[SYS_HASWELL].defaultUncoreFreq;
MERIC_INFO << "CORE FREQ limits: " << FreqLimits[SYS_OTHER].maxCoreFreq << '\t' << FreqLimits[SYS_OTHER].minCoreFreq<< std::endl;
MERIC_INFO << "UNCORE FREQ limits: " << FreqLimits[SYS_OTHER].maxUncoreFreq << '\t' << FreqLimits[SYS_OTHER].minUncoreFreq<< std::endl;
......@@ -298,7 +306,7 @@ void Environment::frequency(uint64_t freq, int socket)
#elif defined HAVE_CPUFREQ_H
std::cerr << "CPUFREQ error: governor not specified as userspace\n";
std::cerr << "CPUFREQ error: governor not specified as userspace, CPU core frequency not changed\n";
clock_gettime(CLOCK_REALTIME, &stop_time);
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