Linux: Should You Use Twice the Amount of Ram as Swap Space?
|
|
|
Comments (21)
1 earlier comment in the full thread.
azerthoth: 1Gig swap seems reasonable in light of what was posted above.
Original Newswire posting was 'All about Linux swap space', http://lxer.com/module/newswire/view/96757
Gary Sims' piece is a must-read just as is Vivek Gite's.
But on a "modern" hard drive, giving up a GB for swap should be no big deal. I think azerthoth has it right -- 1 GB max.
Come on all... say it with me... rule of thumb... rule of thumb... rule of thumb... rule of thumb... rule of thumb... rule of thumb...
... and while we're at it ...
interoperability... interoperability... interoperability... interoperability... interoperability...
*gets sweaty armpits and goes into cardiac arrest*
Quoting:expired rule of thumb- LOL
Are there more of these computer rules of thumb that we should be looking at and maybe retiring?
A separate /boot (or /stand) partition is a good habit, harmless if unneeded on a particular system. Some non-PC's, like SPARC's, have UFS filesystem code in their boot PROM's. If the filesystem containing the boot kernel isn't on UFS, it won't load.
(Caveat: That's the last I knew. Beside me I have a Sun 4M system, for which the above is true, even with NetBSD.)
Also, PA-RISC needs UFS for its boot files, for the same reason, even though Veritas' VxFS is OEM'd for HP-UX. A common practice is to put the boot code in /stand, formatted as UFS, and all other filesystems, including root, will be VxFS.
Maybe someone else can fill us in on AIX systems. I don't remember...
Any other ones that need to go?
On a PC, the bootloader is pulled in using the BIOS-based bootblock scheme. With OpenBoot PROM (SPARC, PA-RISC) and EFI (Itanium, Intel-based Apple), the bootloader resides in ROM, and doesn't know where the intended code lies on disk until it begins traversing the partition and filesystem.
So, no, that rule of thumb is not out the window, and if you intend to take your Linux experience into the wider Unix world, not having this habit can get you into trouble.
Quoting:But on a modern Linux box it's no longer necessary, right?
Well, I keep separate /boot partition in case I want to encrypt my / (I wanted to do it when I was installing Debian on my work laptop, but the installer wasn't quite ready, I think, and it panicked on boot). And considering that "modern" can mean "properly secured", I don't think that rule is obsolete :)
We're getting some new linux hardware which should arrive next week, and they are coming with 64 GB RAM.
Does anyone think I'm going to carve out 128 GB swap partitions? hehe. I'm thinking 4 or 8 GB.
Post a comment
A free account is needed to post. Write your comment here first: your text is kept in this browser while you sign up or log in, and is waiting for you when you come back.
Your message:Sign up and post (it is free) or Log in and post

With /tmp mounted as tmpfs, it also gives me a chance to find some truly outrageous numbers in Dbench.