php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #71854 FPM: Please make epoll sleep interval configurable
Submitted: 2016-03-18 16:17 UTC Modified: -
From: elrond+php dot net at samba-tng dot org Assigned:
Status: Open Package: FPM related
PHP Version: 5.6.19 OS: Linux
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: elrond+php dot net at samba-tng dot org
New email:
PHP Version: OS:

 

 [2016-03-18 16:17 UTC] elrond+php dot net at samba-tng dot org
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.

Patches

Add a Patch

Pull Requests

Add a Pull Request

 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Sat Jan 25 19:01:25 2020 UTC