User Tools

Site Tools


code:wsl

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
code:wsl [2020/05/23 21:59]
hansek
code:wsl [2024/09/30 22:20] (current)
hansek
Line 1: Line 1:
 ====== WSL 2 hints ====== ====== WSL 2 hints ======
 +
 +====== Disable Snap ======
 +
 +Source: https://haydenjames.io/remove-snap-ubuntu-22-04-lts/
 +
 +<code bash>
 +sudo systemctl disable snapd.service
 +sudo systemctl disable snapd.socket
 +sudo systemctl disable snapd.seeded.service
 +sudo systemctl mask snapd.service
 +</code>
 +
  
 ===== /etc/wsl.conf ===== ===== /etc/wsl.conf =====
Line 22: Line 34:
 ===== Manualy free RAM ===== ===== Manualy free RAM =====
  
 +Source: https://www.reddit.com/r/bashonubuntuonwindows/comments/12szl7f/comment/jh3284i/
 +
 +<code bash>
 +sudo su
 +sync; echo 3 > /proc/sys/vm/drop_caches
 +</code>
 +
 +//older way//
 source: https://devblogs.microsoft.com/commandline/memory-reclaim-in-the-windows-subsystem-for-linux-2/ source: https://devblogs.microsoft.com/commandline/memory-reclaim-in-the-windows-subsystem-for-linux-2/
  
code/wsl.1590263989.txt.gz ยท Last modified: 2020/05/23 21:59 by hansek