diff options
author | Christian Segundo | 2024-07-28 15:20:12 +0200 |
---|---|---|
committer | Christian Segundo | 2024-07-28 15:20:12 +0200 |
commit | 65a8c0ad238dbfc3a4f05d6447679ebb09e86d28 (patch) | |
tree | bb62b1c809f6937ecc2621e6c65b4ab8989e1af5 | |
parent | 0f500178871ebb15df82f6b1d3632ef45cb6394d (diff) | |
download | check-caps-lock-65a8c0ad238dbfc3a4f05d6447679ebb09e86d28.tar.gz |
x
-rw-r--r-- | content/posts/2021-02-03-gentoo-no-desktop-lag.md | 8 |
1 files 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\"" ``` |