LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 03-02-2005, 03:01 PM   #1
initialdrifteg6
Member
 
Registered: Sep 2004
Location: France, Kentucky
Distribution: debian
Posts: 173

Rep: Reputation: 38
Swap partition exists, Not being used


I am running debian sarge net installer on a 100GB HDD

hda1 = windows partition = ntfs
hda2 = linux / partition = ext3
hda3 = swap partition = swap

My problem is that though this swap partition exists, there is only about 1MB of it being used. I got this information under gnome's system monitor tool. I have 1GB of memory (only displaying 885MB of it... i enabled 4GB Highmem support, but still don't get the extra memory) but i'm thinking that the swap partition should be used because the physical memory is constantly used usually up to 97%... so 880 of 885MB is being used all the time.. even on a fresh reboot.

so if this is the case.. .why isn't the swap partition kickin in and why isn't linux taking advantage of a 2gb swap??

thanks in advanced
 
Old 03-02-2005, 03:27 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
you have a gig of ram, and wonder why it doesn't use the swap?? the answer is.. you have a gig of ram!

linux uses a full memory model, meaning don't remove old stuff from ram unless you need to space. run "free" and you'll see....
Code:
             total       used       free     shared    buffers     cached
Mem:        256052     248492       7560          0      16548      96004
-/+ buffers/cache:     135940     120112
Swap:       684888     149368     535520
here i have 256M of memory, and 248M is being accounted for by linux. however only 135M is being used actively and the other 120M is full of old data that might well be used in the future. why not?

there is no benefit in placing this old data in swap, or keeping it there in the first place, so it just won't get used.
 
Old 03-02-2005, 03:44 PM   #3
initialdrifteg6
Member
 
Registered: Sep 2004
Location: France, Kentucky
Distribution: debian
Posts: 173

Original Poster
Rep: Reputation: 38
ah... so more or less... i was under the assumption that even though it said that i had 3% physicall memory free.... i thought that it meant that yea.. i had only 3% ram left.... hrmm. interesting... but look where i'm comin from... it would make a valid question though for someone who didn't know that... 1gb... err.. 885mb ram being used... 0 swap being used... so yea... thanks for the input... anyone else's ideas or agreements are also welcome
 
Old 03-02-2005, 03:52 PM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
hehe, people can agree all they want, it won't stop being true!

Yeah, it's a pretty common question and i can see why it could be confusing, and seems to annoy some people... but you paid for the memory, why not try to get the most out of it?
 
Old 03-02-2005, 04:04 PM   #5
amosf
Senior Member
 
Registered: Jun 2004
Location: Australia
Distribution: Mandriva/Slack - KDE
Posts: 1,672

Rep: Reputation: 46
Yeah. Linux uses all the ram. I says, you paid for it, I'll use it for something. So any ram that is not in an app it uses for cache and buffers. I t wan't use swap until the ram is really used up...

This question comes up a couple of times a week I think
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
SIOCADDRT: File exists SIOCCADDRT: File Exists Failed to bring up eth0. opsraja Linux - Networking 0 01-10-2005 08:29 AM
Swap partition mikz Slackware 2 09-27-2004 02:20 PM
Swap partition not used ? Wynand1 Linux - Newbie 5 06-21-2004 06:22 AM
swap in own partition? mikeshn Linux - General 6 02-10-2004 02:18 PM
Newbie Installing Debian3 on m68k w/250M Partition Needs help creating swap partition AppleMac Linux - Newbie 2 11-01-2002 08:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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