LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 03-05-2006, 06:36 AM   #1
Kropotkin
Member
 
Registered: Oct 2004
Location: /usr/home
Distribution: Mint, Ubuntu server, FreeBSD, Android
Posts: 362

Rep: Reputation: 32
swap partition, but no swapping


On my Pentium IV system with 1 GB of RAM, running FC4, I am getting long periods of disk thrashing after several week's of uptime, notably when running RAM-greedy apps like Gimp, Firefox, and Thunderbird. It has a 1 GB swap partition, which fdisk recognizes as such:
Code:
/dev/sdc2              14         140     1020127+  82  Linux swap / Solaris
But when I run 'free'
Code:
$ free -m
             total       used       free     shared    buffers     cached
Mem:          1010        997         13          0          7        136
-/+ buffers/cache:        853        156
Swap:            0          0          0
it appears that swap space is not being used.

On my Ununtu system, which has 512 MB RAM and a 1.5 GM swap partition, I see this, for example:
Code:
$ free -m
             total       used       free     shared    buffers     cached
Mem:           496        490          6          0         27         68
-/+ buffers/cache:        393        103
Swap:         1451        242       1208
Is it possible that swap on my FC4 box has been inadvertently disabled? If so, I do I determine this and how do I re-enable it?

Last edited by Kropotkin; 03-05-2006 at 06:45 AM.
 
Old 03-05-2006, 07:01 AM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,700

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
Correct, swap is not being enabled on the FC4 box.
Is there an entry in the /ec/fstab file for swap?
To enable swap from the command line.
swapon /dev/sdc2
 
Old 03-05-2006, 12:40 PM   #3
Kropotkin
Member
 
Registered: Oct 2004
Location: /usr/home
Distribution: Mint, Ubuntu server, FreeBSD, Android
Posts: 362

Original Poster
Rep: Reputation: 32
Quote:
Originally Posted by michaelk
Correct, swap is not being enabled on the FC4 box.
Is there an entry in the /ec/fstab file for swap?
To enable swap from the command line.
swapon /dev/sdc2
Thanks, that fixed it. It appeared there was an obsolete entry in /etc/fstab, ie, the swap line was pointing to a partition that no longer existed. Once I fixed that, I was enable to activate swap. Must have happened when I added a new HD awhile back.
 
  


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
New partition setup and HD swapping lnebrown Linux - Newbie 8 12-11-2005 09:19 AM
need for swap partition? samik_ban Linux - Newbie 7 07-31-2003 12:26 PM
how to create a partition for swapping data between win2000pro and red hat 9.0? Mephisto3285 Linux - Newbie 3 07-04-2003 05:11 PM
Newbie Installing Debian3 on m68k w/250M Partition Needs help creating swap partition AppleMac Linux - Newbie 2 11-01-2002 08:45 AM
swap.partition anoop_chandran Linux - General 3 12-28-2001 09:48 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

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