Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 06-15-2004, 10:33 AM   #1
Registered: Mar 2004
Posts: 121

Rep: Reputation: 15
Question Swap partition not used ?

I have a swap partition (can see it with cfdisk) but it seems not to be used. When I open info center (in KDE) and click on memory it says that swap space is not available.

How can I configure swap space / make it work ?

I'm using slackware 9.1
Old 06-15-2004, 10:36 AM   #2
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 474Reputation: 474Reputation: 474Reputation: 474Reputation: 474
Hard drive swap space is only really used when the load is too much for your RAM. Now that memory is so cheap, most of us have 256+ in our machines and it is likely that your system does not need to use the space. This is not a fault, simply it is that your memory is good enough.

Also, see for more info.
Old 06-17-2004, 01:34 AM   #3
Registered: Mar 2004
Posts: 121

Original Poster
Rep: Reputation: 15
So.... What you say is that I don't need to worry if it says this :

Total swap memory = 0 KB
Swap Space = Not available

Old 06-17-2004, 02:54 AM   #4
LQ Veteran
Registered: Mar 2003
Location: Boise, ID
Distribution: Mint
Posts: 6,642

Rep: Reputation: 85
The fact that your swap space is not being used is a GOOD thing. Swap only gets used if your RAM is pushed beyond capacity, and is forced to write memory pages to disk. As you know, operations within RAM are orders of magnitude faster than operations that require I/O to the disk, so the less you use swap, the better, and zero utilization of swap is ideal.

Be happy -- your system is working as efficiently as it possibly can. -- J.W.
Old 06-17-2004, 03:18 AM   #5
Raphael M
Registered: Jun 2004
Location: Germany
Distribution: Debian
Posts: 67

Rep: Reputation: 15
But it is a little bit confusing that the system ( or better said KDE ) says that there is no swapspace available.
I`d be interestet if this is normal behaviour or if there may be a line missing in /etc/fstab

In my understanding ( im still a noob too ), there should be space available but not used because there is enough RAM ( which is a good thing ).
The system says "Swap Space = Not available"
Is this normal ?
Old 06-21-2004, 07:22 AM   #6
Registered: Mar 2004
Posts: 121

Original Poster
Rep: Reputation: 15
I've got it working !!!

Just did this :

mkswap /dev/hda2


swapon /dev/hda2

and then added this to /etc/fstab

dev/hda2 swap swap defaults 0 0



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
Swap partition Mojojo Linux - Hardware 10 01-20-2005 06:12 PM
Newbie Installing Debian3 on m68k w/250M Partition Needs help creating swap partition AppleMac Linux - Newbie 2 11-01-2002 09:45 AM
Should I be using a SWAP partition? Gene126 Linux - General 3 08-14-2002 10:03 PM
swap.partition anoop_chandran Linux - General 3 12-28-2001 10:48 AM
Swap partition Thomas_Delrue Linux - Newbie 3 07-12-2001 09:35 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:22 AM.

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