Re: [PHP] PHP on 64bit Ubuntu

2008-09-03 Thread Lupus Michaelis
Robert Cummings a écrit : Exactly double. Please explain where I went wrong. You're right. The problem is elsewhere : Alignement, I forgot it my explanation :-/ It doesn't count in the sizeof computation, but it is actually allocate, and can take a lot of place. It can be interesting to

Re: [PHP] PHP on 64bit Ubuntu

2008-09-03 Thread steve
The Mac isn't really 64-bit. They do an interesting hybrid model in order to say it in marketing. But they won't have a real such version until the next major release of MacOS X. That is why the next version of Adobe Photoshop, etc., won't be 64bit on the Mac when Adobe Creative Suite 4 comes out.

Re: [PHP] PHP on 64bit Ubuntu

2008-09-03 Thread Micah Gersten
My apologies. I sent this before I had my morning caffeine. You are correct, it's twice the storage space. Thank you, Micah Gersten onShore Networks Internal Developer http://www.onshore.com Robert Cummings wrote: > On Wed, 2008-09-03 at 11:12 -0500, Micah Gersten wrote: > >> 32 bit is 2^

Re: [PHP] PHP on 64bit Ubuntu

2008-09-03 Thread alexander lind
On Sep 3, 2008, at 12:02 PM, Robert Cummings wrote: On Wed, 2008-09-03 at 11:55 -0700, alexander lind wrote: For anyone that might be following this thread because they also have a memory problem (on a 64 bit platform or not), here is some advice on how to alleviate it: - Use a bytecode ca

Re: [PHP] PHP on 64bit Ubuntu

2008-09-03 Thread Robert Cummings
On Wed, 2008-09-03 at 11:55 -0700, alexander lind wrote: > For anyone that might be following this thread because they also have > a memory problem (on a 64 bit platform or not), here is some advice on > how to alleviate it: > > - Use a bytecode cacher like xcache. Brought my 12MB pages down t

Re: [PHP] PHP on 64bit Ubuntu

2008-09-03 Thread alexander lind
For anyone that might be following this thread because they also have a memory problem (on a 64 bit platform or not), here is some advice on how to alleviate it: - Use a bytecode cacher like xcache. Brought my 12MB pages down to about 5MB. - If using php from a pre-compiled binary (like fro

Re: [PHP] PHP on 64bit Ubuntu

2008-09-03 Thread Robert Cummings
On Wed, 2008-09-03 at 18:17 +0200, Lupus Michaelis wrote: > Robert Cummings a écrit : > > > Please explain how it can take up more than twice. > >It is obvious for a C developper. > > == 8< == Zend/zend.h > typedef struct _zval_struct zval; > > typedef union _zvalue_value { > long lva

Re: [PHP] PHP on 64bit Ubuntu

2008-09-03 Thread Robert Cummings
On Wed, 2008-09-03 at 11:12 -0500, Micah Gersten wrote: > 32 bit is 2^32 - 1. > 64 bit is 2^64 - 1. > > 2 * 32 bit = 2 ^ 33 - 2 > That's not 64 bit. :) You don't understand what you're talking about. We're not talking values, we're talking storage width. Please go do some reading before coming ba

Re: [PHP] PHP on 64bit Ubuntu

2008-09-03 Thread Lupus Michaelis
Robert Cummings a écrit : Please explain how it can take up more than twice. It is obvious for a C developper. == 8< == Zend/zend.h typedef struct _zval_struct zval; typedef union _zvalue_value { long lval; /* long value */ double dval;

Re: [PHP] PHP on 64bit Ubuntu

2008-09-03 Thread Micah Gersten
32 bit is 2^32 - 1. 64 bit is 2^64 - 1. 2 * 32 bit = 2 ^ 33 - 2 That's not 64 bit. :) Thank you, Micah Gersten onShore Networks Internal Developer http://www.onshore.com Robert Cummings wrote: > > Please explain how it can take up more than twice. If I have a fence > segment with 32 vertical p

Re: [PHP] PHP on 64bit Ubuntu

2008-09-03 Thread Robert Cummings
On Wed, 2008-09-03 at 16:32 +0200, Aschwin Wesselius wrote: > Robert Cummings wrote: > > On Wed, 2008-09-03 at 15:42 +0200, Per Jessen wrote: > > > > > alexander lind wrote: > > > > > > > > > > I just tested my PHP app on Ubuntu 64bit, and found that all my php > > > > scripts would consu

Re: [PHP] PHP on 64bit Ubuntu

2008-09-03 Thread Robert Cummings
On Wed, 2008-09-03 at 16:32 +0200, Aschwin Wesselius wrote: > Robert Cummings wrote: > > On Wed, 2008-09-03 at 15:42 +0200, Per Jessen wrote: > > > >> alexander lind wrote: > >> > >> > >>> I just tested my PHP app on Ubuntu 64bit, and found that all my php > >>> scripts would consume about

Re: [PHP] PHP on 64bit Ubuntu

2008-09-03 Thread Jochem Maas
Robert Cummings schreef: On Wed, 2008-09-03 at 06:28 -0700, 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

Re: [PHP] PHP on 64bit Ubuntu

2008-09-03 Thread Aschwin Wesselius
Robert Cummings wrote: On Wed, 2008-09-03 at 15:42 +0200, Per Jessen wrote: alexander lind wrote: 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 thi

Re: [PHP] PHP on 64bit Ubuntu

2008-09-03 Thread alexander lind
On Sep 3, 2008, at 6:42 AM, Per Jessen wrote: alexander lind wrote: 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 6

Re: [PHP] PHP on 64bit Ubuntu

2008-09-03 Thread alexander lind
On Sep 3, 2008, at 7:13 AM, Robert Cummings wrote: On Wed, 2008-09-03 at 14:52 +0100, Hélio Rocha wrote: But why does that happens? 64 bit systems use larger intgegers for accessing the stack and memory. This enables 64 bit systems to access more than the traditional 4.4 gig memory limit

Re: [PHP] PHP on 64bit Ubuntu

2008-09-03 Thread Robert Cummings
On Wed, 2008-09-03 at 14:52 +0100, Hélio Rocha wrote: > But why does that happens? 64 bit systems use larger intgegers for accessing the stack and memory. This enables 64 bit systems to access more than the traditional 4.4 gig memory limit without resorting to tricks. This is the whole point of g

Re: [PHP] PHP on 64bit Ubuntu

2008-09-03 Thread Robert Cummings
On Wed, 2008-09-03 at 15:42 +0200, Per Jessen wrote: > alexander lind wrote: > > > 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 > >

Re: [PHP] PHP on 64bit Ubuntu

2008-09-03 Thread Robert Cummings
On Wed, 2008-09-03 at 06:28 -0700, 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 als

Re: [PHP] PHP on 64bit Ubuntu

2008-09-03 Thread Hélio Rocha
But why does that happens? On Wed, Sep 3, 2008 at 2:42 PM, Per Jessen <[EMAIL PROTECTED]> wrote: > alexander lind wrote: > > > 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 macb

Re: [PHP] PHP on 64bit Ubuntu

2008-09-03 Thread Per Jessen
alexander lind wrote: > 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 arou

[PHP] PHP on 64bit Ubuntu

2008-09-03 Thread alexander lind
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 m