[LTP] [PATCH 1/1] tst_pids.c: fix fork failure on small memory systems

Jan Stancek jstancek@redhat.com
Tue Feb 7 17:33:37 CET 2023


On Tue, Feb 7, 2023 at 2:42 PM Petr Vorel <pvorel@suse.cz> wrote:
>
> Hi Leo,
>
> > Running syscalls/msgstress03 on a system with less than ~1 GB of RAM fails:
>
> >       msgstress03    1  TFAIL  :  msgstress03.c:163:  Fork failed (may be OK if under stress)
>
> > The reason is that besides /proc/sys/kernel/pid_max, /proc/sys/kernel/threads-max
> > is another factor determining how many processes a system could create.
>
> > Use the smaller number between pid_max and threads-max as the nprocs.
>
> Makes sense.
> Reviewed-by: Petr Vorel <pvorel@suse.cz>
>

Acked-by: Jan Stancek <jstancek@redhat.com>



More information about the ltp mailing list