McPain added a comment.
In D17217#367842 <https://phabricator.kde.org/D17217#367842>, @davidedmundson wrote: > There's also an alternative that I'd like to suggest: > According to https://www.kernel.org/doc/Documentation/cgroup-v1/memory.txt there's a system called "memory pressure" you can watch for events on a specific FD with various levels of out-of-memory-ness. A lot cheaper than polling, far more reliable, and following the system's OOM configuration. Getting that in at a frameworks level so it can be hooked up to notifications in this case, but also garbage collections in UI code could be pretty cool. Thanks. Any examples in KDE? I can't implement this from scratch right now. REPOSITORY R120 Plasma Workspace REVISION DETAIL https://phabricator.kde.org/D17217 To: McPain, broulik, #vdg, ngraham Cc: davidedmundson, graesslin, abetts, ngraham, plasma-devel, ragreen, Pitel, ZrenBot, lesliezhai, ali-mohamed, jensreuterberg, sebas, apol, mart