Re: Re: PHP on 64bit Ubuntu

From: Date: Wed, 03 Sep 2008 15:57:39 +0000
Subject: Re: Re: PHP on 64bit Ubuntu
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-279408@lists.php.net to get a copy of this message
On Sep 3, 2008, at 8:19 AM, Shawn McKenzie wrote:
alexander lind wrote:
Hi All I just tested my PHP app on Ubuntu 64bit, and found that all my php scripts would consume about 5x more RAM memory there, compared to how much they use on my macbook pro (which to make things a bit more confusing also runs a 64bit OS). A page that would take up around 2.5 MB on the macbook, takes around 12 MB on the linux server. Does anyone know what might be causing this? Thanks Alec
Have the two installations been compiled with the exact same options/extensions? Are the exact same extensions being loaded on both installs?
You raise a very good point, and I think I might have been a bit hasty comparing my macbook pro against ubuntu, which both use different extensions and configure options. Now, I just tested the exact same setup on another Ubuntu machine, with the same everything except for that its 32bit instead of 64bit. Result (loading the same page on both machines): 32bit: 7640128 64bit: 14155776 So the 64bit version consumes roughly twice the amount of ram as the 32bit version. Makes sense, considering the pointers and runtime stack that was explained in this thread. Thanks Alec

« previous php.general (#279408) next »