Req #71854 [NEW]: FPM: Please make epoll sleep interval configurable
| From: | elrond+php dot net at samba-tng dot org | Date: | Fri, 18 Mar 2016 16:17:56 +0000 |
| Subject: | Req #71854 [NEW]: FPM: Please make epoll sleep interval configurable | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-199922@lists.php.net to get a copy of this message | ||
From: elrond+php dot net at samba-tng dot org
Operating system: Linux
PHP version: 5.6.19
Package: FPM related
Bug Type: Feature/Change Request
Bug description:FPM: Please make epoll sleep interval configurable
Description:
------------
FPM in ondemand mode seems a perfect tool for a server/laptop that is
running php very seldom. On a laptop every wakeup is important, because
it will bring the CPU usually to nearly full power.
Running FPM in this scenario wakes up the CPU every second. This sounds
seldom for servers, but it's often on a laptop.
strace shows this nicely:
epoll_wait(10, {}, 1, 1000) = 0
The relevant code is in sapi/fpm/fpm/fpm_events.c, function
fpm_event_loop().
Especially the "timeout = 1000;".
It would be cool, if this would be configurable, so that one can set it
to 100 sec for example.
Expected result:
----------------
much longer sleep periods, if desired.
Actual result:
--------------
wakeup every second.
--
Edit bug report at https://bugs.php.net/bug.php?id=71854&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=71854&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=71854&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=71854&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=71854&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=71854&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=71854&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=71854&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=71854&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=71854&r=support
Expected behavior: https://bugs.php.net/fix.php?id=71854&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=71854&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=71854&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=71854&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=71854&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=71854&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=71854&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=71854&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=71854&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=71854&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=71854&r=mysqlcfg