LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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!

Notices


Reply
  Search this Thread
Old 07-17-2008, 01:10 PM   #1
yusufs
Member
 
Registered: Oct 2007
Posts: 162

Rep: Reputation: 30
Linux RHEL ES 4 Installation


Hai all,

I have a 4gb RAM in my server..by default the swap space should be twice the size of RAM, so it has to be 8GB.. right ?.but when am loading RHEL ES 4.0.. it does'nt take twice the size of RAM and for my application I ended up adding swap files ..


[root@orcldr ~]# free -m
total used free shared buffers cached
Mem: 4050 3699 351 0 85 3391
-/+ buffers/cache: 223 3827
Swap: 4983 0 4983

How come this swap space is not coming twice of the RAM During Installation ?.. How can I achieve this to work default during installation ?



Please Guide


Thanks
Yusuf
 
Old 07-17-2008, 01:24 PM   #2
gparrish
LQ Newbie
 
Registered: Apr 2006
Posts: 13

Rep: Reputation: 0
Hai all,

I have a 4gb RAM in my server..by default the swap space should be twice the size of RAM, so it has to be 8GB.. right ?.but when am loading RHEL ES 4.0.. it does'nt take twice the size of RAM and for my application I ended up adding swap files ..


[root@orcldr ~]# free -m
total used free shared buffers cached
Mem: 4050 3699 351 0 85 3391
-/+ buffers/cache: 223 3827
Swap: 4983 0 4983

How come this swap space is not coming twice of the RAM During Installation ?.. How can I achieve this to work default during installation ?


--------------------------------------------------------
Yusuf,

I believe the swap file is set to a recommended setting. That is generally 2x RAM but not a fixed setting. If you have this much RAM the installer likely just stayed with 4GB for swap so as not to utilize so much of a disk resource.

I found this which may explain why:

"The minimum size of the automatically-generated swap partition is no smaller than the amount of RAM in the system and no larger than twice the amount of RAM in the system."

If you really want 8GB for swap during the install you need to manually review the disk layout and enlarge the default swap setting or build yourself a kickstart file and specify that the swap to be 8GB. Finally if you are creating your own swap files you need to activate them with the swapon command or update the /etc/fstab file so they will activate on boot.
 
Old 07-17-2008, 01:25 PM   #3
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 235Reputation: 235Reputation: 235
No, that is the rule of thumb. Set it to what you expect to possibly be used. In most cases, I'll actually match the amount of swap to memory in case of core dumps, etc.

SWAP should rarely be used, if it is being used and starts thrashing, then it's usually time you need more memory. SWAP is kind of the like the insurance policy, it's there just in case.

Your free output indicates no swap is being used, so your in good standing.
 
Old 07-17-2008, 01:56 PM   #4
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,363

Rep: Reputation: 172Reputation: 172
Just out of curiosity are you using 32bit or 64bit?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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



Similar Threads
Thread Thread Starter Forum Replies Last Post
RHEL 5 Installation number Prasanna Rajaram Red Hat 5 03-12-2008 08:21 PM
Oracle 9i Installation on Linux (Red hat Rhel 4) imughal Linux - Newbie 1 01-09-2008 04:22 AM
Linux RHEL AS 4.5 installation problem in DELL server jeesun Linux - Enterprise 5 09-02-2007 01:46 AM
RHEL ES 4 cannot start after installation crackshotjack Red Hat 1 01-22-2006 02:39 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:14 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration