Operating System - Linux
1828219 Members
1840 Online
109975 Solutions
New Discussion

Virtual memory configuration

 
SOLVED
Go to solution
Vimala L
Occasional Advisor

Virtual memory configuration


Hello there.

My m/c is Pentium III 500MHz with 320MB RAM. I have Redhat linux 7.3 installed.

One of the applications I want to install requires 512MB RAM. Since the hardware limit of m/c doesn't allow me to increase the RAM capacity futher, I wish to configure virtual memory and swap space to 512MB and 1GB respectively. I have enough of hard disk space.

I read about fdisk and mkswap and tried few things but going nowhere. Your inputs are very much appreciated.

Thanks,
Vimala.
2 REPLIES 2
U.SivaKumar_2
Honored Contributor
Solution

Re: Virtual memory configuration

Hi,
Commands in order to create swap space
1) mkswap
2) swapon
man mkswap
man swapon
will give you more details.
After giving swapon you have put the swap entry
in /etc/fstab.
man fstab

regards.
U.SivaKumar
Innovations are made when conventions are broken
I_M
Honored Contributor

Re: Virtual memory configuration

Hi

the max swap partition size is 2GB. And you can use multiple swaps. Some people create swap on different HDs for performance reason. Set them as same priority.

/dev/hda7 swap swap defaults 0 0

This is my swap config.

fdisk steps.

# fdisk /dev/hda

"n" for create new partition.
"t" for set the partition type.
swap should be 82.
"w" for write & quit.

These are all you shold know.

Good luck