Closed Bug 1605898 Opened 4 years ago Closed 2 years ago

implement glib GMemoryMonitor

Categories

(Core :: Widget: Gtk, enhancement, P3)

enhancement

Tracking

()

RESOLVED WONTFIX

People

(Reporter: okias, Unassigned)

Details

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:71.0) Gecko/20100101 Firefox/71.0

Steps to reproduce:

Please, hook into Firefox support for unloading background tabs, when under memory pressure.

[1] http://www.hadess.net/2019/12/gmemorymonitor-low-memory-monitor-2nd.html
[2] https://developer.gnome.org/gio/2.63/GMemoryMonitor.html

Actual results:

Right now, when system is under memory pressure, Firefox get killed due to high usage of memory.

Expected results:

When GMemoryMonitor is implemented, Firefox releases as much memory it can, so it prevent OOM urge to kill it due high memory usage.

Assigning "Core: Widget: Gtk" component for this bug.

Component: Untriaged → Widget: Gtk
Product: Firefox → Core
Priority: -- → P3
Status: UNCONFIRMED → RESOLVED
Closed: 2 years ago
Resolution: --- → WONTFIX

Feel free to implement that, Firefox Linux low memory monitor is implemented here:
https://searchfox.org/mozilla-central/source/xpcom/base/AvailableMemoryWatcherLinux.cpp#20

You need to log in before you can comment on or make changes to this bug.