measuring bandwidth

how to measure bandwidth of Xavier streaming 4K [ e.g. with econ csi camera] to network?
what areas needs to be checked?
I can think of:

  • monitoring network utilization
    -monitoring cpu, ram,gpu, disk usage with generic tools of system monitor.
    What is estimated bandwidth of 4K stream that is broadcasted from Xavier for example?
    What bottlenecks needs to be checked to reveal if they have 100% load or less?
    The first that comes to mind is
sudo tegrastats
RAM 2948/15700MB (lfb 1032x4MB) CPU [7%@2265,3%@2265,13%@2265,12%@2265,3%@2265,2%@2265,2%@2265,3%@2265] EMC_FREQ 6%@2133 GR3D_FREQ 0%@1377 NVENC 1075 APE 150 MTS fg 0% bg 9% AO@37C GPU@38C Tboard@37C Tdiode@39.5C AUX@38C CPU@40C thermal@38.75C PMIC@100C GPU 1079/1079 CPU 1543/1543 SOC 6169/6169 CV 0/0 VDDRQ 616/616 SYS5V 2419/2419

If using the default CSI devkit sensor,

./test-launch "nvarguscamerasrc ! video/x-raw(memory:NVMM), format=NV12, width=2592, height=1944, framerate=30/1 ! nvvidconv ! video/x-raw, width=2592, height=1944, format=NV12, framerate=30/1 ! omxh265enc ! rtph265pay name=pay0 pt=96 config-interval=1"

It shows that GPU is not used at all and rtsp streaming server takes 20-30% of CPU and other resources usage is negligible.

Thanks

Hi,
The bandwidth of the pipeline is dominated by h265 stream. It should be controlled by the bitrate setting of h265 encoding.

./test-launch "nvarguscamerasrc ! video/x-raw(memory:NVMM), format=NV12, width=2592, height=1944, framerate=30/1 ! nvvidconv ! video/x-raw, width=2592, height=1944, format=NV12, framerate=30/1 ! omxh265enc ! rtph265pay name=pay0 pt=96 config-interval=1"

Please note that 4K is large resolution and too small bitrate setting may not take effect.