LinuxQuestions.org
Review your favorite Linux distribution.
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 10-24-2004, 04:07 PM   #1
minm
Member
 
Registered: Jun 2003
Location: Canada
Distribution: suse 9.2
Posts: 582

Rep: Reputation: 30
swap being eaten?


Hey, before i had 86 megs of swap, and the most it would ever use was 5 megs out of the 86... now after 2 hours of my computer being on, it would get to 86 megs quickly..

what's wrong?
 
Old 10-24-2004, 04:22 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
"I never used to catch a cold, now I have a
blocked nose, what's happening?"

Sorry mate, but to make sense of your statement
we'd need e.g. the size of physical RAM and
what programs you're running, and whether you
made major changes to the systems set-up before
the swap started getting used.



Cheers,
Tink
 
Old 10-24-2004, 04:25 PM   #3
minm
Member
 
Registered: Jun 2003
Location: Canada
Distribution: suse 9.2
Posts: 582

Original Poster
Rep: Reputation: 30
lol, sorry i wasn't expecting a specific answer, just theories but anyways

i have a gig of ram, i did upgrade to kde 3.3, but i never did have problems with it.. uhm, i run amsn, bitchx, xmms, firefox, superkaramba... that's really about it..
 
Old 10-24-2004, 04:44 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
One of the plausible "theories" is that Linux, even
with TONS of free RAM available, will swap out
processes that have been inactive for a long time.

If I, for instance, leave my box (512MB) with Mozilla
open unattended for a while (>1 hour) Linux will
shuffle mozilla into swapspace.


Cheers,
Tink
 
Old 10-24-2004, 04:55 PM   #5
minm
Member
 
Registered: Jun 2003
Location: Canada
Distribution: suse 9.2
Posts: 582

Original Poster
Rep: Reputation: 30
ah
interesting
Thanks
 
Old 10-24-2004, 05:28 PM   #6
minm
Member
 
Registered: Jun 2003
Location: Canada
Distribution: suse 9.2
Posts: 582

Original Poster
Rep: Reputation: 30
hmm it seems to keep doing it.. itry and go into the control panel but it won't let me resize cause the hard drive is mounted.. how do i resize it to a larger size?
 
Old 10-24-2004, 05:31 PM   #7
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Are you using a swap-file or a swap-partition?



Cheers,
Tink
 
Old 10-24-2004, 05:48 PM   #8
foo_bar_foo
Senior Member
 
Registered: Jun 2004
Posts: 2,553

Rep: Reputation: 52
something must be leaking memory.

i think try to figure out which process has it's memory growing like kudzu in Georgia

x is a good candidate
try changing the desktop image a few times and see if memory use grows with each change.

something weird might be going on with kde since you upgraded it

always delete the .kde folder and start over when you upgrade..
kde might be getting lost in configuration symbols it can't understand
but i can't see that causing the mem problem

also check for a process that's lost in a loop... and using up lots of cpu cycles
and conctantly allocating memory....

i have about the same ram as you and the only time swap gets used is when ide-scsi gets lost in
a loop.

also look at Cntrl Alt F1 to make sure you don't have error messages flying by on the controlling tty another sign of a process gone mad.

Last edited by foo_bar_foo; 10-24-2004 at 05:58 PM.
 
Old 10-24-2004, 09:59 PM   #9
minm
Member
 
Registered: Jun 2003
Location: Canada
Distribution: suse 9.2
Posts: 582

Original Poster
Rep: Reputation: 30
im using a swap partition...

hmm i really don't know how to check whats eating up the ram...

i never did deleate the .kde folder...

WHen i did ctrl alt F1 it just a screen asking me to login, i remember it used t to give me error messages but i deleted that...


hmm

what do i do
 
Old 10-24-2004, 10:42 PM   #10
minm
Member
 
Registered: Jun 2003
Location: Canada
Distribution: suse 9.2
Posts: 582

Original Poster
Rep: Reputation: 30
ok, the more programs i open now, the more ram it takes and then takes swap.. and this is only like 9 programs.. i used to run a lot more and it would barely tough swap.. it used to just allocate my ram..

what happened


for example, it ate up 50 megs of my swap just opening up the configure window for my desktop..

Last edited by minm; 10-24-2004 at 10:46 PM.
 
Old 10-24-2004, 11:29 PM   #11
foo_bar_foo
Senior Member
 
Registered: Jun 2004
Posts: 2,553

Rep: Reputation: 52
Quote:
hmm i really don't know how to check whats eating up the ram...
open up KDE System Guard
and look at the VmSize numbers !
what are the large ones and are they changing
save this bash script and where it say $PID put the PID number of the processes taking up lots of VnSize
(PID is first entry in KDE System Guard)
do chmod 775 on the script it so it's executable and run it from a virtual terminal
i set it to take a reading every 10 minutes for 1 hour
you can change that with the numbers at the top
Code:
#!/bin/bash
INTERVAL=600
LIMIT=3600
while [ "$SECONDS" -le "$LIMIT" ]
do
   cat /proc/$PID/status |grep VmSize ;
   sleep $INTERVAL
done
exit 0
Quote:
i never did deleate the .kde folder...
delete the .kde folder and restart KDE and redo you settings
the old configuration is incompatable with the new version of KDE
and might be your problem
 
  


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 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 01:57 PM
Ram being eaten by linux? minm Linux - Newbie 21 09-08-2004 09:52 PM
How to unmount actual swap and mount a new(bigger) swap space? isaac Linux - Newbie 1 06-06-2004 02:23 AM
Difference between Swap Virtrual memory and Swap Parition Nappa Slackware 4 11-27-2003 08:58 PM
Red Hat 7.2 Memory Eaten Up ayhopkins Linux - Newbie 19 04-24-2002 05:43 PM

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

All times are GMT -5. The time now is 07:34 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration