From 198aff766324d284ea19c0e8038eee0c3301988a Mon Sep 17 00:00:00 2001 From: Luca Boccassi Date: Wed, 28 Jun 2023 14:43:54 +0100 Subject: [PATCH] NEWS: mention that sd_event_trim_memory can be overridden --- NEWS | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index bf6306b89d9..0fbb4c143f3 100644 --- a/NEWS +++ b/NEWS @@ -287,7 +287,8 @@ CHANGES WITH 254 in spe: configuring an event source that is called whenever the OS signals memory pressure. Another call sd_event_trim_memory() is provided that compacts the process' memory use by releasing allocated but unused - malloc() memory back to the kernel. This should improve system + malloc() memory back to the kernel. Services can also provide their + own custom callback to do memory trimming. This should improve system behaviour under memory pressure, as on Linux traditionally provided no mechanism to return process memory back to the kernel if the kernel was under pressure to acquire some. This makes use of the kernel's PSI -- 2.47.3