X-Recipient: archive-cygwin@delorie.com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C338F386184C
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
	s=default; t=1598443255;
	bh=rvbHv2i/miMbs4aUCSxBuj7ZuYX8gs+4ivdS7VTGYE0=;
	h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post:
	 List-Help:List-Subscribe:From:Reply-To:From;
	b=r+bDMEx02A5LHimh5qpl4vXiFpC9Crlq+jO4yl3P1AzKVXnG6ZmhfinJFsPFr6D4J
	 BNin7dhSmHy+/dQfUwTQiq8KNHxBdGq3oYrGgEf68vYSav88fb6dquM8vqURRQVWCm
	 hueKYUgVm/nSxVp+kfR4flC4Fxsh5g6vyi0I/+Ck=
X-Original-To: cygwin@cygwin.com
Delivered-To: cygwin@cygwin.com
DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org A00333851C1C
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:subject:date:message-id:mime-version
 :content-transfer-encoding:thread-index:content-language;
 bh=Uyc6DLaGb25/32MxirE//lLzPSpK/fO4cnKfQ98c6h8=;
 b=gbKaQP04N2porvv9gDEo+o2ieB2hZsefZjuHOfiEyLdG3kkI8vC8PEAm6DrX60W8Xf
 s6w8C2H8E+ShSbYFPHJHK8kbbAkQyuB7ltRU84A6xbhDmS5r4hetNkjNNg4xiNsT8DtJ
 DKvfQrnu44EEQ3GToMDxTZ8YhaOWLufjpUmeD4oPcaA9phdU5aGckR/LCog2dO8Cu4Vz
 fNofAX51M1EYnPCMm6lGlVD30Za2ylH9cI0wI4ftIZIsPqPBZ4jB1ShkZKJe0+bThd0f
 pyaSbpH/ZyDptb/UZE1hSh7XHbsSbVxFyH/dTdu8HaMrpsSDy9xoxaSdnj0E41LNLaay
 wGPg==
X-Gm-Message-State: AOAM530WBn3Sj4WRYGJa5SMtjx7HWZtbvdU0+9um5gOIDsKkWGnvtWGM
 jIQJBk2t/d9ybt/QgymGbr6U4eKl71A=
X-Google-Smtp-Source: ABdhPJxxAG2YJwPGhqh9tWxnNZYOPZ2ByTpeMeKwcckoBpa+wLS/Xr6niAlpoz0KHu9djO65o9T64w==
X-Received: by 2002:a2e:3207:: with SMTP id y7mr7312185ljy.302.1598443251920; 
 Wed, 26 Aug 2020 05:00:51 -0700 (PDT)
To: <cygwin@cygwin.com>
Subject: Limit for number of child processes
Date: Wed, 26 Aug 2020 14:00:50 +0200
Message-ID: <000401d67ba0$8b1f33b0$a15d9b10$@gmail.com>
MIME-Version: 1.0
X-Mailer: Microsoft Outlook 16.0
Thread-Index: AdZ7oDrfzUXMB3MfSQKEXK7fWVb4oA==
Content-Language: en-gb
X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00, DKIM_SIGNED,
 DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,
 SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on
 server2.sourceware.org
X-BeenThere: cygwin@cygwin.com
X-Mailman-Version: 2.1.29
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-request@cygwin.com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=subscribe>
From: Kristian Ivarsson via Cygwin <cygwin@cygwin.com>
Reply-To: sten.kristian.ivarsson@gmail.com
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: "Cygwin" <cygwin-bounces@cygwin.com>

Dear cygwin folks

It seems like there's a limit of the number of possible child processes
defined to 256 with 'NPROCS' in //winsup/cygwin/child_info.h used in
'cprocs' in //winsup/cygwin/sigproc.cc

256 is quite few possible children in an enterprise environment and perhaps
the limit should be limited by the physical resources or possibly Windows ?

As of now, posix_spawnp sometimes fail with EAGAIN (maybe it should be
ENOMEM ?) if this limit is reached

Would it be possible to somehow make this dynamic and let the operating
system set the limits ?


Best regards,
Kristian

--
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple
