Skip to content

Commit fafb7ee

Browse files
committed
Make it work with CGroupsV2 IO.Weight
1 parent 7520be6 commit fafb7ee

2 files changed

Lines changed: 566 additions & 252 deletions

File tree

README.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,33 @@ kernel=C:\\Users\\YOUR_USERNAME\\Downloads\\vmlinux
3838
Linux 5.15.123.1-lgug2z-custom-WSL2
3939
```
4040

41+
## CGroupsV2 IO.Weight
42+
43+
To make functional the IO.Weight functional to your Ubuntu Distro in WSL you need to run this commands
44+
45+
```
46+
sudo mkdir -p /etc/systemd/system/system.slice.d
47+
echo -e "[Slice]\nIOAccounting=yes" | sudo tee /etc/systemd/system/system.slice.d/override.conf
48+
```
49+
50+
```
51+
sudo mkdir -p /etc/systemd/system/user.slice.d
52+
echo -e "[Slice]\nIOAccounting=yes" | sudo tee /etc/systemd/system/user.slice.d/override.conf
53+
```
54+
55+
```
56+
sudo systemctl daemon-reexec
57+
```
58+
59+
To test if properly works you can use this command
60+
61+
```
62+
cat /sys/fs/cgroup/system.slice/cgroup.subtree_control
63+
```
64+
65+
if you see IO on the cat it's working well
66+
67+
4168
## Modification
4269

4370
If you want to build and publish your own custom WSL2 Linux Kernel, you can

0 commit comments

Comments
 (0)