This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Process limit in CYGWIN?
- From: "Lavrentiev, Anton (NIH/NLM/NCBI) [C] via cygwin" <cygwin at cygwin dot com>
- To: "'cygwin at cygwin dot com'" <cygwin at cygwin dot com>
- Date: Tue, 3 Dec 2019 20:49:18 +0000
- Subject: Process limit in CYGWIN?
- 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
- 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-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=LQSMJA97r8pLqQEuvxoObNeGGdbMZktuhYt2TBQfZoyM6WeZctNACOIZ+i1sLHJh5I6R3zBrSJEcnjUdTYaY2Rsox3xS9r6lHJJHgwOJw8sJk1j24XvvKS33VYbkXg9Dd4YhovQdzS60MPMuhSnM6T4wJF1JTLbgoy+iuqHrn4v36UtNMJbD22z8C1XyTj3D7N3Tt0aZTIPe9AYrTNaAvthBcKzG5vtrjoTfoB1CWRvAASe7BUPn87Bv7eKvlIGiGuW4GSgixdlp5PSSytFi51CbUx08RPxvHdJ4yFUQhVaskjnD4JJcHV0FG147/+tyT1h6F+usuh22vzrGoheIcw==
- Ironport-sdr: wfHw4SMuSg5ZtCkBjhe5xIqlNZBjPWGfnBxn99XV/3us2/ijJTCEx94tvRlnOKcyEbBg1lSizm zs+gL2vqwh9g==
- Reply-to: "Lavrentiev, Anton (NIH/NLM/NCBI) [C]" <lavr at ncbi dot nlm dot nih dot gov>
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