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?
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