Solved

Increasing the swap space and Temporary Space on RHEL4!!

Posted on 2006-11-19
5
1,031 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 40

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

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

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

Suggested Solutions

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…
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 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…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

911 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

19 Experts available now in Live!

Get 1:1 Help Now