Re: PHP on 64bit Ubuntu
| From: | Robert Cummings | Date: | Wed, 03 Sep 2008 15:24:30 +0000 |
| Subject: | Re: PHP on 64bit Ubuntu | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-279403@lists.php.net to get a copy of this message | ||
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 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?
> > > >
> > > All pointers are twice the size, same goes for the runtime stack.
> > >
> >
> > But he says it's 5 times the size :)
> >
> > Cheers,
> > Rob.
> >
> I don't get it that people still think 64-bit is twice the 'size' of
> 32-bit. It's like saying 2 square meters is 2 times a square meter,
> while actually it is 4 times a square meter.
>
> So, 64-bits don't just take twice the memory, it can take up much more
> than that. Like somebody else says, the integers take a lot of space,
> so beware of typecasting properly......
Please explain how it can take up more than twice. If I have a fence
segment with 32 vertical pieces (called fence32) and I make a new fence
segment with 64 vertical pieces (called fence64) effectively doubling
the length. Tell me how building a 20 segment fence with fence64 pieces
can possibly more than double the length of the fence created with
fence32 pieces?
Cheers,
Rob.
--
http://www.interjinn.com
Application and Templating Framework for PHP