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:3
Avg. Score:4.3 ± 0.9
Reproduced:2 of 2 (100.0%)
Same Version:1 (50.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: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
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

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2018-05-24 20:51 UTC] gadelat at gmail dot com
Are you using btrfs by a chance? I started having this problem too, but for php cli 7.2.5, since I started using Fedora 28 with btrfs. Previously, I had Ubuntu 17.10 with ext4 and had no such issues.
 [2023-01-06 11:42 UTC] amin dot jabari242 at gmail dot com
Is this issue resolved completely? We are facing the same problem
(https://www.ngs-medicare.com/)github.com
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Dec 30 14:01:28 2024 UTC