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

Krzysztof Kozlowski krzysztof.kozlowski@canonical.com
Thu Aug 26 11:50:22 CEST 2021


On 20/08/2021 15:34, Cyril Hrubis wrote:
> 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.

You are right. I'll move it to tst_get_free_pids_ to handle such case.


Best regards,
Krzysztof


More information about the ltp mailing list