Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Ubuntu This forum is for the discussion of Ubuntu Linux.


  Search this Thread
Old 07-14-2005, 09:27 AM   #1
Registered: May 2005
Location: Írebro, Sweden
Distribution: Ubuntu 6.06
Posts: 92

Rep: Reputation: 15
Fast Question: SWAP-file in Ubuntu disabled by default?

As you might have figured out, my SWAP-file appears to be in no use. The System Monitor shows 0 bytes used so I guess the OS don't use it.
-Do I have to enable this feature...?

When I installed Ubuntu and edited all partitions, I added a small one for Linux SWAP - but I guess it was wasted MB:s if it's not in use
Old 07-14-2005, 09:48 AM   #2
Senior Member
Registered: Oct 2004
Location: Athens, Greece
Distribution: Slackware, arch
Posts: 1,783

Rep: Reputation: 52
The swap partition is not something that should be used all the time. It's only used when all your RAM is filled and the OS needs extra space to do the process swapping. I have 1Gb of RAM and my system almost never uses the swap partition. And in the rare cases where the swap is being used only a few MB are used. You should be glad that the swap partition is not being used. When Linux uses the swap, since the hd is a lot slower than RAM, the performance in your box will decrease a lot. Nowdays since RAM is so cheap and almost all modern computers have more than 256 or 512 MB of RAM, the swap partition only provides stability in extreme conditions.

P.S. Since the System Monitor shows the swap partition, you obviously have enabled it.
Wasting 128 or 256 MB of disk space is not a big deal if this is what it takes to have your box stable under any circumstances.

If you have a lot of RAM and you see a big percent of your swap being used, in most cases this indicates memory leaks in one of your programs.

Last edited by perfect_circle; 07-14-2005 at 10:00 AM.
Old 07-14-2005, 09:57 AM   #3
Registered: May 2005
Location: Írebro, Sweden
Distribution: Ubuntu 6.06
Posts: 92

Original Poster
Rep: Reputation: 15
Okay, then I guess the case is better than perfect

I also have 1 GB of RAM, and not much used there neither, so it should be cool
But I'm a Windows user and new to Linux, so I don't really know how this all works - yet
Windows has an ability to always use the SWAP

Thanks for the fast answer


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
Linux swap / solaris not appearing as swap in Ubuntu? Erik_the_Red Linux - Newbie 1 07-30-2005 12:57 PM
respawning too fast: disabled for 5 minutes robr Fedora 2 04-04-2005 11:20 PM
swap disabled? alaios Debian 3 01-08-2005 01:17 PM
spawning too fast disabled for 5 minutes ajegilefajar Linux From Scratch 5 03-09-2004 04:05 AM
INIT: id 'x' respawning too fast: disabled for 5 minutes unitcoed Linux - Newbie 1 07-06-2003 07:35 PM > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 01:24 PM.

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