delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
Message-ID: | <20040415204325.21595.qmail@web14303.mail.yahoo.com> |
Date: | Thu, 15 Apr 2004 13:43:25 -0700 (PDT) |
From: | Edward Deitz <endeitz AT yahoo DOT com> |
Subject: | Limit on number of open files |
To: | cygwin AT cygwin DOT com |
MIME-Version: | 1.0 |
Is there a way to increase the number of files that can be open simultaneously? Here's what I've tried: $ ulimit -n 1024 $ ulimit -n 1024 So I tested with the following code: #include <stdio.h> int main(int argc, char **argv) { int i; for (i = 0; i < 1000; i++) { FILE *f = fopen("/dev/null", "r"); if (!f) break; printf("%d\n", i); } exit(0); } Results: 0 1 ... 132 Segmentation fault (core dumped) So the limit appears to be 133 files. And it appears to have no relation to the ulimit command (which is probably intentional, I'm not sure if ulimit is supposed to work in Cygwin). Any ideas, anyone? Ed. __________________________________ Do you Yahoo!? Yahoo! Tax Center - File online by April 15th http://taxes.yahoo.com/filing.html -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |