Re: [PHP] Re: 64bit vs. 32bit

2009-01-20 Thread Ross McKay
On Mon, 19 Jan 2009 18:39:40 -0800, James Colannino wrote:

I could be wrong, but I'll bet anything that Wine made use of the now
defunct vm86 component of the x86 architecture.  [...]

Yes, I believe that's true, and that it's not available when you compile
for x86-64. However... why? If you really need to run DOS programs,
there's always DOSBOX, or even FreeDOS running in QEMU or similar, and
the graphics support will be better than whatever Wine would have
allowed.
-- 
Ross McKay, Toronto, NSW Australia
Nobody ever rioted for austerity - George Monbiot

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Re: 64bit vs. 32bit

2009-01-20 Thread Ross McKay
Micah Gersten wrote:

Linux can already address all the RAM on a 32 bit system with PAE.  The
advantage of 64 bit with regards to RAM is that a single process can
address more than 2.5 - 2.7 GB of RAM.

True, what I meant was processes on Linux will be able to address more.
Good catch. 

Even with PAE and 64GB of RAM, there's a physical limit on what a
process can address, 4GB, and that's further limited by resources that
must be mapped into the process space. IIRC, the number is more like
3.3GB or thereabouts, depending on the build and hardware. Unless, of
course, they're specifically coded to make use of PAE... :)
-- 
Ross McKay, Toronto, NSW Australia
My old man told me one time, you never get wise, you only get older
- Dandy Warhols

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: 64bit vs. 32bit

2009-01-19 Thread Ross McKay
On Mon, 19 Jan 2009 14:56:36 -0600, dbrooke wrote:

I am interested in hearing opinions about if there
are reasons to stay with a 32bit php/apache if there
is 64bit options available. What are the pros/cons
in running in the different architectures?

If you need to run some 32-bit stuff, you'll have multiple copies of
some libraries (one each for 32-bit and 64-bit). But hard drive space is
cheap these days.

You'll also use a little more RAM due to pointer and integer sizes.
However, Linux will be able to address more RAM on a 3GB system.

One restriction I know (knew?) of is that you can't run DOS programs
under Wine on 64-bit, but then... why? Not much of a restriction here,
at least. Conversely, the Wine people are working on 64-bit support in
Wine.

There have been drivers for some hardware that have not been available
for 64-bit, and that may still be true. I remember that early cuts of
madwifi for Atheros AR242x wifi were only available for 32-bit for quite
a while (now resolved). If you have hardware that requires special
drivers, check that 64-bit drivers are available.

PHP specific (at last ;) that comes to mind is that time_t on 64-bit
solves the Year 2038 problem, so any date calculations you have in PHP
will work past 2038. This includes forecasting 30+ years into the
future, which will break in PHP on 32-bit unless you avoid time_t based
functions like time() and stick with DateTime objects.
-- 
Ross McKay, Toronto, NSW Australia
Let the laddie play wi the knife - he'll learn
- The Wee Book of Calvin

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: 64bit vs. 32bit

2009-01-19 Thread Nathan Rixham

dbrooke wrote:

Hello,
I am interested in hearing opinions about if there
are reasons to stay with a 32bit php/apache if there
is 64bit options available. What are the pros/cons
in running in the different architectures?

(Fat Binary apache2, *nix platform)

Thanks,
Donovan



just to add in; I use 64 bit vista and ubuntu at home (on quadcore), php 
works fine - likewise at work 64 bit on linux with amd processor - all fine.


one note though.. maybe I'm missing but there isn't a php 64 bit 
(official) release? maybe there is and I'm blind.


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Re: 64bit vs. 32bit

2009-01-19 Thread Micah Gersten
Ross McKay wrote:
 You'll also use a little more RAM due to pointer and integer sizes.
 However, Linux will be able to address more RAM on a 3GB system.
   
Linux can already address all the RAM on a 32 bit system with PAE.  The
advantage of 64 bit with regards to RAM is that a single process can
address more than 2.5 - 2.7 GB of RAM.


Thank you,
Micah Gersten
onShore Networks
Internal Developer
http://www.onshore.com



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Re: 64bit vs. 32bit

2009-01-19 Thread Ashley Sheridan
On Mon, 2009-01-19 at 18:32 -0600, Micah Gersten wrote:
 Ross McKay wrote:
  You'll also use a little more RAM due to pointer and integer sizes.
  However, Linux will be able to address more RAM on a 3GB system.

 Linux can already address all the RAM on a 32 bit system with PAE.  The
 advantage of 64 bit with regards to RAM is that a single process can
 address more than 2.5 - 2.7 GB of RAM.
 
 
 Thank you,
 Micah Gersten
 onShore Networks
 Internal Developer
 http://www.onshore.com
 
 
 
And obviously better bandwidth for dealing with larger data sets.
Probably not all that useful for your day-to-day scripts though...


Ash
www.ashleysheridan.co.uk


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Re: 64bit vs. 32bit

2009-01-19 Thread James Colannino
Ross McKay wrote:

 One restriction I know (knew?) of is that you can't run DOS programs
 under Wine on 64-bit, but then... why?

I could be wrong, but I'll bet anything that Wine made use of the now
defunct vm86 component of the x86 architecture.  That allowed the CPU to
implement a virtual machine with limited memory to appear as a
separate process to the operating system, and is how most DOS instances
on 32-bit OS's were implemented prior to the x86_64 architecture.

On its way to being phased out, you can now only use vm86 if you boot
the CPU in 32-bit protected mode, so the way DOS is run now is via VM
software like KVM, VMWare, Xen, etc.

Not sure how Wine was implemented though, so I could be very wrong :)

James

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php