Comment # 28 on bug 1046962 from
This... is weird. So if I understand correctly, you've been running 3D
applications, yet the only client shown in "clients" is X? Okay, that file
isn't being helpful...

So it seems that the most interesting are radeon_gtt_mm, radeon_vram_mm, and
ttm_dma_page_pool. I'm not sure what the last one says, but the former two
should, together, list all allocations. Unfortunately we can only see the first
few lines of each now, since watch cuts off the output where it overruns the
screen.

So...

  while true ; do clear ; echo $(( $(cat /sys/kernel/debug/dri/0/radeon_vram_mm
| tail -n +3 | cut -d : -f 2 | sed "s/$/ + /") 0 )) ; sleep 1 ; done

and

  while true ; do clear ; echo $(( $(cat /sys/kernel/debug/dri/0/radeon_gtt_mm
| tail -n +3 | cut -d : -f 2 | sed "s/$/ + /") 0 )) ; sleep 1 ; done

should sum them up. This way, you can watch whether some operation reserves
more VRAM without freeing it.

Silly me forgot to also ask for

  dmesg -w

which is dmesg in 'watch' mode. Your kernel will probably start screaming once
the problems appear.


You are receiving this mail because: