LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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, 11:09 AM   #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, 11:23 AM   #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, 11:29 AM   #3
tuxrules
Senior Member
 
Registered: Jun 2004
Location: Chicago
Distribution: Slackware64 -current
Posts: 1,158

Rep: Reputation: 62
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, 11:51 AM   #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, 12: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, 12: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, 02: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, 02:35 PM   #8
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

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, 03:50 PM   #9
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

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


Reply



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 12:09 PM
Installing Kubuntu over prior SuSE 10.1 partitions not recognized Peter Cooper Ubuntu 2 10-10-2006 11:41 PM
SATA II Drive not recognized nilvyn Linux - Hardware 1 06-04-2006 05:43 PM
Kubuntu: Networking cards in laptop not being recognized rattenbo Linux - Networking 1 04-23-2006 02:34 PM
Making Kubuntu recognize a new swap partition eqisow Linux - Software 8 01-11-2006 11:36 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:32 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
Open Source Consulting | Domain Registration