I flashed my tx2 with the latest jetson while it arrived a few days ago, and I put my streaming platform on it, and I wanted to test to check how this thing can perform.
So I put my software to generate 1 camera feed to udp 10mbit 1080 h264 30 fps encoded since I dont have 6 cameras available.
Then 5 more streams udp to udp picking up one port after another, like this> 5101 -5102 - 5103 - 5104 - 5105, total 6 h264 encoded streams ending up on port 5105 with 1080 h264 encoded stream from the camera with omxh264enc as encoder, and the decoder as decoder before it encodes again. I can see the stream on the output port on my own stream client with the lowest possible latency.
For the first 10 seconds, I pickup 30 frames for each stream, then something happens. it drops. The fan doesnt turn on, so I suspected that the cores are not turned on.
I check with command top, and only 1 core is active out of the 4 it lists.
Then I check this:
sudo cat /sys/devices/system/cpu/online 0,3-5
The cores 1,2 are listed in the offline file.
I saw the TK1 max power script in another thread, and I tried that but it doesnt work as the path’s are different on tx2. But I managed to get my fan turned on.
So I customized the script partially, and I did this:
echo "Enabling fan for safety..." if [ ! -w /sys/kernel/debug/tegra_fan/target_pwm ] ; then echo "Cannot set fan -- exiting..." fi echo 255 > /sys/kernel/debug/tegra_fan/target_pwm echo 1 > /sys/devices/system/cpu/cpu0/online echo 1 > /sys/devices/system/cpu/cpu1/online echo 1 > /sys/devices/system/cpu/cpu2/online echo 1 > /sys/devices/system/cpu/cpu3/online echo 1 > /sys/devices/system/cpu/cpu4/online echo 1 > /sys/devices/system/cpu/cpu5/online
The script complaines about permission denied on /sys/devices/system/cpu/cpu0/online
I researched this, and setting a core to same state as its already in, creates that error. so cpu0 was online only, which is a nice confirmation that only 1 cpu was online at reboot.
This script turns the fan on, and turns the cores listed in the sys/devices/system/cpu to online:
sudo cat /sys/devices/system/cpu/online 0-5
Then I run my streaming platform with the camera to udp, udp-udp 5 more streams and I get 30 frames per second again, but after about 10 seconds it drops again.
So Im wondering what the heck is going on ? Isnt the Tx2 supposed to manage these things including the fan by itself ? and why do I get great performance for about 10 seconds and then it drops ?
After I turned the cpu0-5 to online, I do see 0,3,4,5 cpus active in top command, but the 1,2 cpu doesnt do anything. The active cpus only do 15-20 percent activity.
Ive already seen this
I already searched the issue alot, and feel Im stuck.