]> git.ipfire.org Git - thirdparty/snapper.git/commitdiff
Use 'idle' IO and cpu scheduling class for cleanup service to prevent slowdown of... 391/head
authorOliver Kurz <okurz@suse.de>
Mon, 5 Feb 2018 13:38:20 +0000 (14:38 +0100)
committerOliver Kurz <okurz@suse.de>
Mon, 5 Feb 2018 13:38:20 +0000 (14:38 +0100)
Related to https://bugzilla.suse.com/show_bug.cgi?id=1063638 . Not only btrfs
maintenance tasks can bring systems to a halt or at least slow down and they
already set idle a class.

data/cleanup.service

index 974a8532a623d03addbbc3c177502a30855dfba4..cb78e93a295089b2fc27d98df876efe75323dd81 100644 (file)
@@ -6,4 +6,5 @@ Documentation=man:snapper(8) man:snapper-configs(5)
 [Service]
 Type=simple
 ExecStart=/usr/lib/snapper/systemd-helper --cleanup
-
+IOSchedulingClass=idle
+CPUSchedulingPolicy=idle