Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Increasing the swap space and Temporary Space on RHEL4!!

Posted on 2006-11-19
5
Medium Priority
?
1,063 Views
Last Modified: 2013-12-16
How can i increase the swap space and temporary space of pre-installed linux in Red Hat Enterprise Linux 4?
0
Comment
Question by:aman_greval
5 Comments
 
LVL 12

Accepted Solution

by:
ibu1 earned 672 total points
ID: 17977275
0
 
LVL 14

Assisted Solution

by:ygoutham
ygoutham earned 664 total points
ID: 17977286
do the following

dd if=/dev/zero  of=/swapfile  bs=1024 count=1024576

This creates a swapfile in / path with the size of 1024*1024

mkswap /swapfile
swapon /swapfile

this creates a swap area equivalent of 1000 MB in size.  to increase this permanently you need to add the entry in fstab as well.

add the following line to you /etc/fstab file

/swapfile               swap                    swap    defaults        0 0

***********

http://www.redhat.com/docs/manuals/linux/RHL-9-Manual/custom-guide/s1-swap-adding.html
0
 
LVL 40

Assisted Solution

by:noci
noci earned 664 total points
ID: 17999792
Be aware though that above solutions might result in poor performance if
the swap area gets fragmented over the disk.
If you have a spare space (unpartitioned) on your disk that try to use that.
If the disk is LVM managed to to add a new LVM partition.
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Question has a verified solution.

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

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…
Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
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.
Suggested Courses
Course of the Month9 days, 20 hours left to enroll

926 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