Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Find the answer to your Linux question:
New to Linux Forums? Register here for free!
    Linux Forums > Your Distro > Redhat / Fedora Linux Help > 2G Swap File Limitations

Forgot Password?
 Redhat / Fedora Linux Help   Help and discussion related to Redhat and Fedora Linux.

Site Navigation
Linux Articles
Linux Forums
Linux Downloads
Linux Hosting
Free Magazines
Job Board
IRC Chat
RSS Feeds


Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Reply
 
Thread Tools Display Modes
Old 06-30-2008   #1 (permalink)
Just Joined!
 
Join Date: Jun 2008
Posts: 1
2G Swap File Limitations

Can anyone help me out? Traditionally, in the past when building a Fedora Core OS, I have always created multiple 2G swap files as opposed to 1 big swap file because I have read that Linux has a 2G swap file limitation. I am in the planning stages of building a Dell R900 with 1.5TB of available space, Raid 5. This box will be running a Fedora Core 9 - 64bit OS with 64G of RAM. Can anyone tell me based on this information if I am still dealing with swap file limitation sizes of 2G or does this limitation no longer exist with this type of platform. Assuming there is no longer a limitation on swap file sizing, am I free to create 1 swap file the size of my choosing up to 64G without any performance issues? Or if the 1 big swap file would cause performance issues, would I be better off creating 3 or 4 swap files each with a size of 16G?
I would greatly appreciate anyone's help on this one.
Thanks, Rob
rmlfcu is offline  


Reply With Quote
Old 06-30-2008   #2 (permalink)
Just Joined!
 
vitalka's Avatar
 
Join Date: Oct 2004
Location: Toronto, ON
Posts: 77
I take it that this machine will be a server. In that case if you're ran out of ram then consider adding more ram. HD will slow down your server especially if you have a full 16GB SWAP.

And maybe it's just me but I never heard of SWAP limit. For a desktop PC rule of thumb is: SWAP is twice as big as the amount of ram, though that doesn't apply any more since ram is not an issue this days.
vitalka is offline   Reply With Quote
Old 06-30-2008   #3 (permalink)
Linux Engineer
 
Join Date: Nov 2007
Posts: 1,135
The mkswap utility *used* to have a 2GB limit - YEARS ago.

Forum Thread

I can't see even a 16GB swap being useful. Do you expect to burn thru 64GB RAM and *need* swap? You may want to review *why* you have a swap file.

Depending on what you're running and how you're utilizing RAM, I'd either have *no swap* or something like 2-4GB.

You can also look at a kernel tuning parameter called "swappiness."
HROAdmin26 is offline   Reply With Quote
Old 06-30-2008   #4 (permalink)
/etc/init.d/moderator
 
bigtomrodney's Avatar
 
Join Date: Nov 2004
Location: Sunny South-East of Ireland
Posts: 6,038
I wouldn't bother with Swap at all to be honest. If 64GB isn't enough I'd suggest that swap won't help. If your system has 64GB to play with without the addition of swap it would (from my experience) manage better. Remember using swap would add to disk i/o and if it's a fileserver that would be more important than RAM.
__________________
Registered Linux user #378740
New members read here / Forum Rules
#linuxforums on irc.freenode.net
bigtomrodney is offline   Reply With Quote
Old 06-30-2008   #5 (permalink)
Just Joined!
 
Join Date: Feb 2005
Location: Lomm - Netherlands
Posts: 80
I too have heard about the 2GB max. With a 64GB RAM in your system, I wouldn't bother with more than 1GB. If it needs to access the swap with that amount of RAM, I think there are other problems. Some optimisation would be my first thought
Bikerepairmann is offline   Reply With Quote
Old 07-31-2008   #6 (permalink)
Just Joined!
 
Join Date: Jul 2008
Posts: 4
I am in a very similar situation. I guess the only reason I am considering creating a swap file at all is because it always said to have one wherever I read, so I never even considered "Not" having a swap file. I assume a kernel dump might use it, but other than that maybe it is truly a waste of time creating one when you have 64GB of RAM in the system. If you've burned through the first 64GB, then a 2-4GB swap file isn't going to last you long and will give you a performance hit when using it.
You can follow the questions I asked in my thread post at http://www.linuxforums.org/forum/red...tml#post612682
ne1scott is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Free Magazines
Run Your Own Web Server Using Linux & Apache - Free 191 Page Preview
Learn about everything you'll need to build and maintain your Linux servers, and to deploy Web applications to them.
subscribe
Open Source Security Myths Dispelled
Dispel the five major myths surrounding Open Source Security and gain the tools necessary to make a truly informed decision for your IT organization
subscribe
InformationWeek
InformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology.
subscribe



All times are GMT. The time now is 08:41 AM.






© 2000 - 2009 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.3.0 RC2