[LTP] [PATCH v5 3/3] syscalls/msgstress: tune limit of processes for small machines

Cyril Hrubis chrubis@suse.cz
Fri Aug 20 15:34:30 CEST 2021


Hi!
> Forking the exactly amount of processes as the limit (either from
> max_pids or from cgroups) is risky - OS might be doing some work and

This comment does not seem to match the code. We apply the reserve to
the cgroup limit only. If we wanted to make sure that the reserve is
applied even in the case where there is no systemd cgroup we would have
to apply it in the tst_get_free_pids_() just before we check if
used_pids >= max_pids instead.

-- 
Cyril Hrubis
chrubis@suse.cz


More information about the ltp mailing list