X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:reply-to:to:subject:date:message-id :content-type:content-transfer-encoding:mime-version; q=dns; s= default; b=AWjXgRcE/PxR9PHgaL0gPxBqAZDhb4CgBq4Yi9i2cID4BFhbMpWQ7 nkRtXeqyAAionFKMf/uuygfnBC9PL5dv4LJSurWv7rW66qbKZHm8H55Ia1N0iwMm qieXLvIH4BMxgZ/nFm6r8gnUj/xFcSoiKlWqhEu5OisIlb0I3UcbZ4= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:reply-to:to:subject:date:message-id :content-type:content-transfer-encoding:mime-version; s=default; bh=NRW8Trt3uWKlgDGYPnu6Y8IFR4A=; b=Og55208rmt9OiGO/pfrhb9Uz2PM7 mjQcy3XPzyZj54aDUKxI2E00QgCSAZaArE4fEH0lSOmQA53IGd+43hzxF73CShCN 2+1zPH2Vp5mToFf6fai2O/sdi7wELxf2PHAoYQ14MQN1k9K8ahKQOcWmFnW2gcoj 1qehbpcYx+yW1RE= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-3.8 required=5.0 tests=AWL,BAYES_00,SPF_PASS autolearn=ham version=3.3.1 spammy=H*F:D*gov, idk X-HELO: nihcesxway6.hub.nih.gov DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nih.gov; i=@nih.gov; q=dns/txt; s=NIH; t=1575406161; x=1606942161; h=from:to:subject:date:message-id: content-transfer-encoding:mime-version; bh=q37XnNmISYBxQKSJTnrK/NA5chp11qBlxsrNWsM3Cd8=; b=bOHDFkYu4//1nxGBmyq2BZt90Ey7cFh5RRiVlyfYEqTQo2RFHA/IB7RJ oO82ypoTQTNNYCTxojdHmbMaJq71iCrPtMVwQ9sYGICMmype5RZh1ZaVO bbDczgfW4a35N/SRpkNgRrm5DzZWhWkFWM7QhC9z2Z7kLQk5R6TsyDpFp 5/FI2YxeWiXw/IpxTWYLKYChP8cfakMJwd9hRD5qImRnLiQcirFmpvvwX Ymf/Q7yHmsp+xn3JjBS45Z5jdBAVBJHIwSY8hE5QNOh/IWKyTqxPwB5Q2 dUlXUXaQUhjzt+wD49+0XyRt6DL4gk802owsM/62wv8UKybvuu89z09qr A==; IronPort-SDR: wfHw4SMuSg5ZtCkBjhe5xIqlNZBjPWGfnBxn99XV/3us2/ijJTCEx94tvRlnOKcyEbBg1lSizm zs+gL2vqwh9g== ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=LQSMJA97r8pLqQEuvxoObNeGGdbMZktuhYt2TBQfZoyM6WeZctNACOIZ+i1sLHJh5I6R3zBrSJEcnjUdTYaY2Rsox3xS9r6lHJJHgwOJw8sJk1j24XvvKS33VYbkXg9Dd4YhovQdzS60MPMuhSnM6T4wJF1JTLbgoy+iuqHrn4v36UtNMJbD22z8C1XyTj3D7N3Tt0aZTIPe9AYrTNaAvthBcKzG5vtrjoTfoB1CWRvAASe7BUPn87Bv7eKvlIGiGuW4GSgixdlp5PSSytFi51CbUx08RPxvHdJ4yFUQhVaskjnD4JJcHV0FG147/+tyT1h6F+usuh22vzrGoheIcw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=q37XnNmISYBxQKSJTnrK/NA5chp11qBlxsrNWsM3Cd8=; b=lDREMQ+66vCGKh/NokFwlPeMpEaxoWL8Yg0D7G5p9OfTm36lo3cNnV2HRrOBpajTE3q1vdWBRe2Fl622gGYbMwV9F+OUTy2asFXAx1a6ileXJgID3J3wUgPo4kkQbQFppV6x19KD7wXFnDq+0TFtlOMbn731c+xYTRWYDsS/CUVZLDAn+Z/dSduQ7nr12T8qyKeJWiR1Y/AauUEGWeeDMo6hjBgTQ3GISZZA3RlC2mxza9PZP98QnRJeWgbWEg2UcnGPI7VC+N5M5sPaVh+qj325YfApL+rK419t3hrHAvBfylPtyZTqNGknvA5WiWCQapcUppDIf3aGo7lOv36Xrw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=ncbi.nlm.nih.gov; dmarc=pass action=none header.from=ncbi.nlm.nih.gov; dkim=pass header.d=ncbi.nlm.nih.gov; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nih.onmicrosoft.com; s=selector2-nih-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=q37XnNmISYBxQKSJTnrK/NA5chp11qBlxsrNWsM3Cd8=; b=kgya47pL7baXN5LzedRwhCnDfx3MG1nhrgtfheiRpI3ynmCw8J87WJ7oGAYKvIZBxvNf7z2Y/ng8fRrEb2IRnTB7/Fm4YT6hRPNOYN4Q/3qPkp00N+NeFvJRz2XFPFji9TbNo/AXazNVntfsg8XrO88AFDQ/D0l7+kVzgZaQHnQ= From: "Lavrentiev, Anton (NIH/NLM/NCBI) [C] via cygwin" Reply-To: "Lavrentiev, Anton (NIH/NLM/NCBI) [C]" To: "'cygwin AT cygwin DOT com'" Subject: Process limit in CYGWIN? Date: Tue, 3 Dec 2019 20:49:18 +0000 Message-ID: authentication-results: spf=none (sender IP is ) smtp.mailfrom=lavr AT ncbi DOT nlm DOT nih DOT gov; x-ms-oob-tlc-oobclassifiers: OLM:7691; x-ms-exchange-senderadcheck: 1 x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: Hx4035tRfk/s6PBaoC6K6Da2SfBfx8zUrgNropVFsyB5A/qZIkio/53d5jrv6P7N Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id xB3Ko2dj027165 Hi all, I have some test code that forks number of processes, and it looks like under Cygwin it fails at fork number 255 (plus minus one). There is no getrlimit()'s RLIMIT_NPROC on Cygwin (unlike Unices) yet I see that my shell somehow shows the process limit of 256: $ ulimit -u 256 I tried to look it up, but nothing useful comes up, so decided to ask the list -- it can be a lot quicker... 1. Is there a limit, indeed? 2. If there is, is it a documented feature? 3. Can it be found out programmatically? (IDK how bash does it, since like I mentioned, RLIMIT_NPROC is nonexistent, and even with bash, changing the "-u" limit produces EINVAL, and Cygwin source code confirms that, too.) 4. Can the limit be changed (dynamically or compile time)? Thanks, Anton -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple