High cpu usage of compiz process while playback 4Kp60 h.265 video using nv3dsink

While playback 4Kp60 h.265 video using gst-launch with nv3dsink, the cpu usage for compiz process is very high and always over 90%.

The command is “gst-launch-1.0 filesrc location=Apink_MrChu.mp4 ! tsdemux ! h265parse ! nvv4l2decoder ! nv3dsink window-width=1280 window-height=720”

But if I use nvoverlysink, there is no such issue.

Is this issue the right behavior exptected?

Because of high cpu usage of compiz process, the video playback seems not fluent.

Hi,
Please run sudo jetson_clocks and share profile result of sudo tegrastats in the two cases. And release version($ head -1 /etc/nv_tegra_release).
We should see some GPU usage in using nv3dsink, but significant deviation in CPU usage seems not expected. Please help check with sudo tegrastats.

Hi,

“cat /etc/nv_tegra_release” output

# R32 (release), REVISION: 3.1, GCID: 18186506, BOARD: t186ref, EABI: aarch64, DATE: Tue Dec 10 07:03:07 UTC 2019

" sudo tegrastats" output

RAM 2070/15815MB (lfb 3077x4MB) SWAP 0/7908MB (cached 0MB) CPU [8%@1190,25%@1190,12%@1190,16%@1190,8%@1190,21%@1190,10%@1190,16%@1190] EMC_FREQ 6%@1600 GR3D_FREQ 0%@905 NVDEC 691 NVDEC1 780 APE 150 MTS fg 0% bg 8% AO@32.5C GPU@32C Tdiode@36C PMIC@100C AUX@32C CPU@34.5C thermal@32.9C Tboard@33C GPU 774/774 CPU 928/928 SOC 2167/2023 CV 0/0 VDDRQ 464/555 SYS5V 2656/2681
RAM 2070/15815MB (lfb 3077x4MB) SWAP 0/7908MB (cached 0MB) CPU [9%@1190,11%@1190,8%@1190,20%@1190,9%@1190,22%@1190,11%@1190,30%@1190] EMC_FREQ 6%@1600 GR3D_FREQ 15%@905 NVDEC 691 NVDEC1 691 APE 150 MTS fg 0% bg 8% AO@32C GPU@32.5C Tdiode@36C PMIC@100C AUX@32C CPU@34.5C thermal@32.9C Tboard@33C GPU 774/774 CPU 928/928 SOC 2012/2023 CV 0/0 VDDRQ 464/554 SYS5V 2656/2681
RAM 2070/15815MB (lfb 3077x4MB) SWAP 0/7908MB (cached 0MB) CPU [15%@1190,14%@1190,4%@1190,13%@1190,5%@1190,26%@1190,10%@1190,30%@1190] EMC_FREQ 6%@1600 GR3D_FREQ 13%@905 NVDEC 691 NVDEC1 691 APE 150 MTS fg 0% bg 9% AO@32C GPU@32.5C Tdiode@35.75C PMIC@100C AUX@32C CPU@34C thermal@32.9C Tboard@33C GPU 774/774 CPU 928/928 SOC 2012/2023 CV 0/0 VDDRQ 464/552 SYS5V 2656/2680
RAM 2070/15815MB (lfb 3077x4MB) SWAP 0/7908MB (cached 0MB) CPU [7%@1190,19%@1190,3%@1190,25%@1190,17%@1190,9%@1190,7%@1190,28%@1190] EMC_FREQ 6%@1600 GR3D_FREQ 1%@905 NVDEC 691 NVDEC1 691 APE 150 MTS fg 0% bg 10% AO@32C GPU@32.5C Tdiode@36C PMIC@100C AUX@32C CPU@34C thermal@32.9C Tboard@33C GPU 774/774 CPU 928/928 SOC 2012/2022 CV 0/0 VDDRQ 619/553 SYS5V 2656/2680
RAM 2070/15815MB (lfb 3077x4MB) SWAP 0/7908MB (cached 0MB) CPU [15%@1190,44%@1190,8%@1190,15%@1190,17%@1190,1%@1190,8%@1190,11%@1190] EMC_FREQ 6%@1600 GR3D_FREQ 10%@905 NVDEC 691 NVDEC1 691 APE 150 MTS fg 0% bg 7% AO@32C GPU@32.5C Tdiode@36C PMIC@100C AUX@32C CPU@34.5C thermal@32.9C Tboard@33C GPU 774/774 CPU 928/928 SOC 2012/2022 CV 0/0 VDDRQ 464/552 SYS5V 2656/2680

“htop” command output for “/usr/bin/compiz”

  PID USER      PRI  NI  VIRT   RES   SHR S CPU% MEM%   TIME+  Command
 7454 qjmiao     20   0 1218M  104M 66904 R 93.8  0.7 12:45.62 /usr/bin/compiz

Hi,
The CPU usage looks fine and does not go over 90%.

CPU [7%@1190,19%@1190,3%@1190,25%@1190,17%@1190,9%@1190,7%@1190,28%@1190]