Re: PHP and VMware: SLOW




m2m tech support wrote:
I'm finding PHP really slow when it runs in VMware.

On my ancient 1ghz sarge box:
php = 3 x perl

On my 3 ghz ubuntu 6.06 VMware instance, running php4:
php = 6 x perl

Why is php slower so much slower under VMware?

Are apache, php and perl configured on both servers exactly the same
way?

I'm running these from the command line.

Do you use the same versions?

No. On the real box, I'm using the versions from Fedora Core 5.
On the VM box, I'm using the versions from Ubuntu 6.06.
I provided the comparison against Perl as a way of working around this.

Are php and perl part of apache or compiled as modules?
Does php run with the same modules?

No modules, just plain old cli php and perl.


Although a factor of 2 is really strange. But when I run Linux via
VMware on my XP box and the vmware window is not active it takes
sometimes a couple of minutes to activate the window. Could it have
something to do with memory swapping of the host system?

Memory swapping is not an issue (plus the rand() won't allocate memory)
- how long did the benchmarks take on your boxes?

.



Relevant Pages

  • Re: PHP and VMware: SLOW
    ... php = 3 x perl ... Why is php slower so much slower under VMware? ... VMware on my XP box and the vmware window is not active it takes ...
    (php.general)
  • PHP and VMware: SLOW
    ... I'm finding PHP really slow when it runs in VMware. ... I wrote two benchmark scripts. ... perl takes 1 minute 18 seconds. ...
    (php.general)
  • Re: PHP and VMware: SLOW
    ... php = 3 x perl ... On my 3 ghz ubuntu 6.06 VMware instance, running php4: ... Why is php slower so much slower under VMware? ...
    (php.general)
  • Re: PHP and VMware: SLOW
    ... php = 3 x perl ... Why is php slower so much slower under VMware? ... With memory swapping I meant, that it WinXP is pushing VMware into the virtual memory while it is not active. ...
    (php.general)
  • Re: What are the differences between Perl and PHP when handling with Web pages
    ... What are the differences between Perl and PHP? ... anyway for the sake of good programming practice. ... I end up using PHP more for web development than PHP. ...
    (perl.beginners)