From 444d5863334e3f6a4b415ae72d815dead4f73444 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Thu, 15 Feb 2018 11:43:08 +0100 Subject: [PATCH] meson: add -Dmemory-accounting-default=true|false This makes it easy to set the default for distributions and users which want to default to off because they primarily use older kernels. --- NEWS | 18 +++++++++--------- man/custom-entities.ent.in | 1 + man/systemd-system.conf.xml | 10 +++++++--- meson.build | 5 +++++ meson_options.txt | 2 ++ src/core/main.c | 2 +- src/core/manager.c | 2 +- src/core/meson.build | 6 +++--- src/core/{system.conf => system.conf.in} | 2 +- 9 files changed, 30 insertions(+), 18 deletions(-) rename src/core/{system.conf => system.conf.in} (96%) diff --git a/NEWS b/NEWS index b799c19f3b..22372a8296 100644 --- a/NEWS +++ b/NEWS @@ -6,15 +6,15 @@ CHANGES WITH 238 in spe: discussions with the upstream control group maintainers we learnt that the negative impact of cgroup memory accounting on current kernels is finally relatively minimal, so that it should be safe to - enable this by default without affecting system performance too - much. Besides memory accounting only tasks accounting is turned on by - default, all other forms of resource accounting (CPU, IO, IP) remain - off for now, because it's not clear yet that their impact is small - enough to move from opt-in to opt-out for them, too. We recommend - downstreams to leave memory accounting on by default, however in some - situations it might be wise to revert this change of defaults, in - particular on very resource constrained systems or when support for - old kernels is a necessity. + enable this by default without affecting system performance. Besides + memory accounting only task accounting is turned on by default, all + other forms of resource accounting (CPU, IO, IP) remain off for now, + because it's not clear yet that their impact is small enough to move + from opt-in to opt-out. We recommend downstreams to leave memory + accounting on by default if kernel 4.14 or higher is are primarily + used. On very resource constrained systems or when support for old + kernels is a necessity, -Dmemory-accounting-default=false can be used + to revert this change. CHANGES WITH 237: diff --git a/man/custom-entities.ent.in b/man/custom-entities.ent.in index 9ea92384aa..a1dbf7133f 100644 --- a/man/custom-entities.ent.in +++ b/man/custom-entities.ent.in @@ -6,3 +6,4 @@ + diff --git a/man/systemd-system.conf.xml b/man/systemd-system.conf.xml index d875a3c46f..fca9690092 100644 --- a/man/systemd-system.conf.xml +++ b/man/systemd-system.conf.xml @@ -1,6 +1,9 @@ + "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd" [ + +%entities; +]>