Compiz high load (180%)

Continuing the discussion from My Jetson EGL code makes compiz use 95% of the CPU:

Has this issue been fixed?

I have had a regression where new I a system built last year which runs without sheering and with acceptable latency sb3d new installs have 300ms of latency or more and sheering.

my application is an egl app based off of the argus_camera app in the jetson mmapi examples.

my hardware is:
tx2nx
capable robots baseboard
2 vision components Imx412c

I am trying to build simple test cases.

test case 1:
login using unity
open terminal
run top
open chrome
open the following website:opencv on jetson introduction to opencv - Google Search
run the video.

compiz consumes 140% cpu or more and xorg consumes 55% cpu or more.

Test case 2:
reboot
open terminal
run top
run argus_camera

Again, compiz consumes > 150% cpu Xorg consumes > 50% cpu.
Latency is >300ms. (measured by comparing times on a picture which contains a stopwatch and the image of the stopwatch)

Both systems are built with 32.7.2.

On a separate note:
In building test cases I tried to use sdkmanager to setup my system so that I had a starting point that we can all duplicate. Unfortunately I am unable to use sdkmanager because if I select jetson sdk components The the OS is downloaded and then when it attempts to download the SDK components it fills the flash on the target. Once the flash is filled on the target the target system becomes unstable and needs to be flashed again.

The only sdk component that I want is the MMapi. In the past I remembre being to select SDK components individually. Can I do that now?

-mike

Hi,
Please execute sudo nvpmodel -m 0, sudo jetson_clocks, sudo tegrastats and share the log for reference.

And do you run multiple cameras or single camera? Do you run the camera(s) in 30fps or 60fps?

Dane
enclosed is a file with the output from tegrastats and top under several conditions.

My application uses 2 cameras. The tests here do not use any cameras.

the test is simple.

download and flash 32.7.3

complete configuration

open the following in chrome:
https://www.google.com/search?channel=fs&client=ubuntu&q=opencv+on+jetson+introduction+to+opencv+#fpstate=ive&vld=cid:9633502c,vid:gvmP0WRVUxI

open a terminal
collect tegrastats and top data with video running and video stopped.

install mmapi.

sudo apt-get update
sudo apt install -y nvidia-l4t-jetson-multimedia-api

after reboot tun the same video and note cpu load in compiz goes up drastically. Moving windows in chrome also gets jerky and the system performance in general degrades.

the testsetup for this test is a TX2NX on a carrier board built by Capable Robot
https://capablerobot.com/products/nx-baseboard/
No cameras are used in the test and no kernal or device tree changes have been made .

You should be able to duplicate this easily.
also can you give me a link to earlier versions of the mmapi?
can you give me instructions for cloning a working system (All partitions) and loading it on another target.

Thank you.
-mike

32.7.3_only (14.1 KB)

Hi,
The previous comment is updated to add sudo jetson_clocks. Please give it a try. It is not easy to check CPU usage if clocks are varying. Please fix it to maximum value and check tegrastats. You may think loading is high but actually CPU clock is at low value.

Dane,
the updated data is in the file included below.

the summery is:
before installing mmapi

RAM 2894/3825MB (lfb 22x4MB) SWAP 262/1913MB (cached 2MB) CPU [14%@2035,0%@2035,0%@2035,12%@2035,12%@2034,13%@2035] EMC_FREQ 11%@1600 GR3D_FREQ 13%@1300 APE 408 MTS fg 0% bg 0% PLL@45.5C MCPU@45.5C PMIC@50C GPU@44.5C BCPU@45.5C thermal@45.1C VDD_IN 3632/3632 VDD_CPU_GPU 1066/1066 VDD_SOC 710/710

after installing mmapi

RAM 2391/3825MB (lfb 146x4MB) SWAP 230/1913MB (cached 1MB) CPU [87%@2019,0%@2035,0%@2035,85%@2019,82%@2020,77%@2020] EMC_FREQ 9%@1600 GR3D_FREQ 0%@1300 APE 408 MTS fg 0% bg 0% PLL@54C MCPU@54C PMIC@50C GPU@52C BCPU@54C thermal@53C VDD_IN 5282/5282 VDD_CPU_GPU 2637/2637 VDD_SOC 709/709

You or your engineers should be able to duplicate this problem this problem from the information in the attached file. there are less than 5 steps to duplicate the issue.

Please answer the following questions:

  1. how do I clone all partitions from my working system and reload them on a new board?

  2. where can I download earlier versions of nvidia-l4t-jetson-multimedia-api from?

  3. is there a fix for the problem listed here?My Jetson EGL code makes compiz use 95% of the CPU - #10 by DaneLLL
    compizHighLoadLog2 (10.1 KB)

Hi,
Do you observe the issue on Xavier developer kit? Seems like the version is mismatched so it does not work properly. Are you able to install SDK components through SDKManager and check if the issue is still present?

and please try to specify the version as suggested in
Jetson/L4T/r32.7.x patches - eLinux.org

[32.7.1][apt install] issue in apt install nvidia-jetpack

Dane,
Have you or your engineers tried to duplicate this?

As you will note in the first post in this thread, I cannot use SDKmanager because after an hour it has a fault when it fills the eeprom. There is no way to select which components to install. it is all or nothing… and all is too big.

I do not have a Xavier development kit. The carrier board that I am using is does not require any device driver or device tree changes unless you want to access the mipi camera via i2c camera.

The test plan I have given specifically does not use the camera and uses the 32.7.3 right out of the box. The only command that I give after loading 32.7.3 is to load the MMAPI using apt-get. I do not know what gets loaded with this command. Please try it and let me know if your results match mine.

The files that I have sent you should give you enough information that you should be able to duplicate the problem and figure out what incompatible versions I am getting. The only thing that I do to get the problem is to load the MMAPI using apt-get. I do not have the knowledge or tools to debug this. I do not know what version of the MMAPI is being brought in and I do not know what dependencies are being loaded.

I have a product which is supposed to ship. It cannot ship until the performance of the OS has been restored.

Hi,
We don’t observe the issue on Xavier developer kit, so suspect you don’t install correct version of the packages since there are multiple r32.7.x releases.

You should be able to generate a nvidia-jetpack script for your custom board. It would be great if you can refer to the post and give it a try. The post is the script for r32.7.1

We will also check and try to make a script for r32.7.3.

Again, this problem is with tx2nx not Xavier
I do not have a Xavier development kit.

Did you try to reproduce this on a tx2nx or a Xavier? I suggest that you try with a tx2nx.
As I have clearly stated I am using 32.7.3

All of the exact commands that I used to duplicate the problem for you are listed in the files that I have downloaded. Yes it seems that something incompatible with tx2nx is being loaded. I am asking for your help to figure out what it is.

Hi,
The topic was in Xavier category so we thought you use Xavier. We have moved the topic to TX2 category.

Hi,
Please try the script:

#!/bin/bash

sudo apt install nvidia-cuda=4.6.3-b17
sudo apt install nvidia-cudnn8=4.6.3-b17
sudo apt install nvidia-tensorrt=4.6.3-b17
sudo apt install nvidia-container=4.6.3-b17
sudo apt install nvidia-opencv=4.6.3-b17
sudo apt install nvidia-visionworks=4.6.3-b17
sudo apt install nvidia-vpi=4.6.3-b17
sudo apt install nvidia-l4t-libvulkan=32.7.3-20221122092958
sudo apt install nvidia-l4t-multimedia-utils=32.7.3-20221122092958
sudo apt install nvidia-l4t-firmware=32.7.3-20221122092958
sudo apt install nvidia-l4t-init=32.7.3-20221122092958
sudo apt install nvidia-l4t-wayland=32.7.3-20221122092958
sudo apt install nvidia-l4t-x11=32.7.3-20221122092958
sudo apt install nvidia-l4t-weston=32.7.3-20221122092958
sudo apt install nvidia-l4t-3d-core=32.7.3-20221122092958
sudo apt install nvidia-l4t-cuda=32.7.3-20221122092958
sudo apt install nvidia-l4t-multimedia=32.7.3-20221122092958
sudo apt install nvidia-l4t-camera=32.7.3-20221122092958
sudo apt install nvidia-l4t-graphics-demos=32.7.3-20221122092958
sudo apt install nvidia-l4t-gstreamer=32.7.3-20221122092958
sudo apt install nvidia-l4t-jetson-multimedia-api=32.7.3-20221122092958

We set up r32.7.3/TX2 developer kit + E3326 camera board and run the command:

$ gst-launch-1.0 nvarguscamerasrc ! nvoverlaysink

Don’t see high CPU usage after installing the packages.
[Before the installation]

RAM 1318/7858MB (lfb 1469x4MB) SWAP 0/3929MB (cached 0MB) CPU [7%@2058,off,off,8
%@2034,8%@2035,9%@2035] EMC_FREQ 3%@1600 GR3D_FREQ 0%@1122 VIC_FREQ 0%@115 APE 1
50 PLL@42C MCPU@42C PMIC@50C Tboard@39C GPU@40.5C BCPU@42C thermal@41.7C Tdiode@
40.5C VDD_SYS_GPU 153/172 VDD_SYS_SOC 843/843 VDD_4V0_WIFI 0/0 VDD_IN 3336/3384
VDD_SYS_CPU 460/460 VDD_SYS_DDR 950/950
RAM 1318/7858MB (lfb 1469x4MB) SWAP 0/3929MB (cached 0MB) CPU [6%@2035,off,off,7
%@2034,5%@2035,11%@2036] EMC_FREQ 3%@1600 GR3D_FREQ 0%@1122 VIC_FREQ 0%@115 APE
150 PLL@42C MCPU@42C PMIC@50C Tboard@39C GPU@40.5C BCPU@42C thermal@41.4C Tdiode
@40.75C VDD_SYS_GPU 230/183 VDD_SYS_SOC 843/843 VDD_4V0_WIFI 0/0 VDD_IN 3413/338
9 VDD_SYS_CPU 460/460 VDD_SYS_DDR 950/950

[After installation]

RAM 1918/7858MB (lfb 238x4MB) SWAP 0/3929MB (cached 0MB) CPU [7%@2056,off,off,5%
@2036,5%@2033,7%@2036] EMC_FREQ 3%@1600 GR3D_FREQ 0%@1122 VIC_FREQ 17%@115 APE 1
50 PLL@34.5C MCPU@34.5C PMIC@50C Tboard@31C GPU@32.5C BCPU@34.5C thermal@33.7C T
diode@31.75C VDD_SYS_GPU 153/153 VDD_SYS_SOC 843/843 VDD_4V0_WIFI 0/0 VDD_IN 329
6/3312 VDD_SYS_CPU 460/459 VDD_SYS_DDR 950/950
RAM 1918/7858MB (lfb 238x4MB) SWAP 0/3929MB (cached 0MB) CPU [8%@2049,off,off,5%
@2034,4%@2034,6%@2035] EMC_FREQ 3%@1600 GR3D_FREQ 0%@1122 VIC_FREQ 0%@115 APE 15
0 PLL@34.5C MCPU@34.5C PMIC@50C Tboard@31C GPU@32.5C BCPU@34.5C thermal@33.7C Td
iode@31.75C VDD_SYS_GPU 153/153 VDD_SYS_SOC 843/843 VDD_4V0_WIFI 0/0 VDD_IN 3298
/3310 VDD_SYS_CPU 460/459 VDD_SYS_DDR 950/950

Please give it a try.

Dane,
Thank you.
I only need :
sudo apt install nvidia-l4t-jetson-multimedia-api=32.7.3-20221122092958

just loading this solved my problem.

-mike

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.