Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:9697 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 93646 invoked by uid 1010); 7 May 2004 08:45:15 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 93554 invoked from network); 7 May 2004 08:45:15 -0000 Received: from unknown (HELO tfmelsw1.tf1.groupetf1.fr) (83.145.64.85) by pb1.pair.com with SMTP; 7 May 2004 08:45:15 -0000 Received: from MSGEXS11.tf1.groupetf1.fr ([10.210.35.61]) by TFEXFSW1.tf1.groupetf1.fr with Microsoft SMTPSVC(6.0.3790.0); Fri, 7 May 2004 10:45:12 +0200 X-MimeOLE: Produced By Microsoft Exchange V6.0.6375.0 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Date: Fri, 7 May 2004 10:45:11 +0200 Message-ID: <30884B45CCC6714B800F6F294BEC0A9901D98718@MSGEXS11.tf1.groupetf1.fr> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [PHP-DEV] [PATCH] suppressing realpath() with APC + tiny patches Thread-Index: AcQzt5Ms4t4uQZ+kQI6g2A9pNk1D7wAVeaXQ To: "Sterling Hughes" Cc: X-OriginalArrivalTime: 07 May 2004 08:45:12.0724 (UTC) FILETIME=[9C745540:01C4340F] Subject: RE: [PHP-DEV] [PATCH] suppressing realpath() with APC + tiny patches From: JFBUSTARRET@tf1.fr ("BUSTARRET, Jean-Francois") I know the location is not the best one (IMHO, the PEAR default is not much= metter). You can't always have the fastest setup, because there are many= other factors to consider (security, ease of management, number of= servers/apps to handle, ...). My point was to evaluate the impact of the patch. Wherever you put your= files, it has a dramatic impact on performance, and I wish it (or any= similar patch) was part of the standard PHP distribution. Let's get rid of this useless (when using a cache) realpath call, without= having to migrate to PHP5 ! JFB > -----Message d'origine----- > De : Sterling Hughes [mailto:sterling@php.net] > Envoy=E9 : vendredi 7 mai 2004 00:15 > =C0 : BUSTARRET, Jean-Francois > Cc : internals@lists.php.net > Objet : Re: [PHP-DEV] [PATCH] suppressing realpath() with APC + tiny > patches >=0D >=0D > the first thing you would optimize is your code location -=0D > not your php=0D > installation... >=0D >=0D > On May 6, 2004, at 6:46 PM, BUSTARRET, Jean-Francois wrote: >=0D > > > > > > I just did a quick stress test of the patch. > > > > My config is : Xeon 2GHz/512MB/IDE drive, apache 1/PHP=0D > 4.2.3/APC 2.0.3. > > I did change the patch in order to apply it on PHP 4.2.3. > > > > The test template is : > > > for ($i =3D 1; $i <=3D 20; $i++) { > > include_once("include/include$i.php"); > > echo "-"; > > } > > ?> > > It is located on a NFS server and is 5 directories deep (2 local/3=0D > > NFS). > > > > The include/include$1.php template only does an echo. > > > > Here are the results : > > > > plain PHP : 296 req/s (TTFB : 260ms) > > + APC : 355 req/s (TTFB : 33ms) > > + delayed write : 766 req/s (TTFB : 21ms) > > > > Looks good ! > > > > I can forward the 4.2.3 patches if someone's interested. > > > > Jean-Fran=E7ois Bustarret > > eTF1 - Architecte > > > > ------------------------------------- > > Le present message (y compris tous les elements attaches) est=0D > > confidentiel et est destine a ses seuls destinataires. Si vous > > l'avez recu par erreur, merci de l'indiquer a son expediteur par=0D > > retour et de proceder a sa destruction dans vos systemes. > > Toute utilisation ou diffusion non autorisee de son contenu, en=0D > > totalite ou en partie, est strictement interdite. Les idees et > > opinions presentees dans ce message sont celles de son=0D > auteur, et ne=0D > > representent pas necessairement celles de TF1 (et/ou des > > entites membres du Groupe TF1). > > > > This message (including any attachments) is confidential and may be=0D > > privileged. If you have received it by mistake please notify > > the sender by return email and delete this message from=0D > your system.=0D > > Any unauthorised use or dissemination of this message in > > whole or in part is strictly prohibited. Any views or opinions=0D > > presented are solely those of its author and do not necessarily > > represent those of TF1 (and/or its group companies). > > > > -- > > PHP Internals - PHP Runtime Development Mailing List > > To unsubscribe, visit: http://www.php.net/unsub.php > > >=0D >=0D ------------------------------------- Le present message (y compris tous les elements attaches) est confidentiel= et est destine a ses seuls destinataires. Si vous l'avez recu par erreur, merci de l'indiquer a son expediteur par retour et= de proceder a sa destruction dans vos systemes.=0D Toute utilisation ou diffusion non autorisee de son contenu, en totalite ou= en partie, est strictement interdite. Les idees et=0D opinions presentees dans ce message sont celles de son auteur, et ne= representent pas necessairement celles de TF1 (et/ou des=0D entites membres du Groupe TF1). This message (including any attachments) is confidential and may be= privileged. If you have received it by mistake please notify=0D the sender by return email and delete this message from your system. Any= unauthorised use or dissemination of this message in=0D whole or in part is strictly prohibited. Any views or opinions presented= are solely those of its author and do not necessarily=0D represent those of TF1 (and/or its group companies).