From 08c1864f0d8714992ffa098f21bb5f763ee3f883 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Thu, 12 Nov 2020 13:05:05 +0100 Subject: [PATCH 1/2] meson: allow oomd to be enabled even in release mode A distro (Fedora in particular) may want to enable oomd in a unstable branch for testing, even though the package as a whole is compiled in release mode. Let's emit a warning but otherwise allow this. --- NEWS | 12 +++++++----- meson.build | 2 +- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/NEWS b/NEWS index 4bda0b2977..468a7a5576 100644 --- a/NEWS +++ b/NEWS @@ -530,13 +530,15 @@ CHANGES WITH 247 in spe: contention for selected parts of the unit hierarchy using the PSI information reported by the kernel, and kills processes when memory or swap pressure is above configured limits. This service is only - enabled in developer mode (see below) and should be considered a - preview in this release. Behaviour details and option names are - subject to change without the usual backwards-compatibility promises. + enabled by default in developer mode (see below) and should be + considered a preview in this release. Behaviour details and option + names are subject to change without the usual backwards-compatibility + promises. * A new helper oomctl has been added to introspect systemd-oomd state. - If also is only available in developer mode and should be considered - a preview without the usual backwards-compatibility promises. + If also is only enabled by default in developer mode and should be + considered a preview without the usual backwards-compatibility + promises. * New meson option -Dcompat-mutable-uid-boundaries= has been added. If enabled, systemd reads the system UID boundaries from /etc/login.defs diff --git a/meson.build b/meson.build index 7996bc2c65..43e328f5a6 100644 --- a/meson.build +++ b/meson.build @@ -1419,7 +1419,7 @@ if have == 'auto' else have = have == 'true' if have and get_option('mode') != 'developer' - error('oomd is not available in release mode (yet)') + warning('oomd is not ready for release mode (yet)') endif endif conf.set10('ENABLE_OOMD', have) From 9101cd1a239ce916a1f339f6a74d20bb33610228 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Thu, 12 Nov 2020 13:32:39 +0100 Subject: [PATCH 2/2] NEWS: describe the new user slices --- NEWS | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/NEWS b/NEWS index 468a7a5576..23f677880e 100644 --- a/NEWS +++ b/NEWS @@ -600,6 +600,13 @@ CHANGES WITH 247 in spe: * "systemctl edit" has been updated to show the original effective unit contents in commented form in the text editor. + * Units in user mode are now segregated into three new slices: + session.slice (units that form the core of graphical session), + app.slice ("normal" user applications), and background.slice + (low-priority tasks). Unless otherwise configured, user units are + placed in app.slice. The plan is to add resource limits and + protections for the different slices in the future. + Contributions from: Adolfo Jayme Barrientos, afg, Alec Moskvin, Alyssa Ross, Amitanand Chikorde, Andrew Hangsleben, Anita Zhang, Ansgar Burchardt, Arian van Putten, Aurelien Jarno, Axel Rasmussen, bauen1,