#28398 [Opn]: Random pauses in execution

From: Date: Fri, 14 May 2004 12:35:52 +0000
Subject: #28398 [Opn]: Random pauses in execution
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-59622@lists.php.net to get a copy of this message
ID: 28398 User updated by: bheam at online dot no Reported By: bheam at online dot no Status: Open Bug Type: Performance problem Operating System: linux fedora core 1 PHP Version: 4.3.6 New Comment: The reproduction code might not be relevant since there seems to be some weird type of output buffering on the box. (might be the sshd) another thing to note is that the cpu usage is usually around 5% when said problems are occuring. (it really seems like it's processing a sleep(5) :p ) delays vary from 0.1sec to 5sec (even more a couple times) Previous Comments: ------------------------------------------------------------------------ [2004-05-14 14:21:16] bheam at online dot no Description: ------------ I'm developing a publishing tool with php, but am having trouble after i switched server. Old configuration: P3 800mhz 512mb ram New configuration p4 2.8 x 2 512mb ram s-ata disks, raid both systems run: php-4.3.3 apache-2.0.47 mysql-4.0.13 (not relevant) also upgraded to php-4.3.6 on p4 without any change. On the new system, the php code seems to be pausing at random places (have been inserting error_log calls at certain points in code) for example it suddenly spent 4 seconds between 2 error_log that only had a echo() command in between. I made a simple loop that echo("."), and it's smooth on the p3, but it's choppy and pauses every now and then on the 2xP4. i also made a similar program in c++ and it runs smooth (to prove it's not network) i've executed the .php with php -q, proving it's not apache. Reproduce code: --------------- for ($cnt = 0; $cnt < 30000; $cnt++) { for ($ca = 0;$ca < 100; $ca++) { $a = $a * 3; $a = $a + 1; $a = $a / 3; } echo("."); } ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=28398&edit=1

« previous php.bugs (#59622) next »