X hangs after prolonged usage ... memory usage goes upto 195MB
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: Slackware 12 Kernel 2.6.24 - probably upgraded by now
Posts: 1,054
Rep:
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).
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?)
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.
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.
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.
Distribution: Slackware 12 Kernel 2.6.24 - probably upgraded by now
Posts: 1,054
Original Poster
Rep:
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.,
Distribution: Slackware 12 Kernel 2.6.24 - probably upgraded by now
Posts: 1,054
Original Poster
Rep:
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?
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.