Skip to content

Stress Test Tool Deployment

Introduction

Stress Test Tool is a tool for testing system performance. It helps users evaluate system stability and responsiveness under various load conditions.

Supported Platform

PlatformRuntime Environment
IQ8275Ubuntu 24.04

Prerequisites

  1. IQ8275 hardware

  2. Ubuntu 24.04 system

System Dependency Configuration

Configure the AidLux Package Source

bash
# Download the correct public key
sudo wget -O- https://archive.aidlux.com/ubuntu24/public.key | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/private-aidlux.gpg > /dev/null

# Edit the source list file
sudo vim /etc/apt/sources.list.d/private-aidlux.list

# Add the repository provided by AidLux to the source file
deb [arch=arm64 signed-by=/etc/apt/trusted.gpg.d/private-aidlux.gpg] https://archive.aidlux.com/ubuntu24 noble main

# Update the package cache
sudo apt update

After the update is complete, you can use the following command to retrieve the official AidLux SDK dependencies:

bash
sudo apt list | grep aid | grep unknown
bash
# Install software
# Must be installed first (not included with the system)
sudo apt install python3 python3-pip libopencv-dev python3-opencv net-tools
# Must be installed before aidlite
sudo apt install aidlux-aistack-base aidrtcm

# Install aidlite and dependencies
sudo apt install aid-lms aidlms-sdk aidlite-sdk cmake
sudo apt-get install libfmt-dev nlohmann-json3-dev
sudo apt install aidlite-*

# DSP support
sudo apt-get install qcom-fastrpc1
sudo apt-get install qcom-fastrpc-dev

# Install aidgen-sdk
sudo apt install aidgen-qnn240-sdk

# Install mms service
sudo apt install aid-mms

# GPU support
sudo apt-add-repository -s ppa:ubuntu-qcom-iot/qcom-ppa
sudo apt install qcom-adreno-cl1
sudo ln -s /usr/lib/aarch64-linux-gnu/libOpenCL.so.1 /usr/lib/aarch64-linux-gnu/libOpenCL.so

After installation, check that the aidlite and aidgen directories have been added under /usr/local/share:

AidLite and AidGen directory structure

Device Authorization

Obtain the Device Serial Number

bash
cat  /sys/devices/soc0/serial_number

Obtain the License File

Provide the serial number to APLUX technical staff to generate a device-specific License file, then place it in the /etc/opt/aidlux/license/AidLuxLics directory.

Activate the License

bash
sudo /opt/aidlux/cpf/aid-lms/manager.sh restart

Stress Test Tool Installation and Usage

bash
sudo apt install stresstest-backend

After installation, you can start the Stress Test Tool with the following command:

bash
# Start Stress Test Tool with CPU and NPU load set to 50%
StressTest --cpu-load 50 --npu-load 50

After starting, the system will display the current load status:

plain
========================================
  Stress Test Configuration
========================================
  CPU cores:         8
  CPU global load:   50%
  CPU effective loads: cpu0=50% cpu1=50% cpu2=50% cpu3=50% cpu4=50% cpu5=50% cpu6=50% cpu7=50%
  NPU devices:       1
    NPU[0] load=50% model=/usr/local/share/stress/qnn240/../npu.bin
  GPU devices:       0
  MEM load:          0%
  Monitor interval:  1 sec
  Duration:          0 sec (0=infinite)
  Print to terminal: OFF
  Save to CSV:       OFF
========================================

[CPU] Started 8 stress threads on 8 cores, target: 0%
[NPU] Started 1 device(s), target: 50%