]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
oomd: delete unused variables
authorAnita Zhang <the.anitazha@gmail.com>
Fri, 26 Mar 2021 07:54:46 +0000 (00:54 -0700)
committerAnita Zhang <the.anitazha@gmail.com>
Fri, 2 Apr 2021 02:53:13 +0000 (19:53 -0700)
src/oom/oomd-manager.h
src/oom/oomd-util.h

index d5407003d30552ba018c40f9636038e4ed499f38..e08ad7470183e9006dda12ab1c80da7345eafee5 100644 (file)
@@ -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
index 7f14df972a97e276593785d60066ca40969d6bee..a8fa09075561050aca1b79ea66102ae16e1572f8 100644 (file)
@@ -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;
 };