LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Swap partition not used ? (https://www.linuxquestions.org/questions/linux-newbie-8/swap-partition-not-used-193753/)

Wynand1 06-15-2004 09:33 AM

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

XavierP 06-15-2004 09:36 AM

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 http://www.linuxquestions.org/questi...hreadid=193526 for more info.

Wynand1 06-17-2004 12:34 AM

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


:confused:

J.W. 06-17-2004 01:54 AM

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.

Raphael M 06-17-2004 02:18 AM

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 ( i´m 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 ?

Wynand1 06-21-2004 06:22 AM

I've got it working !!!

Just did this :

mkswap /dev/hda2

and

swapon /dev/hda2

and then added this to /etc/fstab

dev/hda2 swap swap defaults 0 0



:D


All times are GMT -5. The time now is 04:55 PM.