Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am trying to plan ahead for setting up a dual boot computer (Win 10 and one or more linux distro(s)) and as I read the methods, I see that the SWAP partition should be 1.5 - 2x the size of the computer's RAM. If my computer has 16 GB of RAM, I need to have a 24-32 GB RAM partition? I ask because this seems kind of excessive. If that's still the standard, I'll run with it, just want to be sure.
It's never been a "standard", simply a recommendation; and from a time when systems had much less RAM - megabytes, not gigabytes.
Even on my 8G laptops I allocate my standard 2G swap - handles hibernation fine for me, but those machines don't do any heavy processing. On my PCs where I do things like photo processing I also only allocate 2G swap - but they are always powered off not hibernated when I'm finished.
I picked 2G merely for convenience, feel free to pick your own. It will as Tonus suggests depend on your usage - my mantra is if you are using a lot of swap, something is wrong; might be as simple as needing more RAM, might be crappy code somewhere. If you don't use swap, it doesn't matter what size it is - Linux runs fine without swap at all if there is no memory constraint.
as they said, as well as I'd put your swap partition on the end tail, this way if you find yourself not needing as much or more it will be easier to take from or add to off of say your home partition, if you do a 3 partition scenario for Linux.
Just as an example, I have 16GB RAM and 4GB swap in this machine, and the swap is usually untouched.
After 1 month uptime I find that only about 75 MB (out of the 4 GB swap available) has been used on my system. Unless you run HEAVY memory using programs (I know of one student that needed more then 100 GB of working space for his program) OR when you want to fully suspend your system (that needs "RAM size" of swap) I think you never will need more then a few GB of swap.
I am trying to plan ahead for setting up a dual boot computer (Win 10 and one or more linux distro(s)) and as I read the methods, I see that the SWAP partition should be 1.5 - 2x the size of the computer's RAM. If my computer has 16 GB of RAM, I need to have a 24-32 GB RAM partition? I ask because this seems kind of excessive. If that's still the standard, I'll run with it, just want to be sure.
This has been stated clearly and was a good standard back before the 64bit revolution in processing. Today unless the computer has >8G RAM, I cap my swap at 2G and almost never see the swap touched. Computers running less than 8G RAM I will slightly increase the size of swap to 3G and is the computer has 2G or less Ill increase the swap up to 4G.
Remember RAM >>> HDD speeds, the exception is if you are running a high end SSD and even then the FSB for the sATA port is typically slower/smaller than the bus for your RAM.
You are running 16G RAM and unless you will be running multiple VM's at the same time, you should be more than fine with a simple 2G swap partition that all of the distro's can access. You will need a different partition for the win10 paging file. Again for that you can manually resize once win10 is installed.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.