Quantcast
Channel: Active questions tagged windows-subsystem-for-linux - Ask Ubuntu
Viewing all articles
Browse latest Browse all 2817

Swappiness on WSL2 gets reset to 60

$
0
0

I recently tried installing Ubuntu on Windows (WSL2). I tried the free command, and few blocks of swap memory were utilized. I thought of reducing the swappiness so I added the entry vm.swappiness=10 in /etc/sysctl.conf. I tried reloading sysctl.conf, and it seemed to work,But when I tried shutting down WSL and starting a fresh session, swappiness was reset to the default value of 60.

Is Ubuntu on WSL2 overriding this setting to make it 60 again?


Viewing all articles
Browse latest Browse all 2817

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>