From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lj1-x22b.google.com (mail-lj1-x22b.google.com [IPv6:2a00:1450:4864:20::22b]) by sourceware.org (Postfix) with ESMTPS id A00333851C1C for ; Wed, 26 Aug 2020 12:00:53 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org A00333851C1C Received: by mail-lj1-x22b.google.com with SMTP id t23so2041669ljc.3 for ; Wed, 26 Aug 2020 05:00:53 -0700 (PDT) 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) Received: from JOKK (87-249-176-245.ljusnet.se. [87.249.176.245]) by smtp.gmail.com with ESMTPSA id h17sm455531ljj.118.2020.08.26.05.00.51 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 26 Aug 2020 05:00:51 -0700 (PDT) From: To: 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 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit 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 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Aug 2020 12:00:55 -0000 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