Comment # 13 on bug 1046962 from
Hmm, if it's statically showing 2GB, then that's not useful...

Looking at your screenshot (thanks!):
How about these:
 - clients
 - gem_names
 - radeon_gem_names
 - radeon_gtt_mm
 - radeon_vram_mm
 - ttm_dma_page_pool
 - ttm_page_pool

At least one of them should show a list the allocated objects (BOs), either
summed up per process or in full. Since it's probably more than fits on one
screen, you'd want to sum that up. Maybe something like:

  while true ; do clear ; echo $(( $(cat FILENAME | tail -c +3 | cut -c 6-12 |
sed "s/$/ + ") 0 )) ; sleep 1 ; done

You'd have to trim the values to tail (which lines to skip, as the debugfs file
probably prints some table headers) and to cut (to catch only the numbers of
the column you're interested in).

What the above line does is:
 - it takes the contents of FILENAME
 - then throws away the first few lines
 - then only selects characters 6 to 12 of each line
 - then adds a " + " to each end of line
 - then sums it all up using Bash's built-in arithmetic $(( ))
 - then prints the result with echo

Hope this helps!


You are receiving this mail because: