Solved

Increasing the swap space and Temporary Space on RHEL4!!

Posted on 2006-11-19
5
1,029 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 168 total points
ID: 17977275
0
 
LVL 14

Assisted Solution

by:ygoutham
ygoutham earned 166 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 39

Assisted Solution

by:noci
noci earned 166 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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

How many times have you wanted to quickly do the same thing to a list but found yourself typing it again and again? I first figured out a small time saver with the up arrow to recall the last command but that can only get you so far if you have a bi…
SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

746 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now