LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 02-17-2007, 05:21 AM   #1
duryodhan
Senior Member
 
Registered: Oct 2006
Distribution: Slackware 12 Kernel 2.6.24 - probably upgraded by now
Posts: 1,054

Rep: Reputation: 46
X hangs after prolonged usage ... memory usage goes upto 195MB


hey,
I am on Slackware 11 with KDE and kernel 2.6.20 with DRI enabled.
The tools I generally use are : Firefox, mplayer, Psi(Jabber Client), Amarok, Akgregator, KMail , Apache,MySql,PHp , Yakuake, these are all nearly always on. I have 1GB DDR2 RAM with 2GB Swap.
After startx , X consumes only around 20MB physical memory. The computer behaves and responds well. But after 6-7 hours, X is seen to consume 195MB physical memory. The comp stops responding and I have to go back to CLI and startx again (if I can) although many times I just have to reset the comp.

Is this behaviour expected? Any suggestions? Are there any specific kernel modules that control/cause this behaviour cos I am running my own kernel config.
Is there a program that looks out for too high mem usage by any program and restarts that specific program(viz. X here).
 
Old 02-17-2007, 06:04 AM   #2
ludist
Member
 
Registered: Nov 2005
Location: Greece
Distribution: Slackware
Posts: 129

Rep: Reputation: 16
What you mean: "nearly allways on"? You mean you leave the computer and firefox is open? Because:
I left Firefox in a heavy flash site open for 12 hours and swap was filled up. The computer became Windows. Everything in cache.

silly idea (maybe time consuming): make a cronjob every minute that writes to a file the usage of memory (ps -u is ok for you?)
 
Old 02-17-2007, 07:04 AM   #3
duryodhan
Senior Member
 
Registered: Oct 2006
Distribution: Slackware 12 Kernel 2.6.24 - probably upgraded by now
Posts: 1,054

Original Poster
Rep: Reputation: 46
ofcourse not ... I would never leave anything as leaky as Firefox running on ...

But akgregator, Amarok , Yakuake and Psi are always on....

And I dont knw much about cronjobs etc.... but wouldn't that really screw up my comp??

Last edited by duryodhan; 02-17-2007 at 07:08 AM.
 
Old 02-17-2007, 11:31 AM   #4
H_TeXMeX_H
Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269
Much of KDE is leaky (IMO). Run 'top' and sort by memory usage (press 'F' (that's '<Shift> f') then 'n' then '<Enter>'). There you can see what uses up most memory.

Last edited by H_TeXMeX_H; 02-17-2007 at 11:32 AM.
 
Old 02-19-2007, 11:05 PM   #5
bird603568
Member
 
Registered: Aug 2004
Distribution: Slackware current
Posts: 250

Rep: Reputation: 30
try closing amaroK it leaks really bad if you leave it on for long times
 
Old 02-20-2007, 06:50 AM   #6
duryodhan
Senior Member
 
Registered: Oct 2006
Distribution: Slackware 12 Kernel 2.6.24 - probably upgraded by now
Posts: 1,054

Original Poster
Rep: Reputation: 46
hmm... I thought Linux was for servers?! how are so many apps leaky?

Or is it that servers run CLI or XFCE at most?

thanks all.
 
Old 02-20-2007, 07:07 AM   #7
gbonvehi
Senior Member
 
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Rep: Reputation: 51
Usually servers don't even run X, a server is not a admin desktop
 
Old 02-20-2007, 02:13 PM   #8
H_TeXMeX_H
Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269
Quote:
Originally Posted by duryodhan
hmm... I thought Linux was for servers?! how are so many apps leaky?

Or is it that servers run CLI or XFCE at most?

thanks all.
so you think Linux servers run KDE and amarok ? what for ?

As gbonvehi says, they don't even run X.

Really, I think much of KDE is leaky (I know koffice, amarok, kpdf do leak). XFCE is quite leaky too.

Really, it's up to you to find a non-leaky program. Not all FLOSS is created equal. Look around and find the best. I can tell you that nothing on my system (except maybe firefox and openoffice) has a significant memory leak ... I could leave it on for years without memory going up too much (if I don't use firefox or openoffice). Leave Window$ on for more than 12-24 hrs and I can almost guarantee you it will be frozen when you get back ... I tried this many times ... got the same result every time.

Last edited by H_TeXMeX_H; 02-20-2007 at 02:15 PM.
 
Old 02-20-2007, 04:46 PM   #9
salmaklak
LQ Newbie
 
Registered: Jun 2005
Distribution: Slackware, Ubuntu on my PS3
Posts: 22

Rep: Reputation: 15
Memory usage

My desktop box with Slackware 11 has been up for the last 83 days (nothing special, I had to move house).
Currently X is showing 59Mb of RAM being used.
I use WindowMaker...and also use Amarok constantly, but none of the other applications you mention.
WindowMaker is currently using 2139Kb of RAM, largely because of the background I have on the desktop.
In the past I've found some very nice looking GTK2 themes leaked RAM badly over a long period of time.
Obviously something is doing the same for you...so it's a case of changing your applications and desktop and seeing what it is.
Considering how quickly the RAM is leaking for you it shouldn't be very hard to work out what is doing it.
 
Old 02-20-2007, 10:37 PM   #10
duryodhan
Senior Member
 
Registered: Oct 2006
Distribution: Slackware 12 Kernel 2.6.24 - probably upgraded by now
Posts: 1,054

Original Poster
Rep: Reputation: 46
ya I am pretty sure that Amarok doesn't cause problem . After I went from 2.6.18 to 6.20 kernel, I have started noticing this problem. Before that I had run my desktop box with KDE on for 14-15 days straight without problem.
I have been unable as of yet to catch the culprit. I just mentioned all my apps to see if anyone else had issues with them.,
 
Old 02-20-2007, 11:18 PM   #11
H_TeXMeX_H
Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269
Quote:
Originally Posted by duryodhan
After I went from 2.6.18 to 6.20 kernel, I have started noticing this problem.
Hmmm ... well, do you suppose the kernel could be causing it somehow ?
 
Old 02-21-2007, 08:49 PM   #12
duryodhan
Senior Member
 
Registered: Oct 2006
Distribution: Slackware 12 Kernel 2.6.24 - probably upgraded by now
Posts: 1,054

Original Poster
Rep: Reputation: 46
No... I did a few more things , started installing some more stuff. And I dont think kernel can cause a leak in X , can it?
Right now , every time I close Akgregator it gives a SIGSEGV .. and another program that I use "Valknut" seems to be a memory hog.

My X seems to consume insane amounts of Virtual Memory ... at actual memory usage of 35MB its virtual mem is at 300MB.. Is that normal?
 
Old 02-22-2007, 07:58 AM   #13
ludist
Member
 
Registered: Nov 2005
Location: Greece
Distribution: Slackware
Posts: 129

Rep: Reputation: 16
I use Firefox and Valknut. Both programs consume BIG amounts of RAM.

Try cat 0 > /proc/sys/vm/swappiness IF you have > 384 of ram

Normally swappiness is 60
 
Old 02-22-2007, 10:53 AM   #14
duryodhan
Senior Member
 
Registered: Oct 2006
Distribution: Slackware 12 Kernel 2.6.24 - probably upgraded by now
Posts: 1,054

Original Poster
Rep: Reputation: 46
cat /proc/sys/vm/swappiness

is showing swappiness of 60 .. so it seems to be normal I guess...

Last edited by duryodhan; 02-22-2007 at 10:54 AM.
 
Old 02-22-2007, 07:23 PM   #15
gbonvehi
Senior Member
 
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Rep: Reputation: 51
It's normal, you can easily "debug" this by leaving X without programs running a few hours. Then you start the program you think it's the problem and watch.
 
  


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
Memory Usage Spaw Usage Swappiness Issues joelunch Linux - Software 3 01-04-2006 06:16 PM
getting realtime info on memory usage-cpu and harddrive usage steering Linux - Newbie 5 03-03-2005 08:43 PM
how to determine cpu usage, memory usage, I/O usage by a particular user logged on li rags2k Programming 4 08-21-2004 04:45 AM
Controlling CPU usage & memory usage Saravana babu Linux - Software 0 02-18-2004 05:55 AM
memory usage? flump Linux - Software 1 09-01-2003 08:15 PM


All times are GMT -5. The time now is 12:50 AM.

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