php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #74976 processes in uninterruptible sleep when disk usage (backup)
Submitted: 2017-07-24 07:35 UTC Modified: -
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:0 (0.0%)
From: sergo44 at mail dot ru Assigned:
Status: Open Package: Performance problem
PHP Version: 7.0.21 OS: Debian 7.11 x64
Private report: No CVE-ID:
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: sergo44 at mail dot ru
New email:
PHP Version: OS:

 

 [2017-07-24 07:35 UTC] sergo44 at mail dot ru
Description:
------------
Hello.

Debian 7.11 x64 with nginx.

I am building php7 with this configure options:
./configure --prefix="$PREFIX"\
        --enable-cgi \
        --enable-static \
        \
        --enable-mbstring \
        --enable-soap \
        --enable-zip \
        --enable-calendar\
        --enable-sockets\
        --enable-bcmath\
        \
        --with-zlib\
        --with-openssl=/opt/openssl \
        --with-curl=/opt/curl \
        --with-gettext=shared \
        \
        --with-gd=shared \
        --enable-gd-native-ttf \
        --with-freetype-dir=/usr \
        \
        --with-mcrypt \
        --with-mysqli \
        --with-pdo-mysql \
        \
        --with-jpeg-dir=/usr \
        --with-png-dir=/usr \
        --with-config-file-path="$CFG" \
        --with-config-file-scan-dir="$CFG/conf.d" \
        --enable-fpm



When server backup and disk using
1. If php as CGI - too more PHP CGI process is in uninterruptible sleep with hight LA (50)
2. If php as FPM - too more PHP FPM workers is in uninterruptible sleep with hight LA (50)

PHP-FPM LOG:
[19-Jan-2017 05:22:55] WARNING: [pool avtovokzal] seems busy (you may need to increase pm.start_servers, or pm.min/max_spare_servers), spawning 32 children, there are 0 idle, and 48 total children
[19-Jan-2017 05:22:56] WARNING: [pool avtovokzal] seems busy (you may need to increase pm.start_servers, or pm.min/max_spare_servers), spawning 32 children, there are 0 idle, and 49 total children
[19-Jan-2017 05:22:57] WARNING: [pool avtovokzal] server reached pm.max_children setting (50), consider raising it

Then I added events.mechanism = epoll to php-fpm.conf the problem solved, but not for CGI.




Patches

Add a Patch

Pull Requests

Add a Pull Request

 
PHP Copyright © 2001-2017 The PHP Group
All rights reserved.
Last updated: Tue Aug 29 15:01:52 2017 UTC