stress-io-uring: reduce memory impact for smaller memory systems
Reduce iovec read/write number of blocks from 1024 to 4 at a time
to reduce mmap usage. Also open/close files on each round for more
file I/O meta date updates and improve buffer flushing on each round.
Remove direct I/O to use buffer cache. Remove D_SYNC to use buffer
cache more efficiently.
Signed-off-by: Colin Ian King <email address hidden>
It's useful to be able to spawn stressor instances and wait until
they are in a ready-to-run state and then synchronously start them
all together in the run stressing state.
Add a new --sync-start option to allow this. This change adds
some helper functions that wait for the sync start by SIGSTOP'ing
the processes re-starting them using SIGCONT.
For stressors that spawn their own processes there are helpers
to mmap and unmap a shared memory stress_pid_t pids array and
to link the pids together, and to start them in a synchronous
manner using the list of pids.
stress-cache: check RISCV_HWPROBE_EXT_ZICBOZ support for stress_cache_bzero
RISCV_HWPROBE_EXT_ZICBOZ flag from kernel headers on RISC-V was only
added in 6.7, test build will fail with an older kernel with:
error: ‘RISCV_HWPROBE_EXT_ZICBOZ’ undeclared
Check the flag first to fix this issue.
Fixes: f8654a05f4 ("stress-cache: add stress_cache_bzero() to support cache-based bzero")
Signed-off-by: Po-Hsu Lin <email address hidden>