Files
rt-validation/stress-tests/Dockerfile
Jörg Sommer 95cc35b4e8 stress-tests: Improve stressing
*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.
2023-06-29 17:28:28 +02:00

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"]