Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
xorg 7.2 memory leak [Solved]
View unanswered posts
View posts from last 24 hours

Goto page 1, 2, 3, 4, 5  Next  
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
slithy
Guru
Guru


Joined: 26 Nov 2005
Posts: 321
Location: Kansas

PostPosted: Mon Feb 05, 2007 4:54 pm    Post subject: xorg 7.2 memory leak [Solved] Reply with quote

Ok, so xorg is really enjoying the ram on my system. I have been having to restart X after one to two days of running because it gets up to 150MB to 200MB of ram. I'm using xorg-7.2 with KDE 3.5.6.

top shows X currently using 18.75% of my memory which is 187MB.
htop shows X using 8.3% of my memory (83MB).
xrestop only shows 43MB of resources used by X.

X memory usage went from 150MB to 175MB overnight...ie computer just sitting there, with a couple of programs that I run 24/7.

I didn't have this problem when I was on xorg-7.1.1 and I didn't notice it after switching to 7.2, but within a week or so. What gives?


Last edited by slithy on Fri Mar 30, 2007 9:45 pm; edited 3 times in total
Back to top
View user's profile Send private message
bcore
n00b
n00b


Joined: 09 Apr 2003
Posts: 59
Location: Toronto

PostPosted: Tue Feb 06, 2007 1:01 am    Post subject: Reply with quote

I definitely agree that this problem exists since upgrading to xorg 7.2... After running for about 2 days, top reports:

Code:

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
26468 root      15   0  660m 375m 6760 S    2 18.7  48:27.33 X


Restarting my KDE session doesn't help, but Ctrl-shift-bksp does.
_________________
MR DOWNY: BISCUIT BRAAAAAAAAAAA
YUO: LOL!!!!!
Back to top
View user's profile Send private message
slithy
Guru
Guru


Joined: 26 Nov 2005
Posts: 321
Location: Kansas

PostPosted: Tue Feb 06, 2007 3:09 am    Post subject: Reply with quote

Yeah logging out did no good for me either. I did "/etc/init.d/xdm restart" instead.

My brother has also confirmed that X on his box is using up ~125MB and has been up since this morning. So there is definitely something going on here.
Back to top
View user's profile Send private message
vinz
Tux's lil' helper
Tux's lil' helper


Joined: 11 Aug 2002
Posts: 93
Location: Switzerland

PostPosted: Tue Feb 06, 2007 12:17 pm    Post subject: Reply with quote

i have the same problem, but with xorg-server 1.1.1-r1 (included by xorg-x11 7.1)

Code:

F   UID   PID  PPID PRI  NI    VSZ   RSS WCHAN  STAT TTY        TIME COMMAND
4     0  6137  6134  15   0 1053916 819788 -    SLs+ tty7      65:08 /usr/bin/X :0 -audit 0 -auth /var/gdm/:0.Xauth vt7

it's using 800mb 8O 8O 8O
Back to top
View user's profile Send private message
slithy
Guru
Guru


Joined: 26 Nov 2005
Posts: 321
Location: Kansas

PostPosted: Wed Feb 07, 2007 6:32 pm    Post subject: Reply with quote

BUMP!

After using X for 24hrs, memory was up to 200MB. Guess I'll be doing daily restarts of the X server. Anyone know what the culprit might be?
Back to top
View user's profile Send private message
BorgDrone2
Tux's lil' helper
Tux's lil' helper


Joined: 24 Oct 2006
Posts: 107

PostPosted: Sat Feb 10, 2007 3:50 am    Post subject: Reply with quote

maybe freetype? It recently got bumped (in ~x86 at least). If you look at the freetype change logs (not the portage change logs) you'll see that various memory leaks were fixed
Back to top
View user's profile Send private message
slithy
Guru
Guru


Joined: 26 Nov 2005
Posts: 321
Location: Kansas

PostPosted: Sat Feb 10, 2007 5:55 am    Post subject: Reply with quote

I just upgraded freetype from 2.1.10-r2 to 2.3.1. I'll report back after watching the memory usage for a bit.
Back to top
View user's profile Send private message
BorgDrone2
Tux's lil' helper
Tux's lil' helper


Joined: 24 Oct 2006
Posts: 107

PostPosted: Sat Feb 10, 2007 3:54 pm    Post subject: Reply with quote

upgrade fontconfig as well. The old version doesn't work properly with the newer freetype
Back to top
View user's profile Send private message
madcat87
Tux's lil' helper
Tux's lil' helper


Joined: 11 Aug 2005
Posts: 120

PostPosted: Sat Feb 10, 2007 11:14 pm    Post subject: Reply with quote

I upgraded to the newest freetype and now my fonts are all distorted and blury.And in the font section in Control Center the check box for anti-alising has three positions.Anybody have any idea what the problem is?


EDIT:Sorry I posted this in the wrong topic By Mistake. :(
Back to top
View user's profile Send private message
bunder
Bodhisattva
Bodhisattva


Joined: 10 Apr 2004
Posts: 5213

PostPosted: Sun Feb 11, 2007 12:21 am    Post subject: Reply with quote

i've always always had this problem... even back in the xfree days.
_________________
goodbye fgo. it was nice knowing you.
Back to top
View user's profile Send private message
slithy
Guru
Guru


Joined: 26 Nov 2005
Posts: 321
Location: Kansas

PostPosted: Sun Feb 11, 2007 1:12 am    Post subject: Reply with quote

First off, upgrading freetype and fontconfig to their newest versions (2.3.1 and 2.4.2) and then restarting the X server has seemed to fix the memory leak. My X memory usage is now at a reasonable level.

When I upgraded my freetype, my fonts also became really blurry. I am running KDE-3.5.6 and the anti-aliasing settings just needed to be set again.

Under kcontrol -> Fonts, I have "Use anti-aliasing for fonts" check and under the Configure button, I have hinting style set to full and no other options set. Now I have fonts that look just like they did before the freetype upgrade.

I'm going to go ahead and mark this thread as solved unless this isn't working for anyone else.
Back to top
View user's profile Send private message
madisonicus
Veteran
Veteran


Joined: 20 Sep 2006
Posts: 1130

PostPosted: Sun Feb 11, 2007 1:43 am    Post subject: Reply with quote

Glad to see this fixed. I might try Xorg 7.2 out myself now.

For the font issues, this thead might be some help. I guess there are major differences between the 2.3.x version and previous ones.

-m
_________________
Please add [SOLVED] to your message title if you feel that your question has been answered.
------
Intel Q9300 Core2 Quad * Gigabyte GA-EP35C-DS3R
Samsung x360
AMD64 x2 4200+ * TF7050-M2 * HTPC
ZOTAC ION A-U Mini-ITX * HTPC
Back to top
View user's profile Send private message
Phenax
l33t
l33t


Joined: 10 Mar 2006
Posts: 972

PostPosted: Sun Feb 11, 2007 2:01 am    Post subject: Reply with quote

Freetype did have a memory leak. You'll be interested to read this blog post by Flameeyes regarding the issue(s) of Freetype..
http://farragut.flameeyes.is-a-geek.org/articles/2007/02/08/freetype-needed-love-i-gave-it-to-it
Back to top
View user's profile Send private message
devsk
Advocate
Advocate


Joined: 24 Oct 2003
Posts: 2739
Location: Bay Area, CA

PostPosted: Sun Feb 11, 2007 1:51 pm    Post subject: Reply with quote

slithy wrote:
First off, upgrading freetype and fontconfig to their newest versions (2.3.1 and 2.4.2) and then restarting the X server has seemed to fix the memory leak. My X memory usage is now at a reasonable level.
is that really true after some time has passed? because I am seeing X now using amount of memory it never used before 7.2. And its growing.
slithy wrote:

I'm going to go ahead and mark this thread as solved unless this isn't working for anyone else.
I don't think its solved.
Back to top
View user's profile Send private message
slithy
Guru
Guru


Joined: 26 Nov 2005
Posts: 321
Location: Kansas

PostPosted: Sun Feb 11, 2007 5:50 pm    Post subject: Reply with quote

So it seems like I spoke too soon. For the 4 or 5 hours that I let X run, the memory wasn't growing, but then it started to grow an hour or so after that. It gain another 40MB over night :(.
Back to top
View user's profile Send private message
Phenax
l33t
l33t


Joined: 10 Mar 2006
Posts: 972

PostPosted: Sun Feb 11, 2007 7:41 pm    Post subject: Reply with quote

May I recommend running
Code:
dev-util/valgrind
on the suspected memory leaker?
Back to top
View user's profile Send private message
devsk
Advocate
Advocate


Joined: 24 Oct 2003
Posts: 2739
Location: Bay Area, CA

PostPosted: Sun Feb 11, 2007 8:03 pm    Post subject: Reply with quote

Phenax wrote:
May I recommend running
Code:
dev-util/valgrind
on the suspected memory leaker?
would X even run under valgrind? I think it will be just too slow to have any use. And typically the current X leak (X using like 500MB of RAM) is seen after 5-6 hours of usage.
Back to top
View user's profile Send private message
slithy
Guru
Guru


Joined: 26 Nov 2005
Posts: 321
Location: Kansas

PostPosted: Sun Feb 11, 2007 8:08 pm    Post subject: Reply with quote

devsk wrote:
Phenax wrote:
May I recommend running
Code:
dev-util/valgrind
on the suspected memory leaker?
would X even run under valgrind? I think it will be just too slow to have any use. And typically the current X leak (X using like 500MB of RAM) is seen after 5-6 hours of usage.


Infact it does...I just did a "valgrind startx" and it doesn't feel any different to me. I'll let it run for a while and see what valgrind reports.
Back to top
View user's profile Send private message
BorgDrone2
Tux's lil' helper
Tux's lil' helper


Joined: 24 Oct 2006
Posts: 107

PostPosted: Sun Feb 11, 2007 8:11 pm    Post subject: Reply with quote

Ubuntu forms are buzzing about this as well. One post suggest it may be related to AIGLX

Quote:
It appears to be associated with AIGLX (which, as I understand it, is compiled with X.org as of Edgy). When I use a normal X session sans AIGLX with Gnome, the memory consumption seems pretty normal.

Still high for X though. Is this a bug that's been reported?
Back to top
View user's profile Send private message
devsk
Advocate
Advocate


Joined: 24 Oct 2003
Posts: 2739
Location: Bay Area, CA

PostPosted: Sun Feb 11, 2007 8:19 pm    Post subject: Reply with quote

BorgDrone2 wrote:
Ubuntu forms are buzzing about this as well. One post suggest it may be related to AIGLX

Quote:
It appears to be associated with AIGLX (which, as I understand it, is compiled with X.org as of Edgy). When I use a normal X session sans AIGLX with Gnome, the memory consumption seems pretty normal.

Still high for X though. Is this a bug that's been reported?
how do you run a "normal X session"? Does option AIGLX has to be set to 'FALSE' for that?

aiglx patch now is part of 7.2, so it is possible. But that codepath was enabled with
Code:
Option         "AIGLX" "true"
in ServerLayout section fo xorg.conf . And its not set on my box.
Back to top
View user's profile Send private message
slithy
Guru
Guru


Joined: 26 Nov 2005
Posts: 321
Location: Kansas

PostPosted: Sun Feb 11, 2007 9:51 pm    Post subject: Reply with quote

BorgDrone2 wrote:
Ubuntu forms are buzzing about this as well. One post suggest it may be related to AIGLX

Quote:
It appears to be associated with AIGLX (which, as I understand it, is compiled with X.org as of Edgy). When I use a normal X session sans AIGLX with Gnome, the memory consumption seems pretty normal.

Still high for X though. Is this a bug that's been reported?


No version of Ubuntu is running 7.2. I am running Feisty on my laptop and it is still using 7.1.1.
Back to top
View user's profile Send private message
slithy
Guru
Guru


Joined: 26 Nov 2005
Posts: 321
Location: Kansas

PostPosted: Mon Feb 12, 2007 4:32 am    Post subject: Reply with quote

So after letting X nibble on my memory till it was over 100MB, I shut down the X server and took a look at the valgrind output, which didn't show any leaks. I'm no expert with valgrind, so if someone else know how to spot the leaks better, jump on it.
Back to top
View user's profile Send private message
devsk
Advocate
Advocate


Joined: 24 Oct 2003
Posts: 2739
Location: Bay Area, CA

PostPosted: Thu Feb 15, 2007 4:26 pm    Post subject: Reply with quote

has anybody found a fix yet? my X usage currently:
Code:

PID   USER     PR  NI  VIRT   RES  SHR S %CPU %MEM    TIME+  COMMAND
14568 root     16  0  1061m  471m  12m S    2  23.5  38:32.12 X
Back to top
View user's profile Send private message
slithy
Guru
Guru


Joined: 26 Nov 2005
Posts: 321
Location: Kansas

PostPosted: Thu Feb 15, 2007 8:18 pm    Post subject: Reply with quote

devsk wrote:
has anybody found a fix yet?


I've downgraded to xorg-server-1.1.1-r4 as a temporary solution.
Back to top
View user's profile Send private message
devsk
Advocate
Advocate


Joined: 24 Oct 2003
Posts: 2739
Location: Bay Area, CA

PostPosted: Thu Feb 15, 2007 8:33 pm    Post subject: Reply with quote

is there anybody here who has seen the problem and not using nvidia card? I have another machine with integrated i945 card, which doesn't show this problem with xorg-server 1.2:
Code:
2718 root      15   0  507m  49m   9m S    1  2.4   4:25.32 X
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Goto page 1, 2, 3, 4, 5  Next
Page 1 of 5

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum