dscreen重连内存泄漏
问题概要: 现在dscreen 3568 source端在统一渲染和开eglimage的情况下关闭重连dscreen时free内存会有30M左右的泄漏,怀疑是renderservice造成的。在分离渲染的情况下就没有 dscreen source端平台:3568-dayu, sdk_version = "3.2.12.5"ÿ
问题概要: 现在dscreen 3568 source端在统一渲染和开eglimage的情况下关闭重连dscreen时free内存会有30M左右的泄漏,怀疑是renderservice造成的。在分离渲染的情况下就没有
dscreen source端平台:3568-dayu, sdk_version = "3.2.12.5",screen size: 1920x1080
1.统一渲染和开eglimage的graphic_config.gni:
declare_args() {
graphic_standard_feature_bootanimation_enable = true
graphic_standard_feature_ace_enable_gpu = true
graphic_standard_feature_color_gamut_enable = false
graphic_standard_feature_rs_enable_eglimage = true
graphic_standard_feature_rs_enable_uni_render = true
graphic_standard_feature_wuji_enable = false
graphic_standard_feature_freemem_enable = false
graphic_standard_feature_enable_afbc = true
}
通过app连续5次重连dscreen再断开时的top数据(请注意Mem的free列和render_service的VIRT(第5)列)
Mem: 2002204K total, 1115360K used, 886844K free, 1314816 buffers
550 system -2 -8 380M 196M 160M S 7.3 10.0 0:16.85 render_service
Mem: 2002204K total, 1146664K used, 855540K free, 1314816 buffers
550 system -2 -8 420M 197M 160M S 0.1 10.0 0:20.95 render_service
Mem: 2002204K total, 1180808K used, 821396K free, 1314816 buffers
550 system -2 -8 460M 197M 160M S 0.8 10.0 0:23.35 render_service
Mem: 2002204K total, 1209544K used, 792660K free, 1314816 buffers
550 system -2 -8 500M 197M 160M S 0.1 10.0 0:25.87 render_service
Mem: 2002204K total, 1243456K used, 758748K free, 1314816 buffers
550 system -2 -8 540M 198M 160M S 1.0 10.1 0:29.20 render_service
关闭app后top数据
Mem: 2002204K total, 1246328K used, 755876K free, 1314816 buffers
550 system -2 -8 567M 225M 198M S 1.0 11.4 0:33.42 render_service
2.分离渲染的graphic_config.gni:
declare_args() {
graphic_standard_feature_bootanimation_enable = true
graphic_standard_feature_ace_enable_gpu = true
graphic_standard_feature_color_gamut_enable = false
graphic_standard_feature_rs_enable_eglimage = false
graphic_standard_feature_rs_enable_uni_render = false
graphic_standard_feature_wuji_enable = false
graphic_standard_feature_freemem_enable = false
graphic_standard_feature_enable_afbc = false
}
通过app连续5次重连dscreen再断开时的top数据(请注意Mem的free列和render_service的VIRT(第5)列)
Mem: 2002204K total, 1230024K used, 772180K free, 1314816 buffers
554 system -2 -8 173M 48M 34M S 0.0 2.4 1:30.12 render_service
Mem: 2002204K total, 1232072K used, 770132K free, 1314816 buffers
554 system -2 -8 173M 48M 34M S 0.1 2.4 1:34.74 render_service
Mem: 2002204K total, 1232852K used, 769352K free, 1314816 buffers
554 system -2 -8 173M 48M 34M S 0.6 2.4 1:44.29 render_service
Mem: 2002204K total, 1233448K used, 768756K free, 1314816 buffers
554 system -2 -8 173M 48M 34M S 0.0 2.4 1:50.86 render_service
Mem: 2002204K total, 1233932K used, 768272K free, 1314816 buffers
554 system -2 -8 173M 48M 34M S 0.1 2.4 1:55.89 render_service
关闭app后top数据
Mem: 2002204K total, 1183696K used, 818508K free, 1314816 buffers
554 system -2 -8 154M 48M 34M S 0.1 2.4 1:59.20 render_service
更多推荐
所有评论(0)