File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -38,6 +38,33 @@ kernel=C:\\Users\\YOUR_USERNAME\\Downloads\\vmlinux
3838Linux 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
4370If you want to build and publish your own custom WSL2 Linux Kernel, you can
You can’t perform that action at this time.
0 commit comments