Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:53102 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 21360 invoked from network); 6 Jun 2011 23:05:22 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 6 Jun 2011 23:05:22 -0000 Authentication-Results: pb1.pair.com header.from=johannes@schlueters.de; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=johannes@schlueters.de; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain schlueters.de from 217.114.211.66 cause and error) X-PHP-List-Original-Sender: johannes@schlueters.de X-Host-Fingerprint: 217.114.211.66 ns.km36107.keymachine.de Received: from [217.114.211.66] ([217.114.211.66:43491] helo=config.schlueters.de) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id DF/20-20040-E2D5DED4 for ; Mon, 06 Jun 2011 19:05:21 -0400 Received: from [192.168.2.230] (ppp-93-104-45-68.dynamic.mnet-online.de [93.104.45.68]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by config.schlueters.de (Postfix) with ESMTPSA id 37042723B4; Tue, 7 Jun 2011 01:05:14 +0200 (CEST) To: Mike van Riel Cc: Julien Pauli , David =?ISO-8859-1?Q?Z=FClke?= , internals@lists.php.net In-Reply-To: <33db85fd3ebaa4f330120da5fa6445e1@naenius.com> References: <73A0E06E-55E0-4C48-B8F8-BCAFA3216892@bitextender.com> <33db85fd3ebaa4f330120da5fa6445e1@naenius.com> Content-Type: text/plain; charset="UTF-8" Date: Tue, 07 Jun 2011 01:05:12 +0200 Message-ID: <1307401512.1894.28.camel@guybrush> Mime-Version: 1.0 X-Mailer: Evolution 2.30.2 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Trying to find out where the memory went From: johannes@schlueters.de (Johannes =?ISO-8859-1?Q?Schl=FCter?=) On Mon, 2011-06-06 at 22:30 +0200, Mike van Riel wrote: > 1. Does it hurt to disable the Zend MM? > 2. Can it be done from inside a PHP Script? > 3. Why is the memory consumption so much lower, even lower than my > calculations? When you disable Zend MM PHP will not use it but directly the system's allocator, which won't be counted by ZendMM therefore. you therefore loose all PHP-specific allocation improvements and the memory leak protections. Nothing you'd actually want ;-) Disabling the ZendMM is mostly useful for using memory debuggers (incl. valgrind) to do further checks. > I assume it is a good thing to at least try to create an easy way to > reproduce the issue (cannot include my test file) and create a bug > report about this :) Reproducible bug reports are always a good thing. johannes