LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 05-08-2005, 09:33 PM   #1
palidang
LQ Newbie
 
Registered: May 2004
Distribution: suse 9.2
Posts: 16

Rep: Reputation: 0
SUSE9.3 swap


Hey everyone,

just some quck questions because i think that my swap isnt working (im really a newbie)

1) how do you check if your swap is working
2)i know a swap partition exists so if it isnt working how do you enable it

thanks in advance
jack
 
Old 05-08-2005, 09:56 PM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,125

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
1) swapon -s (status)
2) swapon /dev/hd?? (substitute applicable partition)

"man swapon" for edification
 
Old 05-08-2005, 09:58 PM   #3
piscikeeper
Member
 
Registered: Jul 2003
Location: Pennsylvania USA
Distribution: SuSE
Posts: 430

Rep: Reputation: 30
run gkrellm and you can monitor swap usage.my swap isn't being used,but that's a good thing.it simply means my system has enough ram to not need it.
 
Old 05-09-2005, 05:15 AM   #4
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
If you have a lot of ram, swap may not be used by your system.
 
Old 05-14-2005, 11:22 PM   #5
palidang
LQ Newbie
 
Registered: May 2004
Distribution: suse 9.2
Posts: 16

Original Poster
Rep: Reputation: 0
ok this is whats still confusing.

when i shutdown the computer and watch all the text when linux is shutting itself down im pretty sure i see on the left hand side where it says shutting down swap then over on the right hand side i see "missing" in red.

when i did swapon -s it said /dev/hdb5
and swapon /dev/hdb5 told me device was busy
and when i tried man swap it said "no manual entry for swap"

I also have a monitor program on my desktop so i can see how much memory and swap is used and ive never seen it used on this installation and i know it should have because i purposely multitasked with gimp, mathematica, open office, and many more.

i have 512mb of ram so i im pretty sure i should have used swap space when multitasking because when i had 9.2 i did use it in similar situations

thanks
 
Old 05-14-2005, 11:38 PM   #6
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
Post your /etc/fstab. What partition is your swap?
 
Old 05-15-2005, 12:03 AM   #7
detpenguin
Senior Member
 
Registered: Oct 2003
Location: lost in the midwest...
Distribution: Slackware
Posts: 1,098

Rep: Reputation: 54
i have 512mb of ram...a gig of swap, and my swap is never touched...
 
Old 05-15-2005, 12:11 AM   #8
palidang
LQ Newbie
 
Registered: May 2004
Distribution: suse 9.2
Posts: 16

Original Poster
Rep: Reputation: 0
hda is entirely windows, hdb has fat32 parts because each OS can write to it (newbie cant leave windows yet)

/dev/hdb6 / reiserfs acl,user_xattr 1 1
/dev/hda1 /windows/C ntfs ro,users,gid=users,umask=0002,nls=utf8 0 0
/dev/hda2 /windows/D vfat users,gid=users,umask=0002,utf8=true 0 0
/dev/hda5 /windows/E ntfs ro,users,gid=users,umask=0002,nls=utf8 0 0
/dev/hdb7 /windows/F vfat users,gid=users,umask=0002,utf8=true 0 0
/dev/hdb8 /windows/G vfat users,gid=users,umask=0002,utf8=true 0 0
/dev/hdb9 /windows/H vfat users,gid=users,umask=0002,utf8=true 0 0
/dev/hdb5 swap swap acl,user_xattr 0 0
devpts /dev/pts devpts mode=0620,gid=5 0 0
proc /proc proc defaults 0 0
usbfs /proc/bus/usb usbfs noauto 0 0
sysfs /sys sysfs noauto 0 0
/dev/cdrecorder /media/cdrecorder subfs noauto,fs=cdfss,ro,procuid,nosuid,nodev,exec,iocharset=utf8 0 0
/dev/dvd /media/dvd subfs noauto,fs=cdfss,ro,procuid,nosuid,nodev,exec,iocharset=utf8 0 0
/dev/fd0 /media/floppy subfs noauto,fs=floppyfss,procuid,nodev,nosuid,sync 0 0

thanks
 
Old 05-19-2005, 12:18 AM   #9
palidang
LQ Newbie
 
Registered: May 2004
Distribution: suse 9.2
Posts: 16

Original Poster
Rep: Reputation: 0
could there be any problems with the swap being on the extended partition instead of its own primary?

thanks
 
Old 05-19-2005, 02:58 AM   #10
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,125

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
No - this is looking like a Suse problem. See also this thread.
 
Old 05-19-2005, 10:15 AM   #11
palidang
LQ Newbie
 
Registered: May 2004
Distribution: suse 9.2
Posts: 16

Original Poster
Rep: Reputation: 0
thank you very much
 
Old 05-19-2005, 10:23 AM   #12
abisko00
Senior Member
 
Registered: Mar 2004
Location: Munich
Distribution: Ubuntu
Posts: 3,517

Rep: Reputation: 58
As far as I remember I got that message a couple of times too. But only at shutdown and not always. I think it is more valuable to know if swap is set-up on boot. Try 'dmesg | grep swap' to see if swap has been activated.
Code:
user@linux:~> dmesg | grep swap
Adding 530104k swap on /dev/sda7.  Priority:42 extents:1
Is this the case, I wouldn't worry too much about the shutdown message. BTW: It's 'man swapon', not 'man swap'
 
  


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
Linux swap / solaris not appearing as swap in Ubuntu? Erik_the_Red Linux - Newbie 1 07-30-2005 12:57 PM
Yes, more help with Wine on Suse9.1 crazibri Linux - Software 2 06-20-2004 10:10 PM
How to unmount actual swap and mount a new(bigger) swap space? isaac Linux - Newbie 1 06-06-2004 01:23 AM
suse9 lil213 Linux - General 3 01-18-2004 09:18 PM
Difference between Swap Virtrual memory and Swap Parition Nappa Slackware 4 11-27-2003 07:58 PM

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

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