Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #15678

Re: Py2.7/FreeBSD: maximum number of open files

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.net!newsfeed.eweka.nl!eweka.nl!feeder3.eweka.nl!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <lists@cheimes.de>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.000
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'bug': 0.02; '2.7': 0.04; 'api.': 0.05; 'implements': 0.05; 'pointer': 0.05; 'python': 0.08; 'descriptor': 0.09; 'subject:files': 0.09; 'anyway': 0.09; 'api': 0.09; 'cc:addr:python-list': 0.15; 'abi': 0.16; 'descriptors.': 0.16; 'libc': 0.16; 'luckily': 0.16; 'open()': 0.16; 'pointers': 0.16; 'posix': 0.16; 'released.': 0.16; 'tobias': 0.16; "doesn't": 0.23; 'header:In-Reply-To:1': 0.23; 'library.': 0.24; 'cc:2**0': 0.25; 'guess': 0.25; '(in': 0.26; "i'm": 0.26; 'compile': 0.28; 'fix': 0.29; 'cc:addr:python.org': 0.29; '3.x': 0.30; 'subject:number': 0.30; 'thanks': 0.31; 'break': 0.32; "can't": 0.32; "won't": 0.32; "i've": 0.33; 'instead': 0.33; 'there': 0.33; 'header:User-Agent:1': 0.33; 'subject:/': 0.35; 'file': 0.36; '...': 0.36; 'but': 0.37; 'issue': 0.37; 'using': 0.37; 'received:org': 0.37; 'subject:: ': 0.39; 'schrieb': 0.84
Date Mon, 14 Nov 2011 18:13:12 +0100
From Christian Heimes <lists@cheimes.de>
User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:7.0.1) Gecko/20110929 Thunderbird/7.0.1
MIME-Version 1.0
To Tobias Oberstein <tobias.oberstein@tavendo.de>
Subject Re: Py2.7/FreeBSD: maximum number of open files
References <634914A010D0B943A035D226786325D42D0C264772@EXVMBX020-12.exch020.serverdata.net> <j9rfda$mfs$1@dough.gmane.org> <634914A010D0B943A035D226786325D42D0C2647C8@EXVMBX020-12.exch020.serverdata.net> <4EC1470B.90403@cheimes.de> <634914A010D0B943A035D226786325D42D0C2647EB@EXVMBX020-12.exch020.serverdata.net>
In-Reply-To <634914A010D0B943A035D226786325D42D0C2647EB@EXVMBX020-12.exch020.serverdata.net>
X-Enigmail-Version 1.4a1pre
Content-Type text/plain; charset=ISO-8859-1
Content-Transfer-Encoding 7bit
Cc "python-list@python.org" <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 <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.2706.1321290793.27778.python-list@python.org> (permalink)
Lines 23
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1321290793 news.xs4all.nl 6909 [2001:888:2000:d::a6]:36850
X-Complaints-To abuse@xs4all.nl
Xref x330-a1.tempe.blueboxinc.net comp.lang.python:15678

Show key headers only | View raw


Am 14.11.2011 18:03, schrieb Tobias Oberstein:
> This is unbelievable.
> 
> I've just tested: the bug (in libc) is still there on FreeBSD 8.2 p3 ... both 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!

A fix would break the ABI compatibility. I guess that you won't see a
fix for the issue until FreeBSD 9.0 is released.

And no, you can't re-compile Python to use the open() API instead of
fopen(). The built-in file type is developed around the file pointer
API, not the file descriptor API. Luckily Python 2.7 has a backport of
Python 3.x new IO library. The new IO API doesn't use file pointers at
all and implements its own layer around file descriptors. Good luck!

Christian

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: Py2.7/FreeBSD: maximum number of open files Christian Heimes <lists@cheimes.de> - 2011-11-14 18:13 +0100

csiph-web