Package: stress-ng Version: 0.10.05-1 Severity: normal
user@debian:~$ time stress-ng --fifo 8 --fifo-ops 10000000 stress-ng: info: [32701] defaulting to a 86400 second (1 day, 0.00 secs) run per stressor stress-ng: info: [32701] dispatching hogs: 8 fifo stress-ng: info: [32701] successful run completed in 4.71s real 0m4.718s user 0m2.611s sys 1m19.569s user@debian:~$ time stress-ng --fifo 8 --fifo-ops 10M stress-ng: info: [32660] defaulting to a 86400 second (1 day, 0.00 secs) run per stressor stress-ng: info: [32660] dispatching hogs: 8 fifo stress-ng: info: [32660] successful run completed in 0.00s real 0m0.012s user 0m0.012s sys 0m0.028s user@debian:~$ time stress-ng --fifo 8 --fifo-ops 10000000M stress-ng: info: [36317] defaulting to a 86400 second (1 day, 0.00 secs) run per stressor stress-ng: info: [36317] dispatching hogs: 8 fifo stress-ng: info: [36317] successful run completed in 4.33s real 0m4.334s user 0m2.649s sys 1m21.490s user@debian:~$ user@debian:~$ time stress-ng --futex 8 --futex-ops 10000000 stress-ng: info: [32744] defaulting to a 86400 second (1 day, 0.00 secs) run per stressor stress-ng: info: [32744] dispatching hogs: 8 futex stress-ng: info: [32744] successful run completed in 10.62s real 0m10.631s user 0m3.830s sys 2m2.262s user@debian:~$ time stress-ng --futex 8 --futex-ops 10M stress-ng: info: [32761] defaulting to a 86400 second (1 day, 0.00 secs) run per stressor stress-ng: info: [32761] dispatching hogs: 8 futex stress-ng: info: [32761] successful run completed in 0.00s real 0m0.011s user 0m0.021s sys 0m0.005s user@debian:~$ time stress-ng --futex 8 --futex-ops 10000000M stress-ng: info: [36259] defaulting to a 86400 second (1 day, 0.00 secs) run per stressor stress-ng: info: [36259] dispatching hogs: 8 futex stress-ng: info: [36259] successful run completed in 9.69s real 0m9.694s user 0m3.383s sys 1m55.287s As you can see, 10M is interpreted as 10. The M suffix is silently dropped. Please emit an error and exit, or interpret the numbers as expected. This should definitively apply to all --*-ops flags, but many other ones should support K, M, G suffixes, i.e. --dirdeep-inodes, --heapsort-size, --aiol-requests, --aio-requests. Regards, Witold -- System Information: Debian Release: bullseye/sid APT prefers testing APT policy: (500, 'testing') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 5.2.0-2-amd64 (SMP w/32 CPU cores) Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /usr/bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages stress-ng depends on: ii libaio1 0.3.112-5 ii libapparmor1 2.13.3-5 ii libbsd0 0.10.0-1 ii libc6 2.29-1 ii libipsec-mb0 0.52-2+b1 ii libsctp1 1.0.18+dfsg-1 ii zlib1g 1:1.2.11.dfsg-1+b1 stress-ng recommends no packages. stress-ng suggests no packages. -- no debconf information