Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.002 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'bug': 0.02; 'happily': 0.07; 'python': 0.08; 'sockets': 0.09; 'subject:files': 0.09; 'anyway': 0.09; 'api': 0.09; 'files.': 0.09; 'cc:addr:python- list': 0.15; 'int.': 0.16; 'libc': 0.16; 'open()': 0.16; 'overflow': 0.16; 'overflow.': 0.16; 'posix': 0.16; 'strange:': 0.16; 'twisted': 0.16; 'seems': 0.19; 'file,': 0.21; 'header:In- Reply-To:1': 0.23; 'cc:2**0': 0.25; 'code': 0.25; '(in': 0.26; "i'm": 0.26; 'compile': 0.28; 'cc:addr:python.org': 0.29; 'subject:number': 0.30; 'thanks': 0.31; 'signed': 0.31; "i've": 0.33; 'there': 0.33; 'received:169': 0.34; 'received:169.254': 0.34; 'thus,': 0.34; 'subject:/': 0.35; '...': 0.36; 'charset:us- ascii': 0.36; 'url:pipermail': 0.36; 'but': 0.37; 'using': 0.37; 'configured': 0.38; 'some': 0.38; 'perhaps': 0.38; 'url:org': 0.38; 'subject:: ': 0.39; 'hit': 0.39; 'more': 0.60; 'your': 0.61; 'limit': 0.67; '100': 0.69; 'soon': 0.72; 'service)': 0.84 From: Tobias Oberstein To: Christian Heimes Date: Mon, 14 Nov 2011 09:03:46 -0800 Subject: AW: Py2.7/FreeBSD: maximum number of open files Thread-Topic: Py2.7/FreeBSD: maximum number of open files Thread-Index: Acyi7asqMv42TPK2T7+VueM2fbPPcAAAVR8g References: <634914A010D0B943A035D226786325D42D0C264772@EXVMBX020-12.exch020.serverdata.net> <634914A010D0B943A035D226786325D42D0C2647C8@EXVMBX020-12.exch020.serverdata.net> <4EC1470B.90403@cheimes.de> In-Reply-To: <4EC1470B.90403@cheimes.de> Accept-Language: de-DE, en-US Content-Language: de-DE X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: de-DE, en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Cc: "python-list@python.org" X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 28 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1321290230 news.xs4all.nl 6906 [2001:888:2000:d::a6]:52572 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:15677 > > I need 50k sockets + 100 files. > > > > Thus, this is even more strange: the Python (a Twisted service) will > > happily accept 50k sockets, but as soon as you do open() a file, it'll = bail out. >=20 > A limit of 32k smells like a overflow in a signed int. Perhaps your syste= m is > able and configured to handle more than 32k FDs but you hit an artificial= limit > because some C code or API has a overflow. This seems to be a known bug i= n > FreeBSD http://lists.freebsd.org/pipermail/freebsd-bugs/2010- > July/040689.html This is unbelievable. I've just tested: the bug (in libc) is still there on FreeBSD 8.2 p3 ... bo= th on i386 _and_ amd64. Now I'm f***d;( A last chance: is it possible to compile Python for not using libc fopen(), but the Posix open()? Thanks anyway for this hint!