Skip to content

Commit

Permalink
[mempressure] Implement cgroups based memory pressure evaluator. JB#5…
Browse files Browse the repository at this point in the history
…4673

Performs the same function as and shares configuration with memnotify
plugin, but uses standard linux cgroups memory interface for tracking
changes in memory.usage_in_bytes in global cgroup.

Signed-off-by: Simo Piiroinen <[email protected]>
  • Loading branch information
spiiroin committed Jun 24, 2021
1 parent 24ebc27 commit eee84b0
Show file tree
Hide file tree
Showing 3 changed files with 766 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .depend
Original file line number Diff line number Diff line change
Expand Up @@ -900,6 +900,24 @@ modules/memnotify.pic.o:\
mce.h\
modules/memnotify.h\

modules/mempressure.o:\
modules/mempressure.c\
builtin-gconf.h\
datapipe.h\
mce-log.h\
mce-setting.h\
mce.h\
modules/memnotify.h\

modules/mempressure.pic.o:\
modules/mempressure.c\
builtin-gconf.h\
datapipe.h\
mce-log.h\
mce-setting.h\
mce.h\
modules/memnotify.h\

modules/packagekit.o:\
modules/packagekit.c\
builtin-gconf.h\
Expand Down
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ MODULES += $(MODULE_DIR)/inactivity.so
MODULES += $(MODULE_DIR)/camera.so
MODULES += $(MODULE_DIR)/alarm.so
MODULES += $(MODULE_DIR)/memnotify.so
MODULES += $(MODULE_DIR)/mempressure.so
MODULES += $(MODULE_DIR)/battery-bme.so
MODULES += $(MODULE_DIR)/battery-upower.so
MODULES += $(MODULE_DIR)/bluetooth.so
Expand Down Expand Up @@ -636,6 +637,7 @@ NORMALIZE_USES_SPC =\
modules/inactivity.h\
modules/memnotify.c\
modules/memnotify.h\
modules/mempressure.c\
modules/packagekit.c\
modules/powersavemode.h\
modules/proximity.c\
Expand Down
Loading

0 comments on commit eee84b0

Please sign in to comment.