LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-28-2007, 09:11 PM   #1
timothyb89
Member
 
Registered: Jul 2006
Location: Colorado, USA
Distribution: openSuSE 11.4
Posts: 118

Rep: Reputation: 15
Xorg using over 3 GB of ram (!)


I came to my computer today only to find that my X server had managed to break its two-GBs-of-RAM usage record, this time with around 3 gigs of ram used up. I checked my X logs and I don't tihnk I found anything abnormal, so what could be causing so much ram usage?
 
Old 03-01-2007, 03:38 AM   #2
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
Have you run "top" and "free" to check memory usage?
 
Old 03-01-2007, 11:20 AM   #3
gearoid_murphy
Member
 
Registered: Mar 2006
Location: Ireland
Distribution: Debian Etch
Posts: 72

Rep: Reputation: 18
hey man, 3 gigs of ram for X is out of it, there must be a memory leak somewhere for this kind of behavior to occur. Are you using some sort a weird, memory intensive X app?. Are you using an old version of X?, I just can't see how X would be using more than 100megs max
 
Old 03-01-2007, 04:46 PM   #4
timothyb89
Member
 
Registered: Jul 2006
Location: Colorado, USA
Distribution: openSuSE 11.4
Posts: 118

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by gearoid_murphy
hey man, 3 gigs of ram for X is out of it, there must be a memory leak somewhere for this kind of behavior to occur. Are you using some sort a weird, memory intensive X app?. Are you using an old version of X?, I just can't see how X would be using more than 100megs max
Nope, I'm using the one that came with openSuSE 10.2.

At this point X is taking up... 700 MBs of RAM after a reboot.

As for memory intensive apps, I'm just running KDE and I've never had a problem like this before. Just a few Konqueror windows and NetBeans apart from that. Closing everything doesn't help either.

I'm pretty sure that it'sa memory leak, but how do you deal with those? I *was* able to get 8 day uptimes and only maybe 200 MBs of RAM used my X maybe a week ago...


I might as well use Xgl... it takes up less RAM...


And by the way, this is my "X -version" output...
Code:
This is a pre-release version of the X server from The X.Org Foundation.
It is not supported in any way.
Bugs may be filed in the bugzilla at http://bugs.freedesktop.org/.
Select the "xorg" product for bugs you find in this release.
Before reporting bugs in pre-release versions please check the
latest version in the X.Org Foundation git repository.
See http://wiki.x.org/wiki/GitPage for git access instructions.

X Window System Version 7.1.99.902 (7.2.0 RC 2)
Release Date: 13 November 2006
X Protocol Version 11, Revision 0, Release 7.1.99.902
Build Operating System: openSUSE SUSE LINUX
Current Operating System: Linux linux-9rw0 2.6.18.2-34-default #1 SMP Mon Nov 27 11:46:27 UTC 2006 i686
Build Date: 09 January 2007
        Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.
Module Loader present

Last edited by timothyb89; 03-01-2007 at 04:55 PM.
 
Old 03-06-2007, 09:40 AM   #5
gearoid_murphy
Member
 
Registered: Mar 2006
Location: Ireland
Distribution: Debian Etch
Posts: 72

Rep: Reputation: 18
here is something similar to what you describe : http://www.debianhelp.org/node/4710
 
Old 04-15-2010, 07:27 AM   #6
ert45
LQ Newbie
 
Registered: Apr 2010
Posts: 4

Rep: Reputation: 0
Hello,

The solution proposed in https://bugs.launchpad.net/ubuntu/+s...er/+bug/186354 worked for me: disable xinerama.

On ubuntu 9.04 (using an Intel GMA chipset), I added this at the bottom of my /etc/X11/xorg.conf file and then had no more problem after restarting the X server:

Section "Serverflags"
Option "Xinerama" "false"
Endsection
 
0 members found this post helpful.
Old 04-16-2010, 01:18 PM   #7
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 234Reputation: 234Reputation: 234
timothyb89,
Quote:
Originally Posted by reddazz View Post
Have you run "top" and "free" to check memory usage?
Good advice, did you take it?
 
Old 04-17-2010, 06:26 PM   #8
timothyb89
Member
 
Registered: Jul 2006
Location: Colorado, USA
Distribution: openSuSE 11.4
Posts: 118

Original Poster
Rep: Reputation: 15
Given that this was 3 years ago, I think the problem has been long since been fixed :P
But... I had to get that 3 GB statistic from somewhere, right? Probably from ksysguard or top, but whatever. I think the problem had something to do with a bad video driver on my old memory card.
 
Old 04-18-2010, 02:58 AM   #9
ert45
LQ Newbie
 
Registered: Apr 2010
Posts: 4

Rep: Reputation: 0
Well I had the problem currently, with a recent Linux release and it really was a nuisance. As I have a big swap space, the leaked memory just accumulated there but the machine became slower and less reactive, which was actually the side effect that made me go searching for a solution. I found quite a lot of pages about Xorg memory leaking and obviously most common drivers were poised so the problem would no per se be due to the drivers themselves. Now Xinerama is disabled on my system, the used swap space no more swells continuously, neither the memory reportedly used by the X server. Closing all apps now always brings the used memory down to just a tad more than the memory usage after startup. Hey, not having to reboot is what makes the first difference between Windows and Linux. Well actually I did not reboot, I just logged out and back in to restart the X server. But anyway.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
RAM: Does linux require as much ram as Windows XP? hanzj Linux - Newbie 48 04-18-2007 12:14 AM
256 ram shows as 183284 total ram phreakshew Linux - Hardware 6 08-21-2006 02:37 PM
recent dist-upgrade of xorg has killed my mouse (and thusly, xorg). Lokathor Debian 4 06-10-2006 04:52 AM
Win98SE Pentium166MMX/64MB RAM vs Linux AthlonXP+ 3000/512MB RAM : Lucent LT WinModem t3gah Linux - Software 2 04-22-2005 01:01 PM
replace 'xfree86' by 'xorg' in your xorg config file dindoung Linux - Newbie 2 02-26-2005 04:43 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:52 PM.

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