• 1 Post
  • 120 Comments
Joined 3 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
    













  • Somewhat in between, more towards the former I guess?

    I wouldn’t say it’s nonsense nor that it should be made fun of, I simply disagree on calling it a “choice”. It’s more like a D&D saving throw, and sometimes the DM just makes it mathematically impossible for you to pass it, but I concede that “choice” is less verbose than that.
    I agree that you can change your psychological reaction to everything, and that it’s not easy, but it’s not, like, an API call to a well documented open-source library, and you don’t necessarily have full control over what that change is.

    The other interpretation is basically your opinion, but actively dismissing the fact that it’s never not always effortless or painless - I’ve heard that here and there, by people I’m not really fond of.