From 8c47e9f15b0245accd7a0a885a6e63fb79eeb09f Mon Sep 17 00:00:00 2001 From: Henri Chain Date: Wed, 22 Sep 2021 17:43:55 +0200 Subject: Move systemd services to session slice This puts all gvfs systemd services (which are all dbus-activated through `SystemdService=`) inside of the `session` slice that was introduced in v249 (https://github.com/systemd/systemd/pull/16603) and described in https://systemd.io/DESKTOP_ENVIRONMENTS/ and `systemd.special(7)` This allows sysadmins or OS integrators to assign higher-priority `systemd.resource-control(5)` on `session.slice` and have it propagate down to important session services such as gvfs, so that the gvfs daemons receive sufficient priority for resource allocations to keep the session running smoothly under load. Note that it still works on older systemd (the slice, which is just a cgroup inner directory, is created on demand) --- metadata/gvfs-metadata.service.in | 1 + 1 file changed, 1 insertion(+) (limited to 'metadata') diff --git a/metadata/gvfs-metadata.service.in b/metadata/gvfs-metadata.service.in index 323728f0..2160b23d 100644 --- a/metadata/gvfs-metadata.service.in +++ b/metadata/gvfs-metadata.service.in @@ -5,3 +5,4 @@ Description=Virtual filesystem metadata service ExecStart=@libexecdir@/gvfsd-metadata Type=dbus BusName=org.gtk.vfs.Metadata +Slice=session.slice -- cgit v1.2.1