LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices



Reply
 
Search this Thread
Old 01-21-2002, 06:51 AM   #1
ericcarlson
Member
 
Registered: Jan 2002
Posts: 161

Rep: Reputation: 30
Swap - is it still best to use a dedicated partition?


Using RH since the 4.x days, I always remember it was best to create a dedicated partition. Recently I upgraded a 6.2 directly to 7.2 and was told the partition size I'd set was too small, but it let me create a file on disk (my only option at that point in the install).

Presumably a swap file can grow whereas a partition cannot. With all this work on the swap areas, and in particular my effectively wasting the old partition as it is too small, I was wondering if its now best to start using a file in all cases.
 
Old 01-21-2002, 06:56 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,415

Rep: Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968
nope, whole swap partitions are still very much the standard
 
Old 01-21-2002, 07:56 AM   #3
Mik
Senior Member
 
Registered: Dec 2001
Location: The Netherlands
Distribution: Ubuntu
Posts: 1,316

Rep: Reputation: 46
Redhat kinda forces a quite large size for your swap partition. But if you have plenty of RAM in it then it probably won't use it much at all. If it was running fine using that swap partition in 6.2 then I'm sure 7.2 will work fine with the same swap partition.
So unless you run large memory consuming processes (which will really slow down your machine anyways if it's constantly swapping) then it wouldn't hurt to force it to use the smaller swap partition anyways.
 
Old 01-21-2002, 08:08 AM   #4
ericcarlson
Member
 
Registered: Jan 2002
Posts: 161

Original Poster
Rep: Reputation: 30
Ram is now 256M and yes, its a server running heavy java stuff such as resin for servlets and jboss for ejbs.
 
Old 01-21-2002, 06:47 PM   #5
Aussie
Senior Member
 
Registered: Sep 2001
Location: Brisvegas, Antipodes
Distribution: Slackware
Posts: 4,590

Rep: Reputation: 56
The rule of thumb is double your ram for swap..unless you have a shite load of ram.
 
Old 01-22-2002, 06:31 AM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,415

Rep: Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968
Quote:
Originally posted by Aussie
The rule of thumb is double your ram for swap..unless you have a shite load of ram.
nah, that rule is at least 15 years old. For when you had to morgage a house to get a few extra meg of RAM.

Generally machines hace enough RAM in the first place and seldomly make use of swap at all.
 
  


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
New Swap Partition ghostfacedpenguin Linux - Hardware 3 06-14-2005 08:25 PM
create a dedicated /boot partition after install dibblethewrecke Linux - Software 7 06-23-2004 08:34 AM
swap partition joeljose Linux - Software 2 04-13-2004 11:14 AM
need for swap partition? samik_ban Linux - Newbie 7 07-31-2003 01:26 PM
Newbie Installing Debian3 on m68k w/250M Partition Needs help creating swap partition AppleMac Linux - Newbie 2 11-01-2002 09:45 AM


All times are GMT -5. The time now is 11:14 PM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration