[Bug 31412] radeon memory leak

2011-03-20 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=31412





--- Comment #10 from Kevin kjs...@gmail.com  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 sharedbuffers cached
Mem:  5920   4318   1602  0113   2465
-/+ buffers/cache:   1740   4180
Swap: 7998  0   7998
# echo 3  /proc/sys/vm/drop_caches
# free -m
 total   used   free sharedbuffers cached
Mem:  5920225   5695  0  3 12
-/+ buffers/cache:209   5711
Swap: 7998  0   7998

-- 
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
Dri-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dri-devel


[Bug 31412] radeon memory leak

2011-03-20 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=31412





--- Comment #11 from Kevin kjs...@gmail.com  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

-- 
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
Dri-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dri-devel


[Bug 31412] radeon memory leak

2011-03-20 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=31412





--- Comment #12 from Kevin kjs...@gmail.com  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

-- 
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
Dri-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dri-devel


[Bug 31412] radeon memory leak

2011-03-19 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=31412





--- Comment #5 from Dave Airlie airl...@linux.ie  2011-03-19 07:16:26 ---
how about cat /sys/kernel/debug/dri/0/ttm_page_pool

-- 
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
Dri-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dri-devel


[Bug 31412] radeon memory leak

2011-03-19 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=31412





--- Comment #6 from Dave Airlie airl...@linux.ie  2011-03-19 07:17:08 ---
how about cat /sys/kernel/debug/dri/0/ttm_page_pool 

and /sys/class/drm/ttm/memory_accounting/*/*

-- 
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
Dri-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dri-devel


[Bug 31412] radeon memory leak

2011-03-19 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=31412





--- Comment #7 from Kevin kjs...@gmail.com  2011-03-19 09:15:54 ---
Created an attachment (id=51232)
 -- (https://bugzilla.kernel.org/attachment.cgi?id=51232)
debug info

-- 
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
Dri-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dri-devel


[Bug 31412] radeon memory leak

2011-03-19 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=31412





--- Comment #8 from Kevin kjs...@gmail.com  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 sharedbuffers cached
Mem:  5920   4279   1641  0212   2547
-/+ buffers/cache:   1519   4401
Swap: 7998  0   7998

-- 
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
Dri-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dri-devel


[Bug 31412] radeon memory leak

2011-03-19 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=31412





--- Comment #9 from Dave Airlie airl...@linux.ie  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?

-- 
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
Dri-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dri-devel


[Bug 31412] radeon memory leak

2011-03-18 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=31412


Andrew Morton a...@linux-foundation.org changed:

   What|Removed |Added

  Component|Other   |Video(DRI - non Intel)
 AssignedTo|a...@linux-foundation.org   |drivers_video-dri@kernel-bu
   ||gs.osdl.org
Product|Memory Management   |Drivers




-- 
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
Dri-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dri-devel


[Bug 31412] radeon memory leak

2011-03-18 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=31412


Andrew Morton a...@linux-foundation.org changed:

   What|Removed |Added

 CC||a...@linux-foundation.org




--- Comment #1 from Andrew Morton a...@linux-foundation.org  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.

-- 
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
Dri-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dri-devel


[Bug 31412] radeon memory leak

2011-03-18 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=31412





--- Comment #2 from Kevin kjs...@gmail.com  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.

-- 
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
Dri-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dri-devel


[Bug 31412] radeon memory leak

2011-03-18 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=31412


Dave Airlie airl...@linux.ie changed:

   What|Removed |Added

 CC||airl...@linux.ie




--- Comment #3 from Dave Airlie airl...@linux.ie  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).

-- 
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
Dri-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dri-devel


[Bug 31412] radeon memory leak

2011-03-18 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=31412





--- Comment #4 from Kevin kjs...@gmail.com  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 sharedbuffers 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
0x-0x0040: 0x0040: used
0x0040-0x0140: 0x0100: used
0x0140-0x0141: 0x0001: used
0x0141-0x092a: 0x07e9: used
0x092a-0x0004: 0x0003f6d6: free
total: 262144, used 2346 free 259798

$ cat /sys/kernel/debug/dri/0/radeon_gtt_mm 
0x-0x0001: 0x0001: used
0x0001-0x0011: 0x0010: used
0x0011-0x0111: 0x0100: used
0x0111-0x0211: 0x0100: used
0x0211-0x0002: 0x0001fdef: free
total: 131072, used 529 free 130543

-- 
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
Dri-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dri-devel