[LTP] [PATCH v2] ipc/msgstress03: Assume all forks will run concurently

Li Wang liwang@redhat.com
Thu Apr 13 10:52:00 CEST 2023


On Mon, Apr 3, 2023 at 11:53 PM Teo Couprie Diaz <teo.coupriediaz@arm.com>
wrote:

> It appears that msgstress03 doesn't account for all PIDs that its children
> can use, as it expects the tasks will terminate quickly and not reach
> the PID limit.
> On some systems, this assumption can be invalid and the PID limit
> will be hit.
> Change the limit to account for all possible children at once, knowning
> that each child will fork as well.
>
> Signed-off-by: Teo Couprie Diaz <teo.coupriediaz@arm.com>
> ---
> v2:
>   - Slightly change the computation, kind of similar to what is done
>     in msgstress04, to make the warning make sense with the change.
>   - Added comment to clarify.
>
> Maybe the message could be rephrased entirely ? Something along the lines
> of: "Maximum number of used processes higher than limit [...]"
>

Yes, I think so, at least it can be rewriten by new API.
Considering it is a msg stressful test, choose a proper
range/limit of pressure is quite important.

Btw, I help merged this patch, thanks!!


-- 
Regards,
Li Wang


More information about the ltp mailing list