Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Big swap on RedHat 6.1

Posted on 2000-03-23
6
Medium Priority
?
417 Views
Last Modified: 2013-12-15
I need a very large workspace in memory (above 1GB !)
For this pupose I need a big swap file or multiple swap parititions (about 10)
I know linux can handle maximum of 4 swap perititions.
How do I config linux to handle 10 swap par. ?
What's better in this case (file/mul. par.) ?
Any advice is welcome.
0
Comment
Question by:ygal02
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 2

Expert Comment

by:fremsley
ID: 2648581
Are you sure about the maximal 4 swap partitions?

In general swap partitions are considered faster than swap files. If you are creating swap partitions, my advice is to distribute them to different physical drives. Additionally you should put them at the beginning of the drive -- read/write is faster there. One example:

  hda1 (priority 9)
  hda2 (priority 8)
  hdb1 (priority 9)
  hdb2 (priority 8)

if you need even more swap space, you can create swap files and give them a priority smaller than 8.

Hope this helps a bit
0
 
LVL 2

Expert Comment

by:Reinier
ID: 2648620
Why would you need 10? The old restriction of 127 Mb max per swapfile/partition dates back to the 2.0 kernel series and no longer applies if you run a 2.2 kernel. I can't remember what the new limit is but I think it is at least 1 Gb.

Partitions are faster than files because there is no filesytem layer needed for accessing them. And you will want to spread the IO over all harddisks. Therefore create one swap partition on every harddisk you have and give them an equal priority and equal size. This will maximize performance. If you have to use more then one swap partition per drive make sure the are lying next to eachother in the physical disk layout. It will also help to put swap between two busy partitions, say /usr and /home. The latter two considerations will minimize disk head seek times.

Performance will still stink though, especially with IDE disks.
0
 
LVL 1

Expert Comment

by:bughead1
ID: 2653770
If you only have one disk, you might consider adding a relatively small second disk, say 1.6 GB and putting a couple of 800 MB swap partitions on it.  I think you will have to use fdisk, because disk druid (at least in RH 6.0) isn't updated to reflect the new swap partition sizes that are possible with the 2.2 kernels.

If you are stuck with IDE disks, it might also be worthwhile (if disk size permits) to spread your partitions about to reduce IO.  For example, hda could be partitioned /boot, /usr, swap, /usr/local  and hdb partitioned /, /usr/lib, swap and /home.  If each swap partition is only a tad more than half the size you need, the load will be spread between the disks.

Curious, what is this machine used for?
0
Create CentOS 7 Newton Packstack Running Keystone

A bug was filed against RDO for the installation of Keystone v3. This guide is designed to walk you through the configuration for using Keystone v3 with Packstack. You will accomplish this using various repos and the Answers file.

 
LVL 3

Author Comment

by:ygal02
ID: 2654089
Thank you all,
I'm getting a new disk tommorow and gonna try your advices.
bughead: the computer need to work with very big matrice on-line, that's the reason...
0
 
LVL 1

Accepted Solution

by:
bughead1 earned 200 total points
ID: 2682315
Well, I think the answer has to be to use fdisk and create a larger swap partition than Disk Druid will allow.

The new kernels allow larger swap partitions and Disk Druid hasn't kept up.
0
 
LVL 3

Author Comment

by:ygal02
ID: 2683152
Well, all the advices was good.
If it is possible I will grade the other answers also (if someone knows how).
Thank.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

rdate is a Linux command and the network time protocol for immediate date and time setup from another machine. The clocks are synchronized by entering rdate with the -s switch (command without switch just checks the time but does not set anything). …
Using 'screen' for session sharing, The Simple Edition Step 1: user starts session with command: screen Step 2: other user (logged in with same user account) connects with command: screen -x Done. Both users are connected to the same CLI sessio…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses

670 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question