All of lore.kernel.org
 help / color / mirror / Atom feed
* [Bug 26708] New: libdrm-intel leaks memory when resizing window
@ 2010-02-22 21:47 bugzilla-daemon
  2010-02-24  7:51 ` [Bug 26708] " bugzilla-daemon
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: bugzilla-daemon @ 2010-02-22 21:47 UTC (permalink / raw)
  To: dri-devel

http://bugs.freedesktop.org/show_bug.cgi?id=26708

           Summary: libdrm-intel leaks memory when resizing window
           Product: DRI
           Version: unspecified
          Platform: Other
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: medium
         Component: libdrm
        AssignedTo: dri-devel@lists.sourceforge.net
        ReportedBy: penma.bfdo@penma.de


At least the DRM/Intel module continues to suck up memory just by resizing the
window. This would be acceptable behaviour if it wouldn't continue to grow on
and on, as it happens for software rendering.

This can not only be reproduced with a (potentially buggy) selfwritten test
program but also with the glxdemo.c program from Mesa.

To reproduce, start the test program and make the window smaller, and larger,
and smaller again quite wildly and often (10-30 seconds or so).

What happens if you start it with LIBGL_ALWAYS_SOFTWARE=1: Memory usage goes up
to about 10M and stays there.

What happens if you start it without that option set (DRM/Intel): Memory usage
continues to grow with every resize operation even when the window size is only
changed around 100x100 +-5px.

Excerpt from Valgrind output (it had lots of those):

 ==11088== 3,244,032 bytes in 99 blocks are still reachable in loss record 331
of 331
 ==11088==    at 0x4C221A7: malloc (vg_replace_malloc.c:195)
 ==11088==    by 0x7B3A822: ??? (in /usr/lib/libdrm_intel.so.1.0.0)
 ==11088==    by 0x74B2344: ??? (in /usr/lib/dri/i965_dri.so)
 ==11088==    by 0x74B41AD: brw_validate_state (in /usr/lib/dri/i965_dri.so)
 ==11088==    by 0x74A6DBD: brw_draw_prims (in /usr/lib/dri/i965_dri.so)
 ==11088==    by 0x75641A4: vbo_exec_vtx_flush (in /usr/lib/dri/i965_dri.so)
 ==11088==    by 0x7560154: vbo_exec_FlushVertices_internal (in
/usr/lib/dri/i965_dri.so)
 ==11088==    by 0x7560221: vbo_exec_FlushVertices (in
/usr/lib/dri/i965_dri.so)
 ==11088==    by 0x74DB15D: _mesa_Flush (in /usr/lib/dri/i965_dri.so)
 ==11088==    by 0x4E4C2B1: glXSwapBuffers (in /usr/lib/libGL.so.1.2)

One test run got 23 MiB of still accessible memory all from libdrm. I don't
think it's used for anything useful, if not because of the size, then because
of the fact the software renderer does not leak.


-- 
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
--

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug 26708] libdrm-intel leaks memory when resizing window
  2010-02-22 21:47 [Bug 26708] New: libdrm-intel leaks memory when resizing window bugzilla-daemon
@ 2010-02-24  7:51 ` bugzilla-daemon
  2010-02-24 14:44 ` bugzilla-daemon
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: bugzilla-daemon @ 2010-02-24  7:51 UTC (permalink / raw)
  To: dri-devel

http://bugs.freedesktop.org/show_bug.cgi?id=26708





--- Comment #1 from Lars S <penma.bfdo@penma.de>  2010-02-23 23:51:32 PST ---
Created an attachment (id=33521)
 --> (http://bugs.freedesktop.org/attachment.cgi?id=33521)
full valgrind output of a test run

For completeness I have attached a more complete Valgrind output file of a test
run with the glxdemo program.


-- 
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
--

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug 26708] libdrm-intel leaks memory when resizing window
  2010-02-22 21:47 [Bug 26708] New: libdrm-intel leaks memory when resizing window bugzilla-daemon
  2010-02-24  7:51 ` [Bug 26708] " bugzilla-daemon
@ 2010-02-24 14:44 ` bugzilla-daemon
  2010-02-24 16:28 ` bugzilla-daemon
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: bugzilla-daemon @ 2010-02-24 14:44 UTC (permalink / raw)
  To: dri-devel

http://bugs.freedesktop.org/show_bug.cgi?id=26708





--- Comment #2 from Sundtek <kontakt@sundtek.de>  2010-02-24 06:44:45 PST ---
We also experience the same bug with Intel, our application works well with
NVidia though.


-- 
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
--

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug 26708] libdrm-intel leaks memory when resizing window
  2010-02-22 21:47 [Bug 26708] New: libdrm-intel leaks memory when resizing window bugzilla-daemon
  2010-02-24  7:51 ` [Bug 26708] " bugzilla-daemon
  2010-02-24 14:44 ` bugzilla-daemon
@ 2010-02-24 16:28 ` bugzilla-daemon
  2010-02-24 16:29 ` bugzilla-daemon
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: bugzilla-daemon @ 2010-02-24 16:28 UTC (permalink / raw)
  To: dri-devel

http://bugs.freedesktop.org/show_bug.cgi?id=26708





--- Comment #3 from Sundtek <kontakt@sundtek.de>  2010-02-24 08:28:48 PST ---
Created an attachment (id=33527)
 --> (http://bugs.freedesktop.org/attachment.cgi?id=33527)
extensive valgrind logfile

The memory leak only happens during the application runtime, when
deinitialization functions are called all the memory is cleaned up and no
memleak occures.
The attached valgrind output shows up all debug symbols.
We ran a sample application (test.c which we will attach right after this post)
and interrupted it with ctrl-c before deinitialization.


-- 
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
--

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug 26708] libdrm-intel leaks memory when resizing window
  2010-02-22 21:47 [Bug 26708] New: libdrm-intel leaks memory when resizing window bugzilla-daemon
                   ` (2 preceding siblings ...)
  2010-02-24 16:28 ` bugzilla-daemon
@ 2010-02-24 16:29 ` bugzilla-daemon
  2010-02-24 16:43 ` bugzilla-daemon
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: bugzilla-daemon @ 2010-02-24 16:29 UTC (permalink / raw)
  To: dri-devel

http://bugs.freedesktop.org/show_bug.cgi?id=26708





--- Comment #4 from Sundtek <kontakt@sundtek.de>  2010-02-24 08:29:17 PST ---
Created an attachment (id=33528)
 --> (http://bugs.freedesktop.org/attachment.cgi?id=33528)
test.c


-- 
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
--

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug 26708] libdrm-intel leaks memory when resizing window
  2010-02-22 21:47 [Bug 26708] New: libdrm-intel leaks memory when resizing window bugzilla-daemon
                   ` (3 preceding siblings ...)
  2010-02-24 16:29 ` bugzilla-daemon
@ 2010-02-24 16:43 ` bugzilla-daemon
  2010-02-24 18:29 ` bugzilla-daemon
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: bugzilla-daemon @ 2010-02-24 16:43 UTC (permalink / raw)
  To: dri-devel

http://bugs.freedesktop.org/show_bug.cgi?id=26708





--- Comment #5 from Sundtek <kontakt@sundtek.de>  2010-02-24 08:43:55 PST ---
Created an attachment (id=33529)
 --> (http://bugs.freedesktop.org/attachment.cgi?id=33529)
valgrind of the application without resizing it


-- 
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
--

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug 26708] libdrm-intel leaks memory when resizing window
  2010-02-22 21:47 [Bug 26708] New: libdrm-intel leaks memory when resizing window bugzilla-daemon
                   ` (4 preceding siblings ...)
  2010-02-24 16:43 ` bugzilla-daemon
@ 2010-02-24 18:29 ` bugzilla-daemon
  2010-02-24 18:30 ` bugzilla-daemon
  2019-09-24 17:08 ` bugzilla-daemon
  7 siblings, 0 replies; 9+ messages in thread
From: bugzilla-daemon @ 2010-02-24 18:29 UTC (permalink / raw)
  To: dri-devel

http://bugs.freedesktop.org/show_bug.cgi?id=26708


Marcin Slusarz <marcin.slusarz@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #33527|text/x-log                  |text/plain
          mime type|                            |




-- 
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
--

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug 26708] libdrm-intel leaks memory when resizing window
  2010-02-22 21:47 [Bug 26708] New: libdrm-intel leaks memory when resizing window bugzilla-daemon
                   ` (5 preceding siblings ...)
  2010-02-24 18:29 ` bugzilla-daemon
@ 2010-02-24 18:30 ` bugzilla-daemon
  2019-09-24 17:08 ` bugzilla-daemon
  7 siblings, 0 replies; 9+ messages in thread
From: bugzilla-daemon @ 2010-02-24 18:30 UTC (permalink / raw)
  To: dri-devel

http://bugs.freedesktop.org/show_bug.cgi?id=26708


Marcin Slusarz <marcin.slusarz@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #33529|text/x-log                  |text/plain
          mime type|                            |




-- 
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
--

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug 26708] libdrm-intel leaks memory when resizing window
  2010-02-22 21:47 [Bug 26708] New: libdrm-intel leaks memory when resizing window bugzilla-daemon
                   ` (6 preceding siblings ...)
  2010-02-24 18:30 ` bugzilla-daemon
@ 2019-09-24 17:08 ` bugzilla-daemon
  7 siblings, 0 replies; 9+ messages in thread
From: bugzilla-daemon @ 2019-09-24 17:08 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 837 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=26708

GitLab Migration User <gitlab-migration@fdo.invalid> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |MOVED
             Status|NEW                         |RESOLVED

--- Comment #6 from GitLab Migration User <gitlab-migration@fdo.invalid> ---
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been
closed from further activity.

You can subscribe and participate further through the new bug through this link
to our GitLab instance: https://gitlab.freedesktop.org/mesa/drm/issues/2.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 2423 bytes --]

[-- Attachment #2: Type: text/plain, Size: 159 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2019-09-24 17:08 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-22 21:47 [Bug 26708] New: libdrm-intel leaks memory when resizing window bugzilla-daemon
2010-02-24  7:51 ` [Bug 26708] " bugzilla-daemon
2010-02-24 14:44 ` bugzilla-daemon
2010-02-24 16:28 ` bugzilla-daemon
2010-02-24 16:29 ` bugzilla-daemon
2010-02-24 16:43 ` bugzilla-daemon
2010-02-24 18:29 ` bugzilla-daemon
2010-02-24 18:30 ` bugzilla-daemon
2019-09-24 17:08 ` bugzilla-daemon

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.