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 <teg@jklm.no>
This commit is contained in:
Tom Gundersen 2019-12-12 15:11:17 +01:00 committed by Lars Karlitski
parent b28705d4b4
commit b9e20c4c06

View file

@ -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