From d316b11b3eb8e48a61a115c21a4f1b09c9e70faa Mon Sep 17 00:00:00 2001 From: btatu Date: Fri, 21 Jun 2019 16:12:15 +0200 Subject: [PATCH] =?UTF-8?q?limitation=20d'acc=C3=A8s=20disque=20avec=20sys?= =?UTF-8?q?temd?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- HowtoSystemd.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/HowtoSystemd.md b/HowtoSystemd.md index 7361ef64..b1bf6f89 100644 --- a/HowtoSystemd.md +++ b/HowtoSystemd.md @@ -379,6 +379,18 @@ puis : # systemctl daemon-reload ~~~ + +### Limiter les accès disque + +Ces directives ajouté dans la section Service seront appliqué au processus parent mais aussi au processus enfant. Prenons le cas de Dovecot où l'on a besoin de réduire sa priorité d'accès en lecture : + +~~~ +cat /etc/systemd/system/dovecot.service.d/override.conf +[Service] +IOSchedulingClass=best-effort +IOSchedulingPriority=5 +~~~ + ### strace d'un process Avant _systemd_, une astuce efficace pour stracer un démon multi-process était de faire `strace -ff /etc/init.d/ start` …mais ça n'est plus possible avec systemd : il faut désormais détecter le PID du processus père du démon pour faire un `strace -ff -p`.