Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:84372 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 36366 invoked from network); 6 Mar 2015 01:22:27 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 6 Mar 2015 01:22:27 -0000 Authentication-Results: pb1.pair.com header.from=zxcvdavid@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=zxcvdavid@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.220.49 as permitted sender) X-PHP-List-Original-Sender: zxcvdavid@gmail.com X-Host-Fingerprint: 209.85.220.49 mail-pa0-f49.google.com Received: from [209.85.220.49] ([209.85.220.49:37850] helo=mail-pa0-f49.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 02/40-33996-15109F45 for ; Thu, 05 Mar 2015 20:22:26 -0500 Received: by paceu11 with SMTP id eu11so33240619pac.4 for ; Thu, 05 Mar 2015 17:22:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:message-id:in-reply-to:references:subject :mime-version:content-type; bh=ePvRHVp5sIA1BJO8gku/DdO0UZHHESVF147TXWA4b8g=; b=XnM1TWI99CwqZrJ8tvLnAoYMc7fL3s5BQeT5OH8iCnKhrQW/hmNDof4w5LUmQDgKkX GBPjKO/AV6cGH9Q2EGREoE1lf4g9fFdeg4V5P+9B6OiMAQ6tPh+ioHgcmY2G4jl1M40+ NCWNHE3lANuLWQdmG3LAXqrJulgcwJitno98+uy3p4YhSWxlBEzRxX/4i15ygAP3dHt+ tnoQlh20EXwSNVFT5Fhk1imJ59bgeYao6zIlbLbOw6sItRQf4LPK3co2gYyiA/zeAbdJ OxHuhFEV0DXflbACVzQSRzY1A6m9sFTrmgTF2Ybg2yjMAyDzEkKB6KkpqKK8TCW3mirw 6CmQ== X-Received: by 10.70.46.230 with SMTP id y6mr20833142pdm.96.1425604942804; Thu, 05 Mar 2015 17:22:22 -0800 (PST) Received: from [10.0.55.38] ([207.226.142.175]) by mx.google.com with ESMTPSA id bw3sm8107872pbb.9.2015.03.05.17.22.19 (version=TLSv1 cipher=RC4-SHA bits=128/128); Thu, 05 Mar 2015 17:22:21 -0800 (PST) Date: Fri, 6 Mar 2015 09:20:17 +0800 To: Xinchen Hui Cc: PHP Internals Message-ID: In-Reply-To: References: X-Mailer: sparrow 1.6.4 (build 1178) MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="54f90149_32fff902_36a5" Subject: =?utf-8?Q?=E5=9B=9E=E5=A4=8D=EF=BC=9A_?=[PHP-DEV] Enable Zend Signals Handler By Default From: zxcvdavid@gmail.com (Wei Dai) --54f90149_32fff902_36a5 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline =E5=9C=A8 2015=E5=B9=B43=E6=9C=885=E6=97=A5 =E6=98=9F=E6=9C=9F=E5=9B=9B=EF= =BC=8C=E4=B8=8B=E5=8D=889:27=EF=BC=8CXinchen Hui =E5=86=99=E9=81=93=EF=BC= =9A Hi, =20 > Hey internal: > =20 > =20 > There is also a problem we have been suffering from for a quite > long time, that is signal raised at OOM/Timeout when execution is in a > critical area will lead PHP crash or even more big troubles if it is > in shared memory. > =20 > You may still remember we disabled zend signal handlers before > PHP-5.4 was released because it doesn't work well as mod=5Fapache. whic= h > is described in =2361083. > =20 > Zend signal is a good way to fix the problem, thus I did some > research then fixed zend signals(make it works with apache2handler), > committed in https://github.com/php/php-src/commit/fd5a756ad44124ffa7e9= a5810a31ff49e91708cf > =20 > And no obviously performance affects in reallife app(benched with > wordpress). > =20 > Next, We may do some further optimizationes based on that. > =20 > =46or now, I want to make zend signals handler enable by default > (in configure) for PHP7, or maybe totally removed the > --enable-zend-signals option=3F thus make zend=5Fsignal.c always be > compiled and linked. > =20 > Is there any concerns or objections on this=3F I=E2=80=99m +1 on this, it sounds good and helpful. Thank you for your work. > =20 > thanks > =20 > -- =20 > Xinchen Hui > =40Laruence > http://www.laruence.com/ > =20 > =20 > =20 -- Wei Dai =40demon --54f90149_32fff902_36a5--