LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 12-07-2003, 03:03 PM   #1
ganja_guru
Member
 
Registered: Dec 2003
Location: Chennai, India
Distribution: Arch Linux 0.7
Posts: 393

Rep: Reputation: 30
Question Swap file not being used...why?


I've partitioned my HDD and set aside 10 GB as Linux and 0.5 GB as Linux Swap, using the ext3 file system. I use slackware 9.1 ...my problem is that the swap space doesn't seem to be used at all...when i run a disk usage command it says 0% of the linux swap space is being utilised...I have 768MB of DDR ram on an Athlon XP 1900...im very sure that ive selected the right choices during installationa nd have also turned swapon

and another question..ive seen a program on the corner of teh screen in a couple of screenshots of fluxbox and blackbox...it displays all kinds of info lik CPU usage and HDD space...does anyone know what it is? can i download it for KDE?

All help is appreciated!!!

-ganja_guru
 
Old 12-07-2003, 03:05 PM   #2
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,133

Rep: Reputation: 197Reputation: 197
You should be happy your swap isn't being used, that means your RAM is doing an excellent job. Its not at all common that your swap will ever get used, its just that fallback type of thing to have just in case, etc.
 
Old 12-07-2003, 03:22 PM   #3
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,974
Blog Entries: 11

Rep: Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879
Re: Swap file not being used...why?

Quote:
Originally posted by ganja_guru
0.5 GB as Linux Swap, using the ext3 file system.
Are you saying that you created a partition
of type 83, formatted using ext3 for swapping?

Please post
/etc/fstab
and the output of
mount


Cheers,
Tink
 
Old 12-07-2003, 03:27 PM   #4
fancypiper
Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 57
That's probably normal, but swap should be formated as swap, not ext3.

I seldom touch my swap with 512 MB ram, but use it frequently (especially while compiling) on a box with 384 MB.

# Memory and swap information
cat /proc/meminfo
free
An article: Tips for Optimizing Linux Memory
 
Old 12-07-2003, 04:33 PM   #5
naijin
Member
 
Registered: Nov 2003
Location: Montreal, Canada
Posts: 36

Rep: Reputation: 15
The program you want is called GKrellm.
 
Old 12-08-2003, 01:40 AM   #6
ganja_guru
Member
 
Registered: Dec 2003
Location: Chennai, India
Distribution: Arch Linux 0.7
Posts: 393

Original Poster
Rep: Reputation: 30
thanks for the quick reply everyone, tahnks naijin for Gkrellm..sorry that was a typo...my swap space is not ext3 its linux swap...yeah i guess ure right that i should be happy that my swap space is not being used, and my ram is doing a good job...

anyway

mount:
/dev/hda2 on / type ext3 (rw)
/dev/hda1 on /win-c type vfat (rw)
/dev/hdb1 on /win-d type vfat (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
proc on /proc type proc (rw)
usbfs on /proc/bus/usb type usbfs (rw)


my /etc/fstab

/dev/hda3 swap swap defaults 0 0
/dev/hda2 / ext3 defaults 1 1
/dev/hda1 /win-c vfat defaults 1 0
/dev/hdb1 /win-d vfat defaults 1 0
/dev/cdrom /mnt/cdrom iso9660 noauto,owner,ro 0 0
/dev/fd0 /mnt/floppy auto noauto,owner 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
proc /proc proc defaults 0 0
/dev/sr1 /mnt/rw iso9660 noauto,owner,ro 0 0


thanks again everyone!

ganja_guru
 
Old 12-08-2003, 03:41 AM   #7
J.W.
LQ Veteran
 
Registered: Mar 2003
Location: Milwaukee, WI
Distribution: Mint
Posts: 6,642

Rep: Reputation: 69
Zero or minimal swap usage is actually a good thing. Swap only comes into play if you exhaust your physical memory, which is undesirable. Assuming that you've got >= 256Mg RAM, you probably would use swap only lightly. Personally, I suggest making the swap partition no larger than 256 Mg. -- J.W.
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
what is a swap file...? zameer_india Linux - Newbie 8 01-09-2005 10:35 PM
swap file linuxhippy Linux - General 4 10-11-2004 04:07 PM
Swap File Cyric Slackware 13 10-04-2004 11:19 PM
Swap file sparkplug55 Linux - Newbie 2 08-11-2003 09:09 AM
No Swap File tarballedtux Slackware 4 01-09-2003 02:07 PM


All times are GMT -5. The time now is 11:38 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration