[PATCH 4 of 6] plan9: prevent potential wait()

Augie Fackler raf at durin42.com
Thu Aug 15 10:06:38 CDT 2013

On Aug 13, 2013, at 10:20 PM, Jeff Sickel <jas at corpus-callosum.com> wrote:

> A small number, less than 130 forked children, may be
> beneficial on Plan 9 (see following test script).  But
> under certain cases like cloning a large repository or
> updating something that produces a significant number of
> children, we end up with an OSError exception that will
> cause hg to rollback the transaction and delete any
> changes written to the work area.  So until we have
> a solution that lets us fork() thousands of children
> like a clone of cpython would do in the worker calculation,
> we just punt and don't fork any.

What I'm hearing as I read this is we need a limit of how many workers to fork, and on plan9 that should be ~127.

More information about the Mercurial-devel mailing list