From 14140b35440306d2fc1f564b8a24aed0d65e44ba Mon Sep 17 00:00:00 2001 From: Anita Zhang Date: Fri, 26 Mar 2021 00:54:46 -0700 Subject: [PATCH] oomd: delete unused variables --- src/oom/oomd-manager.h | 3 --- src/oom/oomd-util.h | 1 - 2 files changed, 4 deletions(-) diff --git a/src/oom/oomd-manager.h b/src/oom/oomd-manager.h index d5407003d30..e08ad747018 100644 --- a/src/oom/oomd-manager.h +++ b/src/oom/oomd-manager.h @@ -11,9 +11,6 @@ /* Pressure counters are lagging (~2 seconds) compared to swap so polling too frequently just wastes CPU */ #define MEM_PRESSURE_INTERVAL_USEC (1 * USEC_PER_SEC) -/* Used to weight the averages */ -#define AVERAGE_SIZE_DECAY 4 - /* Take action if 10s of memory pressure > 60 for more than 30s. We use the "full" value from PSI so this is the * percentage of time all tasks were delayed (i.e. unproductive). * Generally 60 or higher might be acceptable for something like system.slice with no memory.high set; processes in diff --git a/src/oom/oomd-util.h b/src/oom/oomd-util.h index 7f14df972a9..a8fa0907556 100644 --- a/src/oom/oomd-util.h +++ b/src/oom/oomd-util.h @@ -34,7 +34,6 @@ struct OomdCGroupContext { /* These are only used for acting on high memory pressure. */ loadavg_t mem_pressure_limit; - usec_t mem_pressure_duration_usec; usec_t mem_pressure_limit_hit_start; usec_t last_had_mem_reclaim; }; -- 2.47.3