Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:88202 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 91013 invoked from network); 15 Sep 2015 01:31:41 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 15 Sep 2015 01:31:41 -0000 Authentication-Results: pb1.pair.com header.from=rasmus@lerdorf.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=rasmus@lerdorf.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain lerdorf.com designates 209.85.220.50 as permitted sender) X-PHP-List-Original-Sender: rasmus@lerdorf.com X-Host-Fingerprint: 209.85.220.50 mail-pa0-f50.google.com Received: from [209.85.220.50] ([209.85.220.50:33682] helo=mail-pa0-f50.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 3D/07-48700-BF477F55 for ; Mon, 14 Sep 2015 21:31:40 -0400 Received: by pacex6 with SMTP id ex6so159859499pac.0 for ; Mon, 14 Sep 2015 18:31:36 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:cc:from:message-id:date :user-agent:mime-version:in-reply-to:content-type; bh=GQG8VV28fkXyu6bGOxKtgxosWzZdSmKu0qmRzhGdSnw=; b=NrdIVkg54Ypm8IHADSnFEOO5v0G23PiI6c0UMKn5yqRkOCHlMTeYDC1jyFdYpr8v0N 9J9Xnajt7SWMqNZEJRDycPTxk8YOtCw3A9y6NgwiTHrwsoZMwuXxQ2UqMI2TszD2ivrJ c/fXtBJDmzEvNRwAylOKfRmp7bj03qSIpWn31q9wF3TeQf9faEKKz8qEuNlAlcSbj20/ 1/XWrbGekQX++9GHRum/aKpsizbpOkuDziKB9riFFaYWRG2Dj//PBgU2PMtwH0VXjsca HaHbCJAmvv303u8riheSwugZXOt1yZB0mCpxaIkmAxbBWy4HHDFBryGT69aqyv3vrg7R cjGA== X-Gm-Message-State: ALoCoQmBvur3q8cTvYzVgUjlOwMx/ni7ZQGK9c2CvPMAY9/6eVc+NXvKmTUPPNhkUGv0ol425PNu X-Received: by 10.68.132.234 with SMTP id ox10mr38517786pbb.128.1442280696810; Mon, 14 Sep 2015 18:31:36 -0700 (PDT) Received: from [192.168.200.14] (c-50-131-44-225.hsd1.ca.comcast.net. [50.131.44.225]) by smtp.googlemail.com with ESMTPSA id em1sm18530339pbd.42.2015.09.14.18.31.34 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 14 Sep 2015 18:31:34 -0700 (PDT) To: Anatol Belski , 'Dmitry Stogov' References: <031201d0ef28$abcec710$036c5530$@belski.net> <035401d0ef32$440361e0$cc0a25a0$@belski.net> Cc: 'Anatol Belski' , 'Kalle Sommer Nielsen' , 'Xinchen Hui' , 'Nikita Popov' , 'Zeev Suraski' , 'Andi Gutmans' , 'PHP Internals' X-Enigmail-Draft-Status: N1110 Message-ID: <55F774F1.3040502@lerdorf.com> Date: Mon, 14 Sep 2015 18:31:29 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 In-Reply-To: <035401d0ef32$440361e0$cc0a25a0$@belski.net> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="JIRwEXwvAC97g54VSuRKvTMg4mULBsm9K" Subject: Re: [PHP-DEV] Re: [PHP-CVS] com php-src: Added an experemental ability to move PHP code pages (PHP TEXT segment) into HUGE pages. PHP should be configured and built with --enable-huge-code-pages, OS should be configured to provide huge pages. It's possibl From: rasmus@lerdorf.com (Rasmus Lerdorf) --JIRwEXwvAC97g54VSuRKvTMg4mULBsm9K Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 09/14/2015 02:13 PM, Anatol Belski wrote: >=20 >=20 >> -----Original Message----- >> From: Dmitry Stogov [mailto:dmitry@zend.com] >> Sent: Monday, September 14, 2015 10:37 PM >> To: Anatol Belski >> Cc: Anatol Belski ; Kalle Sommer Nielsen ; >> Rasmus Lerdorf ; Xinchen Hui ;= >> Nikita Popov ; Zeev Suraski ; And= i >> Gutmans ; PHP Internals >> Subject: Re: [PHP-DEV] Re: [PHP-CVS] com php-src: Added an experementa= l >> ability to move PHP code pages (PHP TEXT segment) into HUGE pages. PHP= >> should be configured and built with --enable-huge-code-pages, OS shoul= d be >> configured to provide huge pages. It's possibl >> >>> >>> With the new huge memory pages feature I'd suggest a bit softer - >>> enabling its building, but setting opcache.enable_huge_code_pages=3D0= by >> default. >> >> >> OK. >> >> >>> Then it can be easy enable and give one more intermediate step for pr= e >>> testing and go into RC4 completely if ok. >> >> >> In general we may get build problems on some platforms... >> >> >>> What do you think? >>> >> >> I didn't get, do you like to delay this for RC4? or enable it at compi= le time and >> disable at run-time by default for RC3? >> I agree with both. >> > I was suggesting the latter - build and disable at run-time. With RC4 I= meant - as it's run-time enabled by default currently, that could be tur= ned on by default in RC4 if everything was well in RC3. >=20 > Regarding possible build issues you mention - probably some magic in co= nfig.m4 could disable huge pages? I wasn't aware, but probably yep - like= FreeBSD or OSX likely to not to have the sys/prctl.h . This could be a r= eason for delaying till RC4, but it's actually easy solved doing some tes= t compilation in config.m4 . I'd see build + disable on run-time in RC3 a= s a better move because it turns the test circle earlier which is good co= nsidering there are only 4 RCs to go yet. As long as we fail gracefully when compiled with hugepage support and then run on a system that doesn't have any hugepages configured. These days the build box and the production execution box are rarely the same machine. Redhat enables THP by default and has for a while, but I know lots of admins that disable this feature right away on production machines. I don't think it is default on Ubuntu, but at least they have hugepage tools to make it easy to configure. And from a quick look at Debnian (jessie) it wasn't obvious how to get hugepages working. I don't see a package for hugeadm offhand. The kernel supports it, obviously, but you need to take some steps to configure them. Which means we also need to spend a bit of time documenting how to enable hugepages at the OS level for the various operating systems to go along with this feature. -Rasmus --JIRwEXwvAC97g54VSuRKvTMg4mULBsm9K Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iEYEARECAAYFAlX3dPUACgkQlxayKTuqOuC//QCfbQcTTji5GCmBawyxPz7V7kj5 XZUAnj9MWwb0K6PtkAESLjuqHWSRprEx =mAtu -----END PGP SIGNATURE----- --JIRwEXwvAC97g54VSuRKvTMg4mULBsm9K--