in rd-agent/src/misc/sideloader.py [0:0]
def __check(self, now):
global config
self.last_check_at = now
self.last_warns = self.warns
self.warns = []
# run the checks and fixes
self.warns += self.__check_and_fix_rootfs()
self.warns += self.__check_memswap()
self.warns += self.__check_freezer()
self.warns += self.__check_and_fix_io_latency_off()
self.warns += self.__check_and_fix_main_memory_low()
self.warns += self.__check_and_fix_side_memory_high()
warns = self.__check_cpu_weights()
# Enabling CPU controller carries significant overhead. Fix
# it iff there are active side jobs.
if self.fix and len(warns) and self.active:
warns.append("Fixing cpu.weights")
warns += self.__fix_cpu_weights()
self.warns += warns
warns = self.__check_io_weights()
if self.fix and len(warns):
warns.append("Fixing io.weights")
warns += self.__fix_io_weights()
self.warns += warns
# log if changed
if self.warns != self.last_warns:
if len(self.warns):
i = 0
for w in self.warns:
warn(f"SYSCFG[{i}]: {w}")
i += 1
else:
log("SYSCFG: all good")