?
Solved

Increasing the swap space and Temporary Space on RHEL4!!

Posted on 2006-11-19
5
Medium Priority
?
1,055 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
[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
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

Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

Question has a verified solution.

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

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…
Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

718 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