summaryrefslogtreecommitdiff
path: root/content/posts
diff options
context:
space:
mode:
Diffstat (limited to 'content/posts')
-rw-r--r--content/posts/2021-02-03-gentoo-no-desktop-lag.md8
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\""
```