Replies: 2 comments 17 replies
-
|
Using too much disk swap on current drives, which are almost all SSDs (even on older PCs, HDDs are often replaced with SSDs), is not a good idea, especially with newer drives (especially low-end consumer ones), which are increasingly less durable and reliable (and also less efficient). With common Linux distros, baseline boot consumption is max 2 GB, unlike with recent Windows, where I'm more frequently seeing boot usage of 5 GB or more. Then unfortunately there is the plague of browsers and especially modern sites that end up wasting absurd amounts of RAM, if you haven't already done so, install an adblocker such as ublock origin which helps slightly. |
Beta Was this translation helpful? Give feedback.
-
The official recommendation I've run across, which ultimately comes from RHEL, is 2 GB of swap for 4 GB of RAM. I bow to your experience, however. No default is going to be perfect for everyone. You are right that disk space is usually easier to find than additional RAM, so an amount of swap space that meets your needs is a good idea. I take it you've already figured out how to enlarge your swap file, but if you want help, people on the Linux Mint forums can provide it. I'm not a fan of RAM disks, in situations where RAM is already in short supply. Especially since the point of swap is not actually to provide "extra RAM," it is to provide a space for the system to stash data that needs to be cleared from RAM. It's especially important for data that does not exist in some form on the drive. Many people's understanding of swap has been shaped by Windows, whereas Linux (as in so many other things) handles swap very differently. You may find this discussion helpful: https://chrisdown.name/2018/01/02/in-defence-of-swap.html |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
The default swap file size isn't large enough, notably for a system with 4GB RAM where the default 4GB swap is easily consumed by a web browser opening a few memory-hungry sites.
This was the single big issue I had in migrating several PCs from Windows 10. As a Linux desktop noob it took a while to sort out what the problem was and how to solve it. Meanwhile I was left with doubts that the PCs were going to be viable for ongoing use.
With disk space rarely being in short supply it seems much more welcoming to new users to allocate more space for swap.
Beta Was this translation helpful? Give feedback.
All reactions