load 85 daemons/controld/controld_throttle.c throttle_cib_load(float *load) load 134 daemons/controld/controld_throttle.c if(load == NULL) { load 137 daemons/controld/controld_throttle.c *load = 0.0; load 188 daemons/controld/controld_throttle.c *load = (delta_utime + delta_stime); /* Cast to a float before division */ load 189 daemons/controld/controld_throttle.c *load /= ticks_per_s; load 190 daemons/controld/controld_throttle.c *load /= elapsed; load 191 daemons/controld/controld_throttle.c crm_debug("cib load: %f (%lu ticks in %lds)", *load, delta_utime + delta_stime, (long)elapsed); load 210 daemons/controld/controld_throttle.c throttle_load_avg(float *load) load 216 daemons/controld/controld_throttle.c if(load == NULL) { load 231 daemons/controld/controld_throttle.c *load = strtof(buffer, NULL); load 253 daemons/controld/controld_throttle.c throttle_check_thresholds(float load, const char *desc, float thresholds[4]) load 255 daemons/controld/controld_throttle.c if (load > thresholds[3]) { load 256 daemons/controld/controld_throttle.c crm_notice("Extreme %s detected: %f", desc, load); load 259 daemons/controld/controld_throttle.c } else if (load > thresholds[2]) { load 260 daemons/controld/controld_throttle.c crm_notice("High %s detected: %f", desc, load); load 263 daemons/controld/controld_throttle.c } else if (load > thresholds[1]) { load 264 daemons/controld/controld_throttle.c crm_info("Moderate %s detected: %f", desc, load); load 267 daemons/controld/controld_throttle.c } else if (load > thresholds[0]) { load 268 daemons/controld/controld_throttle.c crm_debug("Noticeable %s detected: %f", desc, load); load 272 daemons/controld/controld_throttle.c crm_trace("Negligible %s detected: %f", desc, load); load 277 daemons/controld/controld_throttle.c throttle_handle_load(float load, const char *desc, int cores) load 293 daemons/controld/controld_throttle.c thresholds[3] = load + 1.0; /* never extreme */ load 295 daemons/controld/controld_throttle.c return throttle_check_thresholds(load, desc, thresholds); load 306 daemons/controld/controld_throttle.c float load; load 310 daemons/controld/controld_throttle.c if(throttle_cib_load(&load)) { load 337 daemons/controld/controld_throttle.c mode = throttle_check_thresholds(load, "CIB load", thresholds); load 345 daemons/controld/controld_throttle.c if(throttle_load_avg(&load)) { load 348 daemons/controld/controld_throttle.c cpu_load = throttle_handle_load(load, "CPU load", cores); load 352 daemons/controld/controld_throttle.c crm_debug("Current load is %f across %u core(s)", load, cores);