1
0
mirror of https://github.com/systemd/systemd.git synced 2025-03-15 06:50:17 +03:00
systemd/test/units/TEST-55-OOMD-testbloat.service
Daan De Meyer 0c51e28088 TEST-55-OOMD: Switch to stress-ng
stress-ng is available in OpenSUSE and in CentOS Stream without needing
EPEL so let's switch to it instead of stress.

(cherry picked from commit 3e3a15c06e03f1bec209066da5b1340e1dd03dc8)
2024-07-11 12:48:18 +02:00

11 lines
355 B
Desktop File

# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Create a lot of memory pressure
[Service]
# A VERY small memory.high will cause the 'stress-ng' (trying to use a lot of memory)
# to throttle and be put under heavy pressure.
MemoryHigh=3M
Slice=TEST-55-OOMD-workload.slice
ExecStart=stress-ng --timeout 3m --vm 10 --vm-bytes 200M --vm-keep