oomd icon indicating copy to clipboard operation
oomd copied to clipboard

Add interface to pressure_above and pressure_rising_beyond for root host pressure monitoring

Open danobi opened this issue 6 years ago • 0 comments

It would be nice if pressure_above and pressure_rising_beyond plugins were able to monitor root host pressure.

Interface:

  • root host is encoded by '/'. ie cgroup=/ as the arg for the plugins

Code changes:

  • In PressureAbove::run and PressureRisingBeyond::run, during cgroup wildcard resolution, if the unresolved cgroup == '/', insert '/' into the list of resolved cgroups. Then special case Fs::readMempressure and Fs::readIopressure to pass /proc/pressure/memory and /proc/pressure/io, respectively, to Fs::readRespressure
    • Make sure to handle /proc/mempressure (no IO pressure for 4.11 kernels, though)

danobi avatar Feb 14 '19 21:02 danobi