Page 2 of 4 FirstFirst 1234 LastLast
Results 11 to 20 of 38

Thread: AMD fglrx 8.42.3 leaking gobs of memory in OpenGL apps - any known workaround ?

  1. #11
    Join Date
    Mar 2007
    Location
    MN, United States
    Posts
    285

    Default

    Quote Originally Posted by Snake View Post
    Hey, good eyes

    I simply did a quick test running glxgears under valgrind (via "$ valgrind --tool=memcheck --leak-check=yes glxgears"). After only 4 glxgears "iterations" (the poor FPS are because of running under valgrind, of course) valgrind gave up for more than 10000000 detected errors and told me to "Go fix your program!"

    The result is posted in the following comment (due to size constraints here). I omitted the startup output, and all those nearly identical "Invalid write of size 1"-Reports but the last one.

    [Edit] This is on Lenovo Z61m / 2 GiB RAM / ATI X1400 / Gentoo AMD64 / Kernel 2.6.22 / GLIBC 2.7 / X.Org xserver 1.3 / fglrx 8.42.3
    Suddenly, my hope in 8.43 just dropped like a rock.

  2. #12
    Join Date
    Sep 2007
    Location
    Germany
    Posts
    39

    Default

    Quote Originally Posted by Malikith View Post
    Suddenly, my hope in 8.43 just dropped like a rock.
    Don't get me wrong, I did not post this result to make anyone look bad, nor to demonstrate how "horrible" 8.42 is and that's about time to give up hope

    It may well be the result of a single forgotten "free()" call, that simply gets multiplied with every frame (and as FPS drastically improved, so did the effect ).

    We're on linux, where a bug is no "embarrassing taboo", but something that happens all the time (me being the exception, of course ). This is our operating system, so we are also resposible to improve it by helping tracking down and fixing those bugs. Perhaps AMD/ATI may even integrate a quick valgrind run into their QA procdures in future.

    Let's help the devs, not bash them! It's a win-win, after all.

  3. #13
    Join Date
    Mar 2007
    Location
    MN, United States
    Posts
    285

    Default

    Quote Originally Posted by Snake View Post
    Don't get me wrong, I did not post this result to make anyone look bad, nor to demonstrate how "horrible" 8.42 is and that's about time to give up hope

    It may well be the result of a single forgotten "free()" call, that simply gets multiplied with every frame (and as FPS drastically improved, so did the effect ).

    We're on linux, where a bug is no "embarrassing taboo", but something that happens all the time (me being the exception, of course ). This is our operating system, so we are also resposible to improve it by helping tracking down and fixing those bugs. Perhaps AMD/ATI may even integrate a quick valgrind run into their QA procdures in future.

    Let's help the devs, not bash them! It's a win-win, after all.
    Yeah I know, I never said that this doesn't happen. But its just one of many many problems with the driver. Hopefully that memory leak is not too difficult to fix. I guess I just expect a little more from a company that well, should had started working harder on Linux a long time ago.

    I can't even begin on how many bugs there are. I've done my share of bug reporting but it seems the list grows faster and faster with every driver release hehe.

  4. #14
    Join Date
    Aug 2007
    Location
    Norway
    Posts
    146

    Default Re: We're on linux, where a bug is no "embarrassing taboo" ...

    Quote Originally Posted by Snake View Post
    <snip>

    We're on linux, where a bug is no "embarrassing taboo", but something that happens all the time (me being the exception, of course ). This is our operating system, so we are also resposible to improve it by helping tracking down and fixing those bugs. Perhaps AMD/ATI may even integrate a quick valgrind run into their QA procdures in future.

    Let's help the devs, not bash them! It's a win-win, after all.
    I agree with you on this. And I'd certainly be willing to help in any way possible, but the one-way communication eventually gets really old.

    I've reported a few bugs on http://ati.cchtml.com/, and find that I'm actually only talking to myself. I've always stated that I'm willing to help in further debugging, in the reports. There is no response, and all the bugs are still marked NEW, even though I've reported them a long time ago. So I stopped going there, because it feels utterly pointless. I just can't take that bugzilla seriously anymore.

    I've also reported most of the stuff to AMD's customer feedback on the driver. But I have no idea if my reports are actually being looked at.

    Then there's the Phoronix forums, but I don't know if any AMD devs are present and looking around.

  5. #15
    Join Date
    Sep 2007
    Location
    Germany
    Posts
    39

    Default

    Quote Originally Posted by oyvind View Post
    I agree with you on this. And I'd certainly be willing to help in any way possible, but the one-way communication eventually gets really old.

    I've reported a few bugs on http://ati.cchtml.com/, and find that I'm actually only talking to myself. <--snip-->
    Same for me

    The sad thing is that on this forum alone there are already lots of people that put their energy and knowledge into testing, trying to figure and report what exactly is going wrong and helping others. But without a "living" bug tracker all those efforts remain scattered pieces floating around, being discussed over and over again in variations without anyone being able to really catch all available info for the bug at hand.

    I wonder if AMD/ATI could be convinced to actively use http://ati.cchtml.com/ (possibly even indirectly via a "trusted" mediator). They would gain a lot from detailed and focused bug reports, and for us there was a central place for documenting issues and known workarounds. But this requires that no one gets the feeling like throwing everyting into a "black hole of no return"

    I'm not sure whether this "AMD/ATI public bug tracker"-thing was already "officially" discussed here before. But even if it was, AMD/ATIs attitude towards the community recently changed quite a bit, so perhaps it should be done now, anyway.

    Michael, are you listening? Any ideas on how we could improve this situation?

  6. #16
    Join Date
    Aug 2007
    Posts
    26

    Default

    I've run glxgears and fgl_fglxgears, but I haven't noticed any memory leaks. I haven't done any extensive checks, but I've been running it for a few minutes and I haven't noticed any change in memory usage in ksysguard.
    Thinkpad T60p, FireGL V5200

  7. #17
    Join Date
    May 2007
    Location
    Up North, Where 10 degrees is shorts weather
    Posts
    80

    Default

    I'm looking at whats happening on my system and I'm noting that the worst memory leak noted by valgrind is actually in libGL ... and apparently it occurs in both the libGL built by X and in libGL built by the ati install, but *only* when using the fglrx driver.

    Overall at this moment I'm stumped as to where to go next. I've dumped my ati-drivers, and xorg installation and rebuilt from the ground up once already to see if I could eliminate the issue -- but it was NOT successful -- if anything I've ended up with a faster memory leak.

  8. #18
    Join Date
    Sep 2006
    Location
    PL
    Posts
    908

    Default

    8.42 - "brown paperbag edition" (maybe we should buy some for fglrx devs - they're going to need them badly ;-) )

    man, that's one hell of a leak. how did it get unnoticed?

  9. #19
    Join Date
    May 2007
    Location
    Up North, Where 10 degrees is shorts weather
    Posts
    80

    Default

    Now for the killer laugh of the week.

    I ***have not touched my configurations one iota since the previous tests ........


    What I DID do was power down the box and put my good old trusty 9550Pro 256M card back in the box, boot, start up , and run both glxgears and fgl_fglrxgears



    Either there is *no* memory leak with this card, or the rate at which it leaks memory is ****substantially*** lower.....

  10. #20
    Join Date
    Jun 2006
    Posts
    3,046

    Default

    Quote Originally Posted by yoshi314 View Post
    8.42 - "brown paperbag edition" (maybe we should buy some for fglrx devs - they're going to need them badly ;-) )

    man, that's one hell of a leak. how did it get unnoticed?
    Because they don't Valgrind or Oprofile things and the QA people probably didn't test against the cards that seem to have the serious leak issue.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •