From 65a8c0ad238dbfc3a4f05d6447679ebb09e86d28 Mon Sep 17 00:00:00 2001 From: Christian Segundo Date: Sun, 28 Jul 2024 15:20:12 +0200 Subject: x --- content/posts/2021-02-03-gentoo-no-desktop-lag.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/content/posts/2021-02-03-gentoo-no-desktop-lag.md b/content/posts/2021-02-03-gentoo-no-desktop-lag.md index 966419b..812b7d4 100644 --- a/content/posts/2021-02-03-gentoo-no-desktop-lag.md +++ b/content/posts/2021-02-03-gentoo-no-desktop-lag.md @@ -9,7 +9,7 @@ tags: 1. Start by creating a new systemd slice `/etc/systemd/system/portage.slice`: - ``` + ```systemd [Install] WantedBy=slices.target @@ -19,7 +19,7 @@ tags: 1. Enable and start the unit you just created: - ``` + ```sh systemctl enable --now portage.slice ``` @@ -28,7 +28,7 @@ tags: assigned to that slice, anything that a user may run will receive 4 times the CPU time of processes assigned to the portage slice. - ``` + ```sh ➜ ~ cat /sys/fs/cgroup/cpu,cpuacct/user.slice/cpu.shares 1024 ``` @@ -42,7 +42,7 @@ tags: Add the following line to your `/etc/portage/make.conf`: - ``` + ```sh PORTAGE_IONICE_COMMAND="sh -c \"echo \${PID} > /sys/fs/cgroup/systemd/portage.slice/cgroup.procs\"" ``` -- cgit v1.2.3