Edit report at https://bugs.php.net/bug.php?id=62160&edit=1
ID: 62160 Updated by: f...@php.net Reported by: geeky at geeky dot de Summary: Add process.priority to set nice(2) priorities -Status: Analyzed +Status: Closed Type: Feature/Change Request Package: FPM related Operating System: Debian 6.0 PHP Version: 5.4.4RC1 Assigned To: fat Block user comment: N Private report: N New Comment: This bug has been fixed in SVN. Snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. For Windows: http://windows.php.net/snapshots/ Thank you for the report, and for helping us make PHP better. Added process.priority to [general] and to pools section in the configuration file. [general] ... process.priority = 4 ... [pool_high_prio] ... process.priority = -15 ... [pool_low_prio] ... process.priority = 15 ... Previous Comments: ------------------------------------------------------------------------ [2012-05-26 16:24:39] f...@php.net Automatic comment on behalf of fat Revision: http://git.php.net/?p=php-src.git;a=commit;h=7127135c8705d947a01ee637444c1db2adf37b1d Log: - Fixed bug #62160 (Add process.priority to set nice(2) priorities) ------------------------------------------------------------------------ [2012-05-26 16:24:38] f...@php.net Automatic comment on behalf of fat Revision: http://git.php.net/?p=php-src.git;a=commit;h=decc394a2089b955a175aed0091044d0fc3d1aab Log: - Fixed bug #62160 (Add process.priority to set nice(2) priorities) ------------------------------------------------------------------------ [2012-05-26 16:24:37] f...@php.net Automatic comment on behalf of fat Revision: http://git.php.net/?p=php-src.git;a=commit;h=f6655b62d8273a4d1276d98491bf49bb197821fe Log: - Fixed bug #62160 (Add process.priority to set nice(2) priorities) ------------------------------------------------------------------------ [2012-05-25 19:44:12] geeky at geeky dot de Yes, that would be perfect ------------------------------------------------------------------------ [2012-05-25 19:29:48] f...@php.net FPM is not design to manage priority between its processes. It just stop/start/restart/watch them. One thing which can be done is to play with nice(2) or setpriority(2). We can add a priority=[-19,20] parameter in the configuration file for each pool and the corresponding priority will be set when processes will be created. Is that something that can fit your needs ? thx for the answer. ++ fat ------------------------------------------------------------------------ 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=62160 -- Edit this bug report at https://bugs.php.net/bug.php?id=62160&edit=1