• 4 Posts
  • 179 Comments
Joined 2 years ago
cake
Cake day: June 16th, 2023

help-circle







  • Windows 10 and 11 really dislike HDDs, that’s probably why you can’t admit to using HDDs online without getting stones thrown at you (I’ve been there before).

    I’ve disabled paging files (= swap) for one of my Windows VMs, unfortunately - to my surprise - that only had a small performance boost, and I still need to let the VM chug for a few mintes before it even lets me open File Explorer.

    … but it does improve performance, definitely consider doing it if you don’t need swap/paging/whatever they call it now.



  • It’s not about the amount of swap space, it’s a problem that happens when swapping happens for big chunks of data at a time.

    Windows aggressively swaps out things way before it’s necessary, you can try increasing the system’s “swappiness”; I’m writing this from my phone, but when I get to my PC I’ll write out how to do it (unless somebody else does it before I do).

    You can set it by writing vm.swappiness=60 in a file like /etc/sysctl.d/50-swappiness.conf.
    The value 60 is arbitrary, if you increase it the system will try to swap out things more aggressively; the name of the file is also partially arbitrary, but AFAIK, it has to begin with two digits — the system will read all the files inside /etc/sysctl.d in order, and the settings in higher-numbered files will be applied over lower ones.

    Officially, this is the explaination of the vm.swappiness parameter.
    You can read and write the value with your shell:

    #!/usr/bin/bash
    sysctl vm.swappiness  # shows you the current value
    sudo sysctl vm.swappiness=69  # sets the swappiness to 69 AND shows you the new value