LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 11-15-2004, 04:41 PM   #1
Arodef
Member
 
Registered: Apr 2004
Distribution: Centos, Fedora
Posts: 125

Rep: Reputation: 17
Question on setting swap partition(size and spltting it to 2 drives)


I know generally twice the size of your RAM is recommended for swap but for 1GB of RAM is 2GB swap really necessary?

My other question regarding splitting the swap space to 2 disk. I've read this improves performance. Do these two partitions have to be the same size? Also, to have linux write to these swap partitions in a parallel manner, would the lines in /etc/fstab look like the following:

/dev/hda2 swap swap defaults,pri=3 0 0
/dev/hdb2 swap swap defaults,pri=3 0 0


A doc I've read uses 'sw' rather than 'defaults' so I am wondering which is better. Thanks.
 
Old 11-15-2004, 06:14 PM   #2
Finlay
Senior Member
 
Registered: Mar 2003
Location: Seattle
Distribution: Slackware ?-14.1
Posts: 1,029

Rep: Reputation: 47
from what i know you can't software RAID a swap partition. (that is basically what you are asking to do)

having two swap partitions on seperate drives will not give you a noticeable speed improvement, unless your system load is maxed out.
 
Old 11-15-2004, 07:15 PM   #3
Arodef
Member
 
Registered: Apr 2004
Distribution: Centos, Fedora
Posts: 125

Original Poster
Rep: Reputation: 17
Setting them to have the same priority level does basically give the swap partitions RAID like behavior. But no you aren't actually creating a software RAID partition.
 
Old 11-15-2004, 10:42 PM   #4
Finlay
Senior Member
 
Registered: Mar 2003
Location: Seattle
Distribution: Slackware ?-14.1
Posts: 1,029

Rep: Reputation: 47
i have a linux server in production with 1gb of ram and a 2gb page file, it has a mail server, fily/print with samba, and a web server connected to mysql. the most page usage i have seen is during my backups at 20% normal usage is around 5%
 
Old 11-16-2004, 04:15 AM   #5
gani
Member
 
Registered: Jun 2004
Location: Metro Manila, Philippines
Distribution: Linuxmint, Slackware
Posts: 356

Rep: Reputation: 34
Honestly I can't answer you authoritatively but I can refer you to Debian's installation manual:

http://www.debian.org/releases/stabl...g.en.html#s6.4

Thanks to the Debian team!
 
  


Reply



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
Swap Partition Size Murdock1979 Slackware 11 07-27-2005 01:09 AM
swap partition size alaios Linux - General 4 09-27-2004 01:21 PM
Max swap partition size mindcry Linux - Software 7 11-17-2003 01:53 PM
swap partition size? Toker Linux - Newbie 16 10-12-2003 11:19 AM
change swap partition size? jamaso Linux - General 4 07-03-2002 09:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:50 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
Open Source Consulting | Domain Registration