Solved

Increasing the swap space and Temporary Space on RHEL4!!

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

ClickHouse in a General Analytical Workload

We have mentioned ClickHouse in some recent posts, where it showed excellent results.

In this article on Experts Exchange, we’ll look at how ClickHouse performs in a general analytical workload using the star schema benchmark test.

Question has a verified solution.

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

Network Interface Card (NIC) bonding, also known as link aggregation, NIC teaming and trunking, is an important concept to understand and implement in any environment where high availability is of concern. Using this feature, a server administrator …
The purpose of this article is to demonstrate how we can use conditional statements using Python.
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…
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

623 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