On Thu, Dec 23, 2021 at 12:34:20PM +0100, natan <na...@epf.pl> wrote:

> W dniu 23.12.2021 o 12:12, raf pisze:
> > That looks like it should be plenty of processes,
> > as long as the server can really support that many.
> >
> > You could test it with something like this:
> >
> >     #!/usr/bin/env perl
> >     use warnings;
> >     use strict;
> >     my $max_nprocs = 8000;
> >     my $i = 0;
> >     while ($i < $max_nprocs)
> >     {
> >             $i++;
> >             my $pid = fork();
> >             die "fork #$i failed: $!\n" unless defined $pid;
> >             sleep(10), exit(0) if $pid == 0;
> >     }
> >     print "$i forks succeeded\n";
> >
> > For example, a VM here reports 7752 for ulimit -Su,
> > but the above script failed on the 3470th fork.
> >
> > cheers,
> > raf
> >
> in machine with postfix
> 
> time ./1.py
> 12000 forks succeeded
> 
> real    0m1,365s
> user    0m0,088s
> sys    0m1,276s

That looks like it should be enough.
Sorry, I'm out of ideas.

cheers,
raf

Reply via email to