LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-11-2006, 03:53 AM   #1
user52
Member
 
Registered: Nov 2006
Posts: 41

Rep: Reputation: 15
how configure swap space.


hello sir
i want to increase my swap space ...

right know i have 2gb ram.
and my swap is some 2 gb but i want to increase size of swap memory..
sir how can i do..

any command for this.\
 
Old 12-11-2006, 04:35 AM   #2
titopoquito
Senior Member
 
Registered: Jul 2004
Location: Lower Rhine region, Germany
Distribution: Slackware 14.1 (32 and 64 bit)
Posts: 1,590

Rep: Reputation: 122Reputation: 122
Before I answer your question: Do you have any special reason why you want to increase it above that size? If you are not sure, do a search here on linuxquestions.net and you will see that 2 GB (with another 2 GB of RAM) should be more than enough in most cases.

Before you delete your old swap turn it off so that the system doesn't try to use it anymore. Read "man swapoff", you should do something like "swapoff /dev/hdc3" (device file depends on your setup!).
You will have to delete the swap and create a new one, cfdisk is a command line partitioning program that can help you do this. Make sure you set the type of the newly created partition to "82" and check that cfdisk shows it as Linux swap space.
Create the swap: read "man mkswap" -- for example to create a swap partition on /dev/hdc6 to "mkswap -c /dev/hdc6" as root.
Turn on swap: read "man swapon", something like "swapon /dev/hdc6" should be ok.
Change your /etc/fstab so that your system will use your new swap space by default: Edit this file as root and substitute your old swap's entry device file (first colum of /etc/fstab) to the new one.
 
Old 12-11-2006, 04:38 AM   #3
tshrinivasan
Member
 
Registered: Jan 2006
Location: Chennai, Tamil nadu, India
Distribution: Debian Etch Testing
Posts: 117

Rep: Reputation: 16
Hi.

2gb ram + 2gb swap is more than enough for any system.

"The swap should be double of ram" is the old concept for the 1 mb to 512 mb ram systems.

For the high ram systems like you no need of high amount of ram.

Any how follow the link,
enterprise.linux.com/enterprise/05/03/02/2250257.shtml?tid=129&tid=42

or google.

T.Shrinivasan.
 
Old 12-11-2006, 05:14 AM   #4
titopoquito
Senior Member
 
Registered: Jul 2004
Location: Lower Rhine region, Germany
Distribution: Slackware 14.1 (32 and 64 bit)
Posts: 1,590

Rep: Reputation: 122Reputation: 122
By the way, I can only speak for myself but there's no need to call me "sir". A nice and warm "Hi" and "you" are enough. "Sir" sounds a litte bit too submissive for a Linux community in my humble opinion ...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to reduce swap space and reclaim the space grantm Linux - Newbie 7 08-16-2012 08:05 AM
No swap space Zerimas Linux - Newbie 7 03-10-2005 07:08 PM
SWAP Space Mr_Penguin_02 Linux - Newbie 4 08-15-2004 05:39 PM
How to unmount actual swap and mount a new(bigger) swap space? isaac Linux - Newbie 1 06-06-2004 02:23 AM
Swap Space bawbag Slackware 6 07-16-2003 11:59 PM


All times are GMT -5. The time now is 06:41 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration