Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:24308 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 69307 invoked by uid 1010); 10 Jul 2006 15:57:46 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 69292 invoked from network); 10 Jul 2006 15:57:46 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 10 Jul 2006 15:57:46 -0000 X-PHP-List-Original-Sender: andi@zend.com X-Host-Fingerprint: 80.74.107.235 mail.zend.com Linux 2.5 (sometimes 2.4) (4) Received: from ([80.74.107.235:7025] helo=mail.zend.com) by pb1.pair.com (ecelerity 2.1.1.3 r(11751M)) with ESMTP id AF/7D-16663-7F872B44 for ; Mon, 10 Jul 2006 11:57:45 -0400 Received: (qmail 7997 invoked from network); 10 Jul 2006 15:56:50 -0000 Received: from localhost (HELO ANDILENOVO) (127.0.0.1) by localhost with SMTP; 10 Jul 2006 15:56:50 -0000 To: "'Andi Gutmans'" , Date: Mon, 10 Jul 2006 08:57:35 -0700 Message-ID: <042a01c6a439$913ef030$6500a8c0@zend.2k> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <010901c6a23f$dc1e4b10$a610a8c0@zend.2k> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869 Thread-Index: AcahizpoTNPMGVZ9Qeu0lviquAB6JAAtIROwAH5x3WA= Subject: RE: [PHP-DEV] FW: Help needed in benchmarking memory patch From: andi@zend.com ("Andi Gutmans") References: <010901c6a23f$dc1e4b10$a610a8c0@zend.2k> No help??? Come on guys. I'm sure some of you can spare a few idle cycles :) > -----Original Message----- > From: Andi Gutmans [mailto:andi@zend.com] > Sent: Friday, July 07, 2006 8:38 PM > To: internals@lists.php.net > Subject: [PHP-DEV] FW: Help needed in benchmarking memory patch > > Sending 3rd time this time without the attachment. > You can get the diff at http://gutmans.org/alloc.zip > > > -----Original Message----- > From: Andi Gutmans [mailto:andi@zend.com] > Sent: Thursday, July 06, 2006 11:06 PM > To: 'internals@lists.php.net' > Subject: Help needed in benchmarking memory patch > > Hi all, > > Attached is a patch we've been working on to improve the > memory management of PHP. This patch's main advantage is > reducing the memory footprint of PHP, and therefore allowing > it to scale better. Although at low concurrencies the change > seems to be negligble, while testing at higher concurrencies > we saw significant improvement with this patch, mainly due to > lower memory usage. > > We would very much appreciate if people here tested this > patch and send in their results. It would help us understand > if others are getting consistent results with ours, and also > see whether there are any additional improvements we should make. > > This patch should apply cleanly to the PHP 5.2 CVS tree. > There's not much tuning that needs to be done. It uses > malloc() to allocate large memory blocks. You can control the > size of these blocks by setting the ZEND_MM_SEG_SIZE > environment variable before starting Apache/PHP. You may use > K or M to play around with the block size. The default we are > using is 256KB which seems to be a good balance. > > Any feedback would be appreciated! > > Andi > > -- > PHP Internals - PHP Runtime Development Mailing List To > unsubscribe, visit: http://www.php.net/unsub.php >