I've been looking at implementing this, but linux doesn't have a supported API for applications to receive memory pressure notifications. It looks like WebKit did do something using memcg (https://bugs.webkit.org/show_bug.cgi?id=123532), but:
- This requires a 3.10 kernel, something that the phone doesn't have.
- It doesn't work on Ubuntu desktop either because applications can't open memory.pressure_level:
I've been looking at implementing this, but linux doesn't have a supported API for applications to receive memory pressure notifications. It looks like WebKit did do something using memcg (https:/ /bugs.webkit. org/show_ bug.cgi? id=123532), but:
- This requires a 3.10 kernel, something that the phone doesn't have. pressure_ level:
- It doesn't work on Ubuntu desktop either because applications can't open memory.
---------- 1 root root 0 Sep 23 12:41 /sys/fs/ cgroup/ memory/ memory. pressure_ level