]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
docs: Update memory pressure docs for latest GLib support for it
authorPhilip Withnall <pwithnall@gnome.org>
Thu, 2 Jul 2026 13:06:50 +0000 (14:06 +0100)
committerLuca Boccassi <luca.boccassi@gmail.com>
Thu, 2 Jul 2026 14:05:14 +0000 (15:05 +0100)
As of GLib 2.90.0 (not yet released), GLib will fully support the spec,
including the `MEMORY_PRESSURE_WATCH` and `MEMORY_PRESSURE_WRITE`
environment variables, which it did not support previously.

See https://gitlab.gnome.org/GNOME/glib/-/merge_requests/5046

docs/PRESSURE.md

index 29efc07e5cf1375df4238d38c0b0b121854e708b..2dcc0be7215506f33d2f41dec5c404ad266dbcae 100644 (file)
@@ -241,9 +241,12 @@ a custom handler should be provided to take appropriate action:
 
 Other programming environments might have native APIs to watch memory
 pressure/low memory events. Most notable is probably GLib's
-[GMemoryMonitor](https://docs.gtk.org/gio/iface.MemoryMonitor.html). As of GLib
-2.86.0, it uses the per-cgroup PSI kernel file to monitor for memory pressure,
-but does not yet read the environment variables recommended above.
+[GMemoryMonitor](https://docs.gtk.org/gio/iface.MemoryMonitor.html). Versions
+2.90.0 and later of GLib fully support this per-cgroup PSI kernel file protocol.
+
+Versions of GLib between 2.86.0 and 2.90.0 used the per-cgroup PSI kernel file
+to monitor for memory pressure, but did not read the environment variables
+recommended above.
 
 In older versions, it used the per-system Linux PSI interface as the backend, but operated
 differently than the above: memory pressure events were picked up by a system