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 Previous  1, 2, 3, 4, 5  Next  
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
VoVaN
l33t
l33t


Joined: 02 Jul 2003
Posts: 640
Location: The Netherlands

PostPosted: Sun Mar 04, 2007 10:00 pm    Post subject: Reply with quote

shakti wrote:
i seem to have this mem leak even when just sitting there at the login screen, nothing but kdm running


I have exactly the same thoughts, so I think it's qt related... Recently I noticed that the latest version of qr (3.3.8), according the changelog ( http://www.trolltech.com/developer/notes/changes/changes-3.3.8), fixed some memory leaks. Would be nice to hear some responces of gnome/gtk users.
Back to top
View user's profile Send private message
johoe
Tux's lil' helper
Tux's lil' helper


Joined: 21 Jun 2005
Posts: 92

PostPosted: Sun Mar 04, 2007 10:32 pm    Post subject: Reply with quote

I am using gnome - and I am not quite sure if I have this memory leak or not. X sometimes is using up to 300 MB here, posted earlier about my experiences, with no really conclusion.
Machine is up now for 2 days with X having a memory load of ~60MB. To me X memory usage increases in jumps of 20MB discontinuously when Amarok is running. There is really no hint how or why this happens.

My careful statement for the moment: It seems that the memory usage is growing slower, without having any kde apps running. Memory usage is NOT growing, when logged in in gnome browsing the web with firefox or reading mails with thunderbird. I've beryl-svn running too.
I'll keep my machine running like this till tomorrow morning and then start using kde programms.
I'll have an eye on this and keep you informed.

johoe
Back to top
View user's profile Send private message
PaulSorensen
Tux's lil' helper
Tux's lil' helper


Joined: 15 Apr 2004
Posts: 80
Location: Chicago, USA

PostPosted: Mon Mar 05, 2007 3:03 pm    Post subject: Reply with quote

PaulSorensen wrote:
Confirmed.

I stopped superkaramba and X has been at about 7.5% of memory for 2 days.

Now - is this a bug in superkaramba or in X? Others in this thread have said that the problem goes away with earlier versions of X.


Sorry but I spoke too soon...X is now growing much more slowly on my box, but it is still growing.
Back to top
View user's profile Send private message
devsk
Advocate
Advocate


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

PostPosted: Tue Mar 06, 2007 4:41 pm    Post subject: Reply with quote

I am just wondering if upgrade to qt-3.3.8 has solved the problem with the memory leak. Can anyone confirm? I can't upgrade to 3.3.8 because mythtv starts to segv if I do that for some strange reason.
Back to top
View user's profile Send private message
shakti
Guru
Guru


Joined: 15 May 2002
Posts: 358
Location: omnipresent

PostPosted: Tue Mar 06, 2007 6:40 pm    Post subject: Reply with quote

devsk wrote:
I am just wondering if upgrade to qt-3.3.8 has solved the problem with the memory leak. Can anyone confirm? I can't upgrade to 3.3.8 because mythtv starts to segv if I do that for some strange reason.


nope, somehow it seems worse with 3.3.8
_________________
Using Gentoo since 2002.
Back to top
View user's profile Send private message
ttuegel
Apprentice
Apprentice


Joined: 18 Jan 2005
Posts: 176
Location: Illinois, USA

PostPosted: Wed Mar 07, 2007 2:05 am    Post subject: Reply with quote

I'm not entirely convinced it's solely the fault of Qt. I have been noticing symptoms of this on my machine (though the leak is slow). I tried running in dwm for a few days, but there were a few Qt apps I couldn't live without. I didn't notice any leakage, though my testing is by no means definitive.
Back to top
View user's profile Send private message
Bluekkis
n00b
n00b


Joined: 09 Oct 2004
Posts: 33

PostPosted: Wed Mar 07, 2007 6:57 am    Post subject: Reply with quote

I'm having bad memory leakage problems with X too and I don't even have qt isntalled (using xfce/gtk). It might be composite extension related as I don't have the same problem on my laptop and leaking rate seems to increase when I have transparent windows open. Haven't had time to test that theory yet though.
_________________
[Gentoo 64b][ASRock ALIVENF7G-HDReady][AMD Athlon64 X2 2,5GHz@1,35V][Corsair XMS2 2x 1GB@800MHz][WD Raptor 150GB][Samsung T166 500GB]
[Ubuntu LTS][VIA EPIA EN-1200EG][VIA Eden C7 1,2GHz][Kingston 1GB@533MHz][4x Samsung T166 500GB]


Last edited by Bluekkis on Wed Mar 07, 2007 9:03 pm; edited 1 time in total
Back to top
View user's profile Send private message
VoVaN
l33t
l33t


Joined: 02 Jul 2003
Posts: 640
Location: The Netherlands

PostPosted: Wed Mar 07, 2007 8:11 am    Post subject: Reply with quote

Bluekkis wrote:
I'm having bad memory leakage problems with X too and I don't even have qt isntalled (using xfce/kde). It might be composite extension related as I don't have the same problem on my laptop and leaking rate seems to increase when I have transparent windows open. Haven't had time to test that theory yet though.


You do have qt installed, simply because kde is using it...
Back to top
View user's profile Send private message
Bluekkis
n00b
n00b


Joined: 09 Oct 2004
Posts: 33

PostPosted: Wed Mar 07, 2007 9:03 pm    Post subject: Reply with quote

err... remind me to not write a thing when I'm tired... meant gtk, fixed =)
_________________
[Gentoo 64b][ASRock ALIVENF7G-HDReady][AMD Athlon64 X2 2,5GHz@1,35V][Corsair XMS2 2x 1GB@800MHz][WD Raptor 150GB][Samsung T166 500GB]
[Ubuntu LTS][VIA EPIA EN-1200EG][VIA Eden C7 1,2GHz][Kingston 1GB@533MHz][4x Samsung T166 500GB]
Back to top
View user's profile Send private message
shakti
Guru
Guru


Joined: 15 May 2002
Posts: 358
Location: omnipresent

PostPosted: Fri Mar 09, 2007 10:34 pm    Post subject: Reply with quote

argh, really could do with a fix. tried downgrading xorg-server but could not get input modules to load....
_________________
Using Gentoo since 2002.
Back to top
View user's profile Send private message
shakti
Guru
Guru


Joined: 15 May 2002
Posts: 358
Location: omnipresent

PostPosted: Fri Mar 09, 2007 11:03 pm    Post subject: Reply with quote

ok, running fluxbox with qt apps works fine, mem is stable. so it seems like a kde issue?
_________________
Using Gentoo since 2002.
Back to top
View user's profile Send private message
AaronP
n00b
n00b


Joined: 10 Sep 2004
Posts: 19

PostPosted: Sat Mar 10, 2007 2:35 am    Post subject: Reply with quote

I can get runaway memory usage in xorg-server 1.2.0 with a simple program that just connects and disconnects from the server as quickly as possible. With an X server built from git master, it's fine.
Code:
#include <stdio.h>
#include <X11/Xlib.h>

int main(int argc, char *argv[])
{
    Display *dpy;
    int i = 0;

    while(1) {
        dpy = XOpenDisplay(NULL);
        if(!dpy) {
            fprintf(stderr, "Failed to open display\n");
            return 1;
        }

        XCloseDisplay(dpy);

        i++;
        printf("%3i\r", i);
        fflush(stdout);
    }

    return 0;
}

Compile with gcc -g -o connectloop connectloop.c -lX11
Back to top
View user's profile Send private message
devsk
Advocate
Advocate


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

PostPosted: Sat Mar 10, 2007 2:42 am    Post subject: Reply with quote

AaronP wrote:
I can get runaway memory usage in xorg-server 1.2.0 with a simple program that just connects and disconnects from the server as quickly as possible. With an X server built from git master, it's fine.
wonderful! doesn't leak with 1.1.1-r4. So, clearly a regression in xorg-server-1.2.0. We just need to wait for 1.2.1 I guess.

edit:
@AaronP: is it possible for you to update the bug with the test case at https://bugs.freedesktop.org/show_bug.cgi?id=10009
Back to top
View user's profile Send private message
ttuegel
Apprentice
Apprentice


Joined: 18 Jan 2005
Posts: 176
Location: Illinois, USA

PostPosted: Sat Mar 10, 2007 7:04 pm    Post subject: Reply with quote

shakti wrote:
ok, running fluxbox with qt apps works fine, mem is stable. so it seems like a kde issue?

Definitely not a KDE issue (if only it were that simple). How long have you left it running? As I posted above, I have the same problem running dwm for long periods of time. Right now, all indications seem to be a bug in xorg-server-1.2.0, although I'm unfortunately away from my linux box and unable to test myself.
Back to top
View user's profile Send private message
DownSet
n00b
n00b


Joined: 21 Jan 2006
Posts: 32
Location: Riverside, CA

PostPosted: Sat Mar 10, 2007 9:44 pm    Post subject: Reply with quote

With xorg-server-1.2.99.901 plenty of apps running and a few hours of idle time.
Code:
PID  USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME   COMMAND
5946 root      15   0 57700  43m 9672 R    7  2.2   8:14.01 X
Back to top
View user's profile Send private message
krtek.net
n00b
n00b


Joined: 25 Mar 2005
Posts: 5

PostPosted: Mon Mar 12, 2007 6:59 pm    Post subject: Reply with quote

This is patched ebuild for xorg-server-1.2.0-r1 with commit 811675733e97416c990e6dc9c19271b43d96248d from freedesktop. Seems to fix the leak for me...

http://sklad.krtek.net/xorg-server.tar.gz

Unpack to portage, digest, emerge :)[/url]
Back to top
View user's profile Send private message
bcore
n00b
n00b


Joined: 09 Apr 2003
Posts: 59
Location: Toronto

PostPosted: Mon Mar 12, 2007 11:06 pm    Post subject: Reply with quote

The bug posted shows a potential fix to this issue... anyone wanna try the provided ebuild? (I need my computer for work this evening too much to risk it just now)
_________________
MR DOWNY: BISCUIT BRAAAAAAAAAAA
YUO: LOL!!!!!
Back to top
View user's profile Send private message
VoVaN
l33t
l33t


Joined: 02 Jul 2003
Posts: 640
Location: The Netherlands

PostPosted: Tue Mar 13, 2007 6:18 am    Post subject: Reply with quote

I installed xorg-server with the patch posted by krtek.net. So far the problem seems to be fixed :))
Back to top
View user's profile Send private message
devsk
Advocate
Advocate


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

PostPosted: Tue Mar 13, 2007 7:07 am    Post subject: Reply with quote

looking at the patch and comparing the current file with 1.1.1-r4 version, it looks like someone messed up a very simple code removal process.

anyhow, the bug is gone with the patch!
Back to top
View user's profile Send private message
robbat2
Developer
Developer


Joined: 19 Feb 2003
Posts: 67

PostPosted: Fri Mar 16, 2007 3:10 am    Post subject: Reply with quote

has anybody filed a Gentoo bug on this?
Back to top
View user's profile Send private message
devsk
Advocate
Advocate


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

PostPosted: Fri Mar 16, 2007 3:24 am    Post subject: Reply with quote

bug was filed upstream, and should be dealt with upstream. I don't think anybody filed a gentoo bug. Probably we should and get a 1.2.0-r2 out because upstream is going for 1.3 instead of interim patches for leaks like this one.
Back to top
View user's profile Send private message
slithy
Guru
Guru


Joined: 26 Nov 2005
Posts: 321
Location: Kansas

PostPosted: Fri Mar 16, 2007 3:33 am    Post subject: Reply with quote

I filed a bug here, http://bugs.gentoo.org/show_bug.cgi?id=166109. I thought it was lurking somewhere in these 4 pages?
Back to top
View user's profile Send private message
krtek.net
n00b
n00b


Joined: 25 Mar 2005
Posts: 5

PostPosted: Sat Mar 17, 2007 10:21 am    Post subject: Reply with quote

Patched ebuild just hit the portage :)
Back to top
View user's profile Send private message
jcat
Veteran
Veteran


Joined: 26 May 2006
Posts: 1337

PostPosted: Mon Mar 19, 2007 10:18 am    Post subject: Reply with quote

Yup, compiling now...



Cheers,
jcat
Back to top
View user's profile Send private message
loki_val
Retired Dev
Retired Dev


Joined: 13 Nov 2006
Posts: 388
Location: Denmark

PostPosted: Mon Mar 19, 2007 7:00 pm    Post subject: Reply with quote

I've just posted a couple of backported patches in bug 171396 that solved some issues I was having. Feel free to test them.
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 Previous  1, 2, 3, 4, 5  Next
Page 4 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