[LTP] [v2 2/2] lib/tst_pid.c: Increase PIDS_RESERVED to avoid fork failure.
Leo Liang
ycliang@andestech.com
Tue Feb 14 15:17:38 CET 2023
Hi Cyril,
On Tue, Feb 14, 2023 at 02:43:35PM +0100, Cyril Hrubis wrote:
> Hi!
> > > After Adjusting how we count used pid, we increase
> > > the number of PIDS_RESERVED to void fork failure.
> > nit: in this case I'd actually keep changes in single commit
> > (otherwise first commit alone would break tests),
>
> Do we get a different result from ps and parsing /proc? That sounds
> strange...
I think that's because "ps -eT" would list threads with the same PID
but with different SPID.
I get the following output on my VM.
ycliang@ubuntu01:~$ ps -eT | wc -l
170
ycliang@ubuntu01:~$ ls -d /proc/[0-9]* | xargs -n1 | wc -l
127
Best regards,
Leo
>
> --
> Cyril Hrubis
> chrubis@suse.cz
More information about the ltp
mailing list