Req #71854 [Com]: FPM: Please make epoll sleep interval configurable

From: Date: Sat, 07 Aug 2021 15:27:38 +0000
Subject: Req #71854 [Com]: FPM: Please make epoll sleep interval configurable
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-235659@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=71854&edit=1 ID: 71854 Comment by: mabelgoodrich at gmail dot com Reported by: elrond+php dot net at samba-tng dot org Summary: FPM: Please make epoll sleep interval configurable Status: Open Type: Feature/Change Request Package: FPM related Operating System: Linux PHP Version: 5.6.19 Block user comment: N Private report: N New Comment: Thanks for letting us know about the issue on the Php platform! Being a programmer, this bug report warns me about the possible future problem in the platform. But currently, I have been working as a senior advisor at this https://ulive.chat/he/p site and help people with webcam chat facilities across the world. Thanks again for the post. Previous Comments: ------------------------------------------------------------------------ [2016-03-18 16:17:52] 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. ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=71854&edit=1

« previous php.bugs (#235659) next »