On Fri, Oct 18, 2019 at 11:48 AM Martin Stransky <stransky@xxxxxxxxxx> wrote: > > Folks, > > do you know if there's any reliable and widely available way how to > measure memory usage on Linux by user space application (Firefox in this > case) and detect low-memory state? https://gitlab.freedesktop.org/hadess/low-memory-monitor/ Not wide-available (yet) but might be interesting to what you seem to want to accomplish. > > Thanks, > ma. > > ----------------------------------------------------------- > > Hi Vicky, all, > > our low-memory detection machinery is rather old and incomplete. The > > only platform that has proper low-memory detection is Android and it > > works well there. On 32-bit Windows we had code that hooked certain > > allocation functions and used the hook to "sample" the current memory > > status. When I ported this code to 64-bit Windows I improved it by > > removing the hooks and using a relatively slow polling loop instead. > > This was far less expensive CPU-wise but it wasn't optimal either. I'm > > currently working on improving it. On macOS and Linux we simply never > > implemented this mechanism. > > > > Gabriele > _______________________________________________ > 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 _______________________________________________ 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