i.MX6 GPU memory usage of weston g2d-renderer

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

i.MX6 GPU memory usage of weston g2d-renderer

899 Views
mamorukanou
Contributor IV

Hi community,

My customer did the following test on i.MX6DLSabreSD board with Yocto4.1.15_2.0.0.

Build Environment:

MACHINE      = "imx6dlsabreauto"
DISTRO       = "fsl-imx-wayland"
bitbake fsl-image-gui

1) Power On -> Start SD Boot

2) Kill the weston related process

# ps -aux|grep weston|grep -v "grep"|awk '{print $2}'|xargs kill -9

3)start weston with g2d

# openvt -s -- weston --use-g2d=1 --log=/dev/console

4) Dump GPU memory usage each process, check the GPU usage memory size with meminfo

# cat /sys/kernel/debug/gc/database | grep -E "Process|Current(\s+\w+){10}$"

# cat /sys/kernel/debug/gc/meminfo

pastedImage_1.png

6) Run weston-simple-egl

# weston-simple-egl -f &

7) Kill the weston-simple-egl

# sleep 2;killall weston-simple-egl

8) Dump GPU memory usage each process, check the GPU usage memory size with meminfo

pastedImage_2.png

My Question is:

In state of 4), Used memory is 5785600+4579840+48563200=58928640 Byte.

This value is same as Video memory of gvcPOOL_SYSYTEM.

i.e,  58928640 = 5785600 + 4579840 + 48563200

It's OK.

But in state of 8) , Used Video memory of meminfo is not same as sum of each used memory.

i.e,  93670912 != 5785600 + 4579840 + 48579584.

Would you let me know what this difference between state 4 and state 8) is  ?

Best Regards,

Kanou

Labels (3)
0 Kudos
1 Reply

605 Views
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hi Mamoru,

You have used that memory in acvPool_system.

Regards

0 Kudos