hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Hosting Security and Technology : 4GB RAM...how to setup swap size?
Reply

Hosting Security and Technology Configuring and optimizing web hosting servers and operating systems, developing administration scripts, building servers, protecting against hackers, and general security (SSL certificates, etc.)
Forum Jump

4GB RAM...how to setup swap size?

Reply Post New Thread In Hosting Security and Technology Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 09-25-2002, 05:21 PM
m00ds m00ds is offline
WHT Addict
 
Join Date: Jul 2001
Posts: 145

4GB RAM...how to setup swap size?


Hello people, I need some help in setting the swap partition on RedHat 7.1

I have 4GB RAM available but I'm not sure how to set up the swap partition. I mean, do I set up a single 4GB swap partition or is there another way?

Can anyone help me on this? Thanks.

__________________
spam --> /dev/null

Reply With Quote


Sponsored Links
  #2  
Old 09-25-2002, 06:39 PM
Mdot Mdot is offline
Web Hosting Master
 
Join Date: Feb 2002
Posts: 981
4gb of swap is enough

__________________
Powered by AMD & FreeBSD.
"Documentation is like sex:
when it is good, it is very, very good;
and when it is bad, it is better than nothing."

Reply With Quote
  #3  
Old 09-26-2002, 12:36 AM
priyadi priyadi is offline
Registered User
 
Join Date: Apr 2001
Location: Depok, Indonesia
Posts: 986
With RedHat 7.1 (kernel version 2.4.x < 2.4.9) you need a swap partition at least twice of RAM size. So you need at least 8 GB of swap *gasp*.

I suggest to upgrade to RedHat 7.3 where this limitation has been lifted. 512 MB of swap will be fine.

Reply With Quote
Sponsored Links
  #4  
Old 09-26-2002, 03:35 AM
m00ds m00ds is offline
WHT Addict
 
Join Date: Jul 2001
Posts: 145
Ok thank you for the information...

__________________
spam --> /dev/null

Reply With Quote
  #5  
Old 09-26-2002, 06:02 AM
StevenG StevenG is offline
Web Hosting Master
 
Join Date: Apr 2002
Location: Auckland - New Zealand
Posts: 1,573
Quote:
I suggest to upgrade to RedHat 7.3 where this limitation has been lifted. 512 MB of swap will be fine
I see gaming servers pushing 11MBPS and only using a max of 127MB of swap.. 512MB is heaps.

__________________
Flash Arcade Games

Reply With Quote
  #6  
Old 09-26-2002, 06:46 AM
m00ds m00ds is offline
WHT Addict
 
Join Date: Jul 2001
Posts: 145
Someone advised me that for big memory requirements, the max swap size is in 2GB increments. Therefore if I have 4GB RAM that means I'd have to create 2 x 2GB swap partitions. This is the general idea that I got from looking at different servers. I just wanted to find out the corrrect way and whether that is really required.

__________________
spam --> /dev/null

Reply With Quote
  #7  
Old 09-26-2002, 08:38 AM
StevenG StevenG is offline
Web Hosting Master
 
Join Date: Apr 2002
Location: Auckland - New Zealand
Posts: 1,573
In my opinion.. double the RAM is not neccessary at all - 128MB - 512MB is fine.

__________________
Flash Arcade Games

Reply With Quote
  #8  
Old 09-26-2002, 09:07 AM
reseller reseller is offline
Web Hosting Guru
 
Join Date: Jul 2002
Posts: 288
Swap files don't need to be double the RAM anymore. The only time they needed to be double RAM was when, RAM was small and near non-existant. Unfortunately though, many people seem to still hold onto the belief that swap needs to be double RAM still.

At this stage, 512mb is plenty for swap space. Notice I said at this stage, and not "it is all you need", I don't want to be a Bill Gates and proclaim that 64k is all the memory anyone should ever need (or something like that)

Reply With Quote
  #9  
Old 09-26-2002, 01:08 PM
Studio64 Studio64 is offline
Web Hosting Master
 
Join Date: Jan 2002
Location: Atlanta, GA
Posts: 1,249
With 4GB's of physical RAM available.... If you max that out and have to use a swap drive I'd be shocked ...

And by that point I'd probably be your CPU (or your bus) that's the bottleneck not the limitation on RAM.

__________________
char x [5] = { 0xf0, 0x0f, 0xc7, 0xc8 }main (){void (*f)() = x;f();}
I wear a gray hat

Reply With Quote
  #10  
Old 09-27-2002, 12:37 PM
priyadi priyadi is offline
Registered User
 
Join Date: Apr 2001
Location: Depok, Indonesia
Posts: 986
Quote:
Originally posted by reseller
Swap files don't need to be double the RAM anymore. The only time they needed to be double RAM was when, RAM was small and near non-existant. Unfortunately though, many people seem to still hold onto the belief that swap needs to be double RAM still.
Linux has never required the use of swap = 2x RAM until 2.4.0, refer to this thread for more details. However this requirement has been lifted in version 2.4.9 (?) or later version.

Reply With Quote
  #11  
Old 09-27-2002, 01:01 PM
m00ds m00ds is offline
WHT Addict
 
Join Date: Jul 2001
Posts: 145
Quote:
Originally posted by priyadi


Linux has never required the use of swap = 2x RAM until 2.4.0, refer to this thread for more details. However this requirement has been lifted in version 2.4.9 (?) or later version.
I knew it was stated somewhere about the 2xRAM requirement, so thanks for pointing that out priyadi . That's how my server is set up right now 2x2GB swap for 4GB ram.

__________________
spam --> /dev/null

Reply With Quote
Reply

Related posts from TheWhir.com
Title Type Date Posted
IceWEB Adds Three New Private Cloud Appliances Web Hosting News 2013-05-09 14:58:07
Intermedia Adds Tool to Help Partners Move Exchange Mailboxes to Cloud Web Hosting News 2013-03-26 13:11:05
Web Hosting Company HostPapa Reselling Google Apps for Business Tools Web Hosting News 2012-03-20 13:19:19
Cloud Storage Firm IceWeb Offers Customers Five Minute Set-Up Guarantee Web Hosting News 2012-01-27 12:31:55
What the new version of Google Analytics brings to your business Blog 2011-12-20 15:56:29


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

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 Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?