mirror of
https://github.com/morgan9e/systemd
synced 2026-04-14 16:37:19 +09:00
oomd: don't collect candidate stats on every interval
cb13961ada updated the oomd logic to
collect candidate data when a kill was about to happen. However there
was still a call left over in the main loop to collect candidate data on
every interval. Remove this since it's unneeded.
Fixes #20122
This commit is contained in:
committed by
Luca Boccassi
parent
b4b0f87c62
commit
d61ee727f0
@@ -424,13 +424,6 @@ static int monitor_memory_pressure_contexts_handler(sd_event_source *s, uint64_t
|
||||
if (r < 0)
|
||||
log_debug_errno(r, "Failed to update monitored memory pressure cgroup contexts, ignoring: %m");
|
||||
|
||||
r = update_monitored_cgroup_contexts_candidates(
|
||||
m->monitored_mem_pressure_cgroup_contexts, &m->monitored_mem_pressure_cgroup_contexts_candidates);
|
||||
if (r == -ENOMEM)
|
||||
return log_oom();
|
||||
if (r < 0)
|
||||
log_debug_errno(r, "Failed to update monitored memory pressure candidate cgroup contexts, ignoring: %m");
|
||||
|
||||
/* Since pressure counters are lagging, we need to wait a bit after a kill to ensure we don't read stale
|
||||
* values and go on a kill storm. */
|
||||
if (m->mem_pressure_post_action_delay_start > 0) {
|
||||
|
||||
Reference in New Issue
Block a user