Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - General
User Name
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.


  Search this Thread
Old 12-07-2003, 03:03 PM   #1
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 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 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 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!!!

Old 12-07-2003, 03:05 PM   #2
LQ Guru
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 261Reputation: 261Reputation: 261
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
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

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

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
and the output of

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

Rep: Reputation: 60
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
An article: Tips for Optimizing Linux Memory
Old 12-07-2003, 04:33 PM   #5
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
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 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...


/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!

Old 12-08-2003, 03:41 AM   #7
LQ Veteran
Registered: Mar 2003
Location: Boise, ID
Distribution: Mint
Posts: 6,642

Rep: Reputation: 85
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.


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 > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:40 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration