radeon memory leak
https://bugzilla.kernel.org/show_bug.cgi?id=31412
Andrew Morton <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
Component|Other |Video(DRI - non Intel)
AssignedTo|[email protected] |drivers_video-dri@kernel-bu
| |gs.osdl.org
Product|Memory Management |DriversSignature · 14 lines
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching the assignee of the bug. ------------------------------------------------------------------------------ Colocation vs. Managed Hosting A question and answer guide to determining the best fit for your organization - today and in the future. http://p.sf.net/sfu/internap-sfd2d -- _______________________________________________ Dri-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/dri-devel
https://bugzilla.kernel.org/show_bug.cgi?id=31412
Andrew Morton <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]
--- Comment #1 from Andrew Morton <[email protected]> 2011-03-18 20:31:35 --- It's a little unclear - is this a regression? If so, is it a 2.6.37 -> 2.6.38 regression?
Thanks.
Signature · 10 lines
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching the assignee of the bug. ------------------------------------------------------------------------------ Colocation vs. Managed Hosting A question and answer guide to determining the best fit for your organization - today and in the future. http://p.sf.net/sfu/internap-sfd2d --
https://bugzilla.kernel.org/show_bug.cgi?id=31412
--- Comment #2 from Kevin <[email protected]> 2011-03-18 20:47:01 --- It's not a regression. I also experienced the problem with 2.6.37 and 2.6.36. I haven't tested any other kernel versions; I got my laptop in December.
Signature · 14 lines
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching the assignee of the bug. ------------------------------------------------------------------------------ Colocation vs. Managed Hosting A question and answer guide to determining the best fit for your organization - today and in the future. http://p.sf.net/sfu/internap-sfd2d -- _______________________________________________ Dri-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/dri-devel
https://bugzilla.kernel.org/show_bug.cgi?id=31412
Dave Airlie <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]
--- Comment #3 from Dave Airlie <[email protected]> 2011-03-18 21:01:21 --- 1df6a2ebd75067aefbdf07482bf8e3d0584e04ee
was the fix for the original problem, which was in 2.6.37.
Unless something we've done since is causing it or another race to happen.
So logging out of X doesn't get the memory back?
can you attach the contents of /sys/kernel/debug/dri/0/radeon_vram_mm and radeon_gtt_mm? (after mounting debugfs).
Signature · 14 lines
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching the assignee of the bug. ------------------------------------------------------------------------------ Colocation vs. Managed Hosting A question and answer guide to determining the best fit for your organization - today and in the future. http://p.sf.net/sfu/internap-sfd2d -- _______________________________________________ Dri-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/dri-devel
https://bugzilla.kernel.org/show_bug.cgi?id=31412
--- Comment #4 from Kevin <[email protected]> 2011-03-18 21:25:15 --- The problem occurred in 2.6.37 also.
Logging out of X doesn't get the memory back.
I'm also not sure if just scrolling a lot causes the problem. It seems to be easier for me to consume memory by opening many .pdf files.
Here is some output after logging out of X (I still had about ~30MB from root processes):
$ free -m
total used free shared buffers cached
Mem: 5920 2668 3252 0 96 1088
-/+ buffers/cache: 1484 4436
Swap: 7998 0 7998$ cat /sys/kernel/debug/dri/0/radeon_vram_mm 0x00000000-0x00000040: 0x00000040: used 0x00000040-0x00000140: 0x00000100: used 0x00000140-0x00000141: 0x00000001: used 0x00000141-0x0000092a: 0x000007e9: used 0x0000092a-0x00040000: 0x0003f6d6: free total: 262144, used 2346 free 259798
$ cat /sys/kernel/debug/dri/0/radeon_gtt_mm 0x00000000-0x00000001: 0x00000001: used 0x00000001-0x00000011: 0x00000010: used 0x00000011-0x00000111: 0x00000100: used 0x00000111-0x00000211: 0x00000100: used 0x00000211-0x00020000: 0x0001fdef: free total: 131072, used 529 free 130543
Signature · 14 lines
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching the assignee of the bug. ------------------------------------------------------------------------------ Colocation vs. Managed Hosting A question and answer guide to determining the best fit for your organization - today and in the future. http://p.sf.net/sfu/internap-sfd2d -- _______________________________________________ Dri-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/dri-devel
https://bugzilla.kernel.org/show_bug.cgi?id=31412
--- Comment #5 from Dave Airlie <[email protected]> 2011-03-19 07:16:26 --- how about cat /sys/kernel/debug/dri/0/ttm_page_pool
Signature · 14 lines
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching the assignee of the bug. ------------------------------------------------------------------------------ Colocation vs. Managed Hosting A question and answer guide to determining the best fit for your organization - today and in the future. http://p.sf.net/sfu/internap-sfd2d -- _______________________________________________ Dri-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/dri-devel
https://bugzilla.kernel.org/show_bug.cgi?id=31412
--- Comment #6 from Dave Airlie <[email protected]> 2011-03-19 07:17:08 --- how about cat /sys/kernel/debug/dri/0/ttm_page_pool
and /sys/class/drm/ttm/memory_accounting/*/*
Signature · 10 lines
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching the assignee of the bug. ------------------------------------------------------------------------------ Colocation vs. Managed Hosting A question and answer guide to determining the best fit for your organization - today and in the future. http://p.sf.net/sfu/internap-sfd2d --
https://bugzilla.kernel.org/show_bug.cgi?id=31412
--- Comment #7 from Kevin <[email protected]> 2011-03-19 09:15:54 --- Created an attachment (id=51232)
--> (https://bugzilla.kernel.org/attachment.cgi?id=51232)
debug info
Signature · 14 lines
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching the assignee of the bug. ------------------------------------------------------------------------------ Colocation vs. Managed Hosting A question and answer guide to determining the best fit for your organization - today and in the future. http://p.sf.net/sfu/internap-sfd2d -- _______________________________________________ Dri-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/dri-devel
https://bugzilla.kernel.org/show_bug.cgi?id=31412
--- Comment #8 from Kevin <[email protected]> 2011-03-19 09:17:19 --- The attached "debug info" above is output after logging out of X (I still had about ~30MB from root processes). It includes what Dave asked for. FYI, I haven't rebooted since my last post.
$ free -m
total used free shared buffers cached
Mem: 5920 4279 1641 0 212 2547
-/+ buffers/cache: 1519 4401
Swap: 7998 0 7998Signature · 14 lines
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching the assignee of the bug. ------------------------------------------------------------------------------ Colocation vs. Managed Hosting A question and answer guide to determining the best fit for your organization - today and in the future. http://p.sf.net/sfu/internap-sfd2d -- _______________________________________________ Dri-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/dri-devel
https://bugzilla.kernel.org/show_bug.cgi?id=31412
--- Comment #9 from Dave Airlie <[email protected]> 2011-03-19 22:07:30 --- I'm having trouble reconciling this with the graphics driver.
a) you claim it happens with fglrx as well, there is nothing shared between them
(so it can't be a common gpu bug)
b) nothing is leaking according to that debug info in anywhere obvious.
One last test would be unload the gpu stack to see what happens
got to runlevel 3 or anywhere X isn't rnunig
echo 0 > /sys/class/vtconsole/vtcon1/bind
rmmod radeon ttm drm_kms_helper drm
see if memory is still gone.
maybe you can watch /proc/slabinfo to see where the memory might be going. It might also just be page cache from the pdf loading,
does echo 3 > /proc/sys/vm/drop_caches help?
Signature · 14 lines
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching the assignee of the bug. ------------------------------------------------------------------------------ Colocation vs. Managed Hosting A question and answer guide to determining the best fit for your organization - today and in the future. http://p.sf.net/sfu/internap-sfd2d -- _______________________________________________ Dri-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/dri-devel
https://bugzilla.kernel.org/show_bug.cgi?id=31412
--- Comment #10 from Kevin <[email protected]> 2011-03-20 20:40:04 --- echo 3 > /proc/sys/vm/drop_caches
cleared all of the memory. Thank you! See output below (ran after exiting X). I didn't try unloading the gpu stack. I can try it if you like.
I also saved /proc/slabinfo before and after I dropped the caches. If I'm interpreting the file correctly, I only notice large drops in ext4 filesystem stuff. Is there a way to tell which slabs are considered buffers or cache?
# free -m
total used free shared buffers cached
Mem: 5920 4318 1602 0 113 2465
-/+ buffers/cache: 1740 4180
Swap: 7998 0 7998
# echo 3 > /proc/sys/vm/drop_caches
# free -m
total used free shared buffers cached
Mem: 5920 225 5695 0 3 12
-/+ buffers/cache: 209 5711
Swap: 7998 0 7998Signature · 14 lines
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching the assignee of the bug. ------------------------------------------------------------------------------ Colocation vs. Managed Hosting A question and answer guide to determining the best fit for your organization - today and in the future. http://p.sf.net/sfu/internap-sfd2d -- _______________________________________________ Dri-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/dri-devel
https://bugzilla.kernel.org/show_bug.cgi?id=31412
--- Comment #11 from Kevin <[email protected]> 2011-03-20 20:40:18 --- Created an attachment (id=51392)
--> (https://bugzilla.kernel.org/attachment.cgi?id=51392)
slabinfo before echo 3 > /proc/sys/vm/drop_caches
Signature · 10 lines
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching the assignee of the bug. ------------------------------------------------------------------------------ Colocation vs. Managed Hosting A question and answer guide to determining the best fit for your organization - today and in the future. http://p.sf.net/sfu/internap-sfd2d --
https://bugzilla.kernel.org/show_bug.cgi?id=31412
--- Comment #12 from Kevin <[email protected]> 2011-03-20 20:40:48 --- Created an attachment (id=51402)
--> (https://bugzilla.kernel.org/attachment.cgi?id=51402)
slabinfo after echo 3 > /proc/sys/vm/drop_caches
Signature · 10 lines
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching the assignee of the bug. ------------------------------------------------------------------------------ Colocation vs. Managed Hosting A question and answer guide to determining the best fit for your organization - today and in the future. http://p.sf.net/sfu/internap-sfd2d --
https://bugzilla.kernel.org/show_bug.cgi?id=31412
--- Comment #13 from Kevin <[email protected]> 2011-06-02 02:57:29 --- So is this something that should be fixed or is everything working as intended? To me, it doesn't seem correct. Unused caches shouldn't be stored in my "used" memory.
Is there anything else that I should try to help?
Can anyone else reproduce this? I just open large pdfs and scroll through them.
Signature · 3 lines
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching the assignee of the bug.
https://bugzilla.kernel.org/show_bug.cgi?id=31412
Jesse Zhang <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]
--- Comment #14 from Jesse Zhang <[email protected]> 2011-06-02 05:56:22 --- There is no leaking here. A quick google search turns up
http://sourcefrog.net/weblog/software/linux-kernel/free-mem.html.
Signature · 3 lines
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching the assignee of the bug.
https://bugzilla.kernel.org/show_bug.cgi?id=31412
--- Comment #15 from Kevin <[email protected]> 2011-06-02 17:24:35 --- I'm sorry. I wasn't clear. There is NOT a memory leak.
Below is some of my 'free -m' output from above. My question is, why does the 'used -/+ buffers/cache' decrease when I 'echo 3 > /proc/sys/vm/drop_caches'?
# free -m
total used free shared buffers cached
Mem: 5920 4318 1602 0 113 2465
-/+ buffers/cache: 1740 4180
Swap: 7998 0 7998
# echo 3 > /proc/sys/vm/drop_caches
# free -m
total used free shared buffers cached
Mem: 5920 225 5695 0 3 12
-/+ buffers/cache: 209 5711
Swap: 7998 0 7998Signature · 3 lines
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching the assignee of the bug.