Req #52569 [Com]: Implement "ondemand" process-manager (to allow zero children)
| From: | fat@php.net | Date: | Sat, 09 Jul 2011 00:24:31 +0000 |
| Subject: | Req #52569 [Com]: Implement "ondemand" process-manager (to allow zero children) | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-161718@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=52569&edit=1
ID: 52569
Comment by: fat@php.net
Reported by: mplomer at gmx dot de
Summary: Implement "ondemand" process-manager (to allow zero
children)
Status: Analyzed
Type: Feature/Change Request
Package: FPM related
PHP Version: 5.3.3
Assigned To: fat
Block user comment: N
Private report: N
New Comment:
I've submitted a new revision of the patch which patch fpm_events so that it won't
trigger an FD event if it's been triggered less than 500µs.
See if it corrects the previous bug.
Please remember to clean your source tree (make clean) before compiling otherwise
you may experience segfault or strange behaviors.
Previous Comments:
------------------------------------------------------------------------
[2011-07-08 20:22:00] fat@php.net
The following patch has been added/updated:
Patch Name: fpm-ondemand.v8-5.3.patch
Revision: 1310170920
URL: https://bugs.php.net/patch-display.php?bug=52569&patch=fpm-ondemand.v8-5.3.patch&revision=1310170920
------------------------------------------------------------------------
[2011-07-08 20:21:43] fat@php.net
The following patch has been added/updated:
Patch Name: fpm-ondemand.v8.patch
Revision: 1310170902
URL: https://bugs.php.net/patch-display.php?bug=52569&patch=fpm-ondemand.v8.patch&revision=1310170902
------------------------------------------------------------------------
[2011-07-08 19:38:06] fat@php.net
On what OS/version are you testing ?
------------------------------------------------------------------------
[2011-07-08 06:00:36] dbetz at df dot eu
Hm .. i can only see tons of:
20983 poll([{fd=4, events=POLLIN}], 1, 108) = 0 (Timeout)
20983 clock_gettime(CLOCK_MONOTONIC, {4578918, 852647570}) = 0
20983 clock_gettime(CLOCK_MONOTONIC, {4578918, 852702140}) = 0
20983 clock_gettime(CLOCK_MONOTONIC, {4578918, 852754708}) = 0
20983 clock_gettime(CLOCK_MONOTONIC, {4578918, 852807040}) = 0
20983 poll([{fd=4, events=POLLIN}], 1, 130) = 0 (Timeout)
20983 clock_gettime(CLOCK_MONOTONIC, {4578918, 983213866}) = 0
20983 clock_gettime(CLOCK_MONOTONIC, {4578918, 983267442}) = 0
20983 clock_gettime(CLOCK_MONOTONIC, {4578918, 983323753}) = 0
20983 clock_gettime(CLOCK_MONOTONIC, {4578918, 983368483}) = 0
and then thousands of:
20983 munmap(0xae151000, 1040) = 0
20983 munmap(0xae150000, 1040) = 0
20983 munmap(0xae14f000, 1040) = 0
20983 munmap(0xae14e000, 1040) = 0
20983 munmap(0xae14d000, 1040) = 0
The socket gets created here:
20983 socket(PF_FILE, SOCK_STREAM, 0) = 6
20983 setsockopt(6, SOL_SOCKET, SO_REUSEADDR, [1], 4) = 0
20983
unlink("/etc/httpd/fastcgi/dynamic/5-53LATEST-wordpressmit.imageupgrade2.domainfactory-kunde.de")
= -1 ENOENT (No such file or directory)
20983 umask(0111) = 027
20983 bind(6, {sa_family=AF_FILE,
path="/etc/httpd/fastcgi/dynamic/5-53LATEST-wordpressmit.imageupgrade2.domainfactory-kunde.de"},
110) = 0
20983 umask(027) = 0111
20983 listen(6, 128) = 0
When making an request nothing happens in the strace :-(
------------------------------------------------------------------------
[2011-07-08 05:43:44] fat@php.net
You can strace to see what happens:
set log_level to debug
set daemonize to no
then run something like
strace -f -s 1024 -o /tmp/php-fpm.strace.log /path/to/php-fpm
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=52569
--
Edit this bug report at https://bugs.php.net/bug.php?id=52569&edit=1