mirror of
https://github.com/toradex/rt-validation.git
synced 2025-11-24 05:07:36 +00:00
*hackbench* doesn't produce much load on a SMP system. A better way to stress the CPU is copying data from /dev/zero to /dev/null. Running *du* and *find* doesn't stress Linux very much. Most of it is optimised through caches. Better: run *dd* to copy the whole block device to /dev/null. To stress the network interface (but not your internet connection) send massive pings to the gateway. In a docker container this might be the system itself which wouldn't load the NIC. With the environment variable STRESS_SERVER you can set a different address. The tool *ip* used to find the gateway is in the package iproute2.
14 lines
365 B
Docker
14 lines
365 B
Docker
ARG IMAGE_ARCH=linux/arm
|
|
# For IMX8 use IMAGE_ARCH=linux/arm64
|
|
ARG IMAGE_TAG=2-bullseye
|
|
FROM --platform=$IMAGE_ARCH torizon/debian:$IMAGE_TAG
|
|
|
|
RUN apt update \
|
|
&& apt install -y --no-install-recommends iperf3 rt-tests iputils-ping iproute2 \
|
|
&& apt clean \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
COPY stress-tests.sh /stress-tests.sh
|
|
|
|
CMD ["/stress-tests.sh"]
|