Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:57362 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 78836 invoked from network); 13 Jan 2012 22:43:03 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 13 Jan 2012 22:43:03 -0000 Authentication-Results: pb1.pair.com header.from=h.reindl@thelounge.net; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=h.reindl@thelounge.net; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain thelounge.net designates 91.118.73.15 as permitted sender) X-PHP-List-Original-Sender: h.reindl@thelounge.net X-Host-Fingerprint: 91.118.73.15 mail.thelounge.net Received: from [91.118.73.15] ([91.118.73.15:35650] helo=mail.thelounge.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 9F/94-50267-573B01F4 for ; Fri, 13 Jan 2012 17:43:02 -0500 Received: from srv-rhsoft.rhsoft.net (openvpn-241.thelounge.net [10.0.0.241]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mail.thelounge.net (Postfix) with ESMTPSA id 2409EA3 for ; Fri, 13 Jan 2012 23:42:59 +0100 (CET) Message-ID: <4F10B372.3040002@thelounge.net> Date: Fri, 13 Jan 2012 23:42:58 +0100 Organization: the lounge interactive design User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:9.0) Gecko/20111222 Thunderbird/9.0 MIME-Version: 1.0 To: internals@lists.php.net References: <4F105D9D.3010704@lerdorf.com> In-Reply-To: <4F105D9D.3010704@lerdorf.com> X-Enigmail-Version: 1.3.4 OpenPGP: id=7F780279; url=http://arrakis.thelounge.net/gpg/h.reindl_thelounge.net.pub.txt Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig9DEDBAA28EE8CC5B57168C34" Subject: Re: [PHP-DEV] FD_SETSIZE warning? From: h.reindl@thelounge.net (Reindl Harald) --------------enig9DEDBAA28EE8CC5B57168C34 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Am 13.01.2012 17:36, schrieb Rasmus Lerdorf: > FD_SETSIZE is a system limit on the number of open files a single > process can have. From a bash shell type: ulimit -n > and you will probably see this magical 1024 number pop up. This means > that the default is 1024 on your system, so raising it in PHP won't > actually do anything unless you also raise it on your system. We try to= > match the limit in order to give you a sensible error message instead o= f > your program just breaking quietly, or with a warning that doesn't tell= > you that it is due to hitting a system limit. >=20 > So, in order to raise this you have to both tell your operating system > that you want to allow individual processes to open more than 1024 file= s > each and you have to recompile PHP with this higher limit. >=20 > Now, having said that, I don't quite understand why a single PHP cgi > process would ever need more than 1024 open files at the same time. Wha= t > exactly are you doing that needs this many descriptors? Sounds like you= > have a descriptor leak there somehow. on "old" sysv-systems it was easy to raise this number with "modern" systemd-units "LimitNOFILE=3D30000" as example is ONE simple line to raise this limit it is not the job of PHP try to GUESS system-limits and define them on compile-time --------------enig9DEDBAA28EE8CC5B57168C34 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk8Qs3IACgkQhmBjz394AnllswCcCVrFLxnoCXtuCcRi9TMv2kZl P3kAoIQGc260ArejHlONieUXj36v4V7V =yNZD -----END PGP SIGNATURE----- --------------enig9DEDBAA28EE8CC5B57168C34--