Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
Distribution: Distribution: RHEL 5 with Pieces of this and that.
Kernel 18.104.22.168, KDE 3.5.8 and KDE 4.0 beta, Plu
To me before wanting 6 gig swap space I add more ram. No idea what you are doing so can't say as to the needed size of swap. If you think it is twice the size of ram from something you read well that is old days when ram cost alot and ram in cpus were like 32meg. Now ram is cheap and you have way more than you one usually need. Just thought I ask before.
Unsure of the maximum size a swap partition can be but maybe create 3 - 2 gig swap partitions and then use that.
Yup. What I was afraid of...
2G was the swap partition limit for the 2.4 series of Linux kernels. There was no real point in allocating a 6G partition for it.
But you can (in theory) split it into three different swap partitions if you really want to.
Same still applies(*) in 2.6 last time I looked. Redhat had a patch to use larger than 2 Gig extents, but only for the EL kernels I think. I don't recall the mkswap code being different for 64-bit, but I wasn't specifically looking for that at the time I checked.
Was a while ago - maybe I should check again sometime.
(*) - you can make it as large as you like and mkswap will "format" it all, only 2 Gig will actually be used.
Last edited by syg00; 06-18-2009 at 06:48 PM.
Reason: Added footnote
That's talking about mkswap (code) - basically agreeing with what I said.
kswapd only uses 2 Gig (per extent) on x86; it [cs]hould be bigger on _64 but I have a feeling it's based on page size not addressing mode. As I said I'll need to go back into that code sometime.