LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training 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 01-03-2007, 12:09 PM   #1
kerryblue19
LQ Newbie
 
Registered: Feb 2005
Posts: 17

Rep: Reputation: 0
Kubuntu Swap Drive not being recognized/used


Hi, I am having an odd problem here. After I upgraded to Kubunut 6.01 ( or maybe 6.0 ) my swap drive was not mounted automatically and I have to go into System Settings upon bootup to enable my swap drive. Now, all of a sudden it doesn't work. I am able to mount it but it is not being used.
When I type in free into the konsole I get:

total used free
Mem 499092 490564 8528
Swap 1461872 0 1461872

I cannot use my computer as it is too slow at the moment and I don't want to reinstall kubuntu. Any help would be greatly appreciated, thanks!
 
Old 01-03-2007, 12:23 PM   #2
kerryblue19
LQ Newbie
 
Registered: Feb 2005
Posts: 17

Original Poster
Rep: Reputation: 0
I should also note that under System Settings the swap drive line says:

3 Partition 1.4 Gb <mount point> swap /dev/hda5 Enabled
 
Old 01-03-2007, 12:29 PM   #3
tuxrules
Senior Member
 
Registered: Jun 2004
Location: Chicago
Distribution: Slackware64 -current
Posts: 1,144

Rep: Reputation: 56
Quote:
Originally Posted by kerryblue19
I am able to mount it but it is not being used.
Swap would only be used when the kernel runs out of physical RAM or other memory intensive applications require memory and no more physical RAM is available. In which case, kernel swaps out certain processes that are lesser priority or are not running.

By design, kernel uses as much memory as possible to keep anything from going to swap as swap memory is way slower than the physical RAM.

Check out memory management on gentoo wiki.

Also check out wikipedia article on virtual memory.
 
Old 01-03-2007, 12:51 PM   #4
Robert Diggs
Member
 
Registered: Dec 2006
Location: Florida
Distribution: The ones that come in magazines and books.
Posts: 136

Rep: Reputation: 15
Kerry,

Just to add to what Tux said... if you're coming from Windows, they have a very poor memory management system. It appears as though Windows will use their SWAP all the time. Linux will only do it if absolutely necessary. So, what you're reading is not a mistake

Regards,

Brandon
 
Old 01-03-2007, 01:05 PM   #5
kerryblue19
LQ Newbie
 
Registered: Feb 2005
Posts: 17

Original Poster
Rep: Reputation: 0
Thanks for the help! I should have added that I have been using Kubuntu since April of 2006, and I have checked the System Load profiles from time to time and whenever I have enabled the swap drive recently, it would show that swap memory is being used...My computer used to go fast with linux but now it is slow as muddd
 
Old 01-03-2007, 01:12 PM   #6
Robert Diggs
Member
 
Registered: Dec 2006
Location: Florida
Distribution: The ones that come in magazines and books.
Posts: 136

Rep: Reputation: 15
Kerry,

You might want to think about a different distribution. Try Damn Small Linux. It might suit you and your computer much better. Just a suggestion.

Regards,

Brandon
 
Old 01-03-2007, 03:13 PM   #7
Slash_Z
LQ Newbie
 
Registered: Jan 2007
Distribution: Slackware 12
Posts: 10

Rep: Reputation: 0
Or, if you really like Kubuntu, you might want to use Xubuntu. It is much lighter.
 
Old 01-03-2007, 03:35 PM   #8
Emerson
LQ Guru
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~arch
Posts: 5,872

Rep: Reputation: Disabled
To diagnose this problem you should open a terminal window and try turning swap on manually:
Code:
swapon /dev/hdaX
Replace hdaX with your real swap partition. Now you should see if any error messages are generated.
 
Old 01-03-2007, 04:50 PM   #9
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 14,832

Rep: Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820Reputation: 1820
Even better - what does "swapon -s" show ???.
 
  


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
Using a usb thumb drive or flash drive as a swap partition. stevenjoseph Linux - Hardware 8 01-16-2012 01:09 PM
Installing Kubuntu over prior SuSE 10.1 partitions not recognized Peter Cooper Ubuntu 2 10-11-2006 12:41 AM
SATA II Drive not recognized nilvyn Linux - Hardware 1 06-04-2006 06:43 PM
Kubuntu: Networking cards in laptop not being recognized rattenbo Linux - Networking 1 04-23-2006 03:34 PM
Making Kubuntu recognize a new swap partition eqisow Linux - Software 8 01-12-2006 12:36 AM


All times are GMT -5. The time now is 05:55 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