Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:39057 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 13060 invoked from network); 17 Jul 2008 15:41:47 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 17 Jul 2008 15:41:47 -0000 Authentication-Results: pb1.pair.com header.from=stas@zend.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=stas@zend.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain zend.com designates 212.25.124.163 as permitted sender) X-PHP-List-Original-Sender: stas@zend.com X-Host-Fingerprint: 212.25.124.163 il-gw1.zend.com Windows 2000 SP4, XP SP1 Received: from [212.25.124.163] ([212.25.124.163:16491] helo=il-gw1.zend.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id E6/C7-08057-A386F784 for ; Thu, 17 Jul 2008 11:41:47 -0400 Received: from us-ex1.zend.com ([192.168.16.5]) by il-gw1.zend.com with Microsoft SMTPSVC(6.0.3790.3959); Thu, 17 Jul 2008 18:42:14 +0300 Received: from [192.168.17.34] ([192.168.17.34]) by us-ex1.zend.com with Microsoft SMTPSVC(6.0.3790.3959); Thu, 17 Jul 2008 08:42:11 -0700 Message-ID: <487F6853.2080003@zend.com> Date: Thu, 17 Jul 2008 08:42:11 -0700 Organization: Zend Technologies User-Agent: Thunderbird 2.0.0.14 (Windows/20080421) MIME-Version: 1.0 To: Jochem Maas CC: "'internals@lists.php.net'" References: <3B058FC38F54184DB97A62574F17828302E47F8F@magdeburg2.nasa30.com> <487F1E1C.8000002@iamjochem.com> In-Reply-To: <487F1E1C.8000002@iamjochem.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 17 Jul 2008 15:42:11.0349 (UTC) FILETIME=[AD908C50:01C8E823] Subject: Re: [PHP-DEV] PHP vs PHP NTS benackmark (win32) From: stas@zend.com (Stanislav Malyshev) Hi! > a, what are the ramifications of having to run php without threading > when we live in a world that's increasingly moving towards > multi-core/multi- CPU systems? I'd say next to none, since multi-CPU systems are perfectly capable of running multiple processes and PHP lives in the context of the web server where multiple processes are just fine. > b, Is php not missing out here big time? Not really, even though some cool stuff may be done, but that's probably outside standard threading model. > d, Will threads ever become recommended in/for php? Unless some serious change happens, I don't see it likely. "Shared nothing" works not too bad. > e, If threads become the norm, will php code have to be written > differently to account for threads? too hypothetical for me :) > f, are there things I can/should be doing to my [production] > systems/software-stacks to leverage extra performance for my php > code from CPUs with multiple cores (and/or machines with multiple > CPUs)? Have Apache with bigger MaxClients? ;) -- Stanislav Malyshev, Zend Software Architect stas@zend.com http://www.zend.com/ (408)253-8829 MSN: stas@zend.com