Comment 1 for bug 1267132

Revision history for this message
Chris Coulson (chrisccoulson) wrote :

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:

---------- 1 root root 0 Sep 23 12:41 /sys/fs/cgroup/memory/memory.pressure_level