LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 12-16-2008, 09:38 AM   #1
SirPetrovich
LQ Newbie
 
Registered: Dec 2008
Posts: 12

Rep: Reputation: 0
swap partition made but not working, what do i do?


kde 3.5.9 on slack 12.1.

i made a swap partition when i setup my system but now i notice in the task manager that only my RAM is being used, and next to it is written "No swap space available". how can i begin about diagnosing this problem? it seems massive is the swap space declared incorrectly or something along those lines?
 
Old 12-16-2008, 09:40 AM   #2
SkinnerC
Member
 
Registered: Dec 2007
Location: New England, USA
Distribution: Ubuntu 8.04 LTS, Slackware 12.2
Posts: 138
Blog Entries: 1

Rep: Reputation: 20
I believe the commands are "makeswap hd<whatever>" then "swapon" But double check with the Gurus.
 
Old 12-16-2008, 09:53 AM   #3
Hern_28
Member
 
Registered: Mar 2007
Location: North Carolina
Distribution: Slackware 12.0, Gentoo, LFS, Debian, Kubuntu.
Posts: 906

Rep: Reputation: 38
fstab.

After you finish the with the previous post might want to add the swap drive to fstab so the system uses it when it boots.
 
Old 12-16-2008, 10:09 AM   #4
bgeddy
Senior Member
 
Registered: Sep 2006
Location: Liverpool - England
Distribution: slackware64 13.37 and -current, Dragonfly BSD
Posts: 1,810

Rep: Reputation: 232Reputation: 232Reputation: 232
Have a look at
Code:
man mkswap
for information on making and activating a swap file. To see swap file useage you may use
Code:
free
from the cli.
 
Old 12-16-2008, 10:23 AM   #5
mike47
LQ Newbie
 
Registered: Apr 2008
Location: Valley of the Sun
Distribution: Solaris9, Solaris10, SLES9, SLES10, SLES11, RHEL, openSUSE, Ubuntu
Posts: 7
Blog Entries: 1

Rep: Reputation: 0
swap partition made but not working ..

Hello,

You may want to first cat the fstab file and verify there is an entry for swap. ( # cat /etc/fstab )

if there isn't a line for swap, add this line to fstab:

/dev/hdxx none swap

prepare your partition as a swap file

# mkswap /dev/hdxx

(use tabs not spaces above)

: notes
: /dev/hdxx is your swap partition
: none is the mount point
: swap is file system type
: man mkswap for more info on preparing swap file

after doing this reboot your linux system
- or -
type
# swapon -a
to turn on the swap device

Mike
 
Old 01-12-2009, 10:32 AM   #6
Reasa
Member
 
Registered: Aug 2008
Distribution: Slackware
Posts: 53

Rep: Reputation: 16
Hey, very informing, but i have the same problem. I did the commands Mike said but no use. Could it be because i dont have swap support by kernel? /proc/filesystems doesnt show up 'swap'.

Mem: 381892k total, 314304k used, 67588k free, 37012k buffers
Swap: 752424k total, 0k used, 752424k free, 198316k cached

bash-3.1$ free
total used free shared buffers cached
Mem: 381892 315236 66656 0 37364 199028
-/+ buffers/cache: 78844 303048
Swap: 752424 0 752424

Last edited by Reasa; 01-12-2009 at 11:06 AM.
 
Old 01-12-2009, 11:08 AM   #7
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,897

Rep: Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019
You didn't include the '#' when you typed the commands Mike listed did you? If so, do them again without the '#' as what he listed should have worked.
 
Old 01-12-2009, 11:23 AM   #8
Reasa
Member
 
Registered: Aug 2008
Distribution: Slackware
Posts: 53

Rep: Reputation: 16
I did (i mean i did them as root). Also modified fstab file and rebooted.

Last edited by Reasa; 01-12-2009 at 11:24 AM.
 
Old 01-12-2009, 11:24 AM   #9
bgeddy
Senior Member
 
Registered: Sep 2006
Location: Liverpool - England
Distribution: slackware64 13.37 and -current, Dragonfly BSD
Posts: 1,810

Rep: Reputation: 232Reputation: 232Reputation: 232
Quote:
Mem: 381892k total, 314304k used, 67588k free, 37012k buffers
Swap: 752424k total, 0k used, 752424k free, 198316k cached
This shows that you do in fact have a swap file of about 734 MB. None of it is being used at the moment as the kernel mustn't need it.
 
Old 01-12-2009, 11:25 AM   #10
Reasa
Member
 
Registered: Aug 2008
Distribution: Slackware
Posts: 53

Rep: Reputation: 16
I loaded xmms gimp kword gqview mplayer opera and still 0k... O.o
 
Old 01-12-2009, 11:50 AM   #11
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,897

Rep: Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019
Quote:
Originally Posted by Reasa View Post
I did (i mean i did them as root). Also modified fstab file and rebooted.
I expected as much, just thought it was worth ruling out as I didn't know anything about your experience level with linux.

It's surprising how efficient linux can be with its memory, unlike vista. Quite how Microsoft get it to use so much memory to do nothing is beyond me.

When I had my 1.5GB Ram system, I never saw linux use any swap at all. This 128MB box on the other hand struggles a little bit.
 
Old 01-12-2009, 02:02 PM   #12
Reasa
Member
 
Registered: Aug 2008
Distribution: Slackware
Posts: 53

Rep: Reputation: 16
Ok now its using a bit:
Swap: 752424k total, 1124k used, 751300k free, 169996k cached

Thanks for info.
 
Old 01-12-2009, 05:52 PM   #13
bgeddy
Senior Member
 
Registered: Sep 2006
Location: Liverpool - England
Distribution: slackware64 13.37 and -current, Dragonfly BSD
Posts: 1,810

Rep: Reputation: 232Reputation: 232Reputation: 232
Quote:
Ok now its using a bit:
Swap: 752424k total, 1124k used, 751300k free, 169996k cached
Don't doubt the kernel. Linux is a superb user of resources.
 
  


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
Hard Drive Partition Management - Mandriva Double Partition with Swap File partition moshebagelfresser Linux - Hardware 2 05-23-2008 10:46 AM
Adding more swap made system hangs ivanatora Linux - General 6 11-22-2006 03:50 PM
Made my swap partition far too big. Is it too late to go back? studioq Slackware 12 10-08-2006 09:34 PM
Made a mess with my swap partitions VaniaMih Linux - Newbie 12 12-01-2005 01:23 PM
External drive now internal - Mandrake made it a swap joeaverage Mandriva 2 11-14-2005 01:03 AM

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

All times are GMT -5. The time now is 05:57 PM.

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