lmkd: subscribe to low mempressure events.
This will make sure we get invoked in time, and combined with a kernel change to increase the window size (and thus rate-limit the notifications) based on the amount of memory on the device, this should provide a nice balance between receiving too many notifications vs getting notified too late. Change-Id: I2f5e92390b94e582aaa06d88763a232e39673496
This commit is contained in:
parent
d30dfc0c5a
commit
9536027454
2
lmkd.c
2
lmkd.c
|
|
@ -39,7 +39,7 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define MEMCG_SYSFS_PATH "/dev/memcg/"
|
#define MEMCG_SYSFS_PATH "/dev/memcg/"
|
||||||
#define MEMPRESSURE_WATCH_LEVEL "medium"
|
#define MEMPRESSURE_WATCH_LEVEL "low"
|
||||||
#define ZONEINFO_PATH "/proc/zoneinfo"
|
#define ZONEINFO_PATH "/proc/zoneinfo"
|
||||||
#define LINE_MAX 128
|
#define LINE_MAX 128
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue