From b9e20c4c06a13020db51200d421fa6140dca7968 Mon Sep 17 00:00:00 2001 From: Tom Gundersen Date: Thu, 12 Dec 2019 15:11:17 +0100 Subject: [PATCH] service: adjust the IO and CPU scheduling classes Image generation is very much a batch job, latency is not important and because it is so CPU and IO intensive, it really affects the overall responsiveness of the system if left on the default settings. Set scheduling to idle/batched for the worker. The composer service is still left in the normal scheduling classes as its latency is important for the UI. Signed-off-by: Tom Gundersen --- distribution/osbuild-worker@.service | 2 ++ 1 file changed, 2 insertions(+) diff --git a/distribution/osbuild-worker@.service b/distribution/osbuild-worker@.service index a507414bf..c963c8f9f 100644 --- a/distribution/osbuild-worker@.service +++ b/distribution/osbuild-worker@.service @@ -10,6 +10,8 @@ ExecStart=/usr/libexec/osbuild-composer/osbuild-worker -C /var/lib/osbuild CacheDirectory=osbuild-composer Restart=on-failure RestartSec=10s +CPUSchedulingPolicy=batch +IOSchedulingClass=idle [Install] WantedBy=osbuild-composer.service