I'm not familiar with this topic, but I can point you to what WebKit does:
https://trac.webkit.org/browser/webkit/trunk/Source/WebKit/UIProcess/linux/MemoryPressureMonitor.cpp
https://trac.webkit.org/browser/webkit/trunk/Source/WTF/wtf/linux/MemoryPressureHandlerLinux.cpp
https://trac.webkit.org/browser/webkit/trunk/Source/WTF/wtf/linux/CurrentProcessMemoryStatus.cpp
Hope that's useful....
_______________________________________________ devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx