Bug #74976 [NEW]: processes in uninterruptible sleep when disk usage (backup)

From: Date: Mon, 24 Jul 2017 07:35:39 +0000
Subject: Bug #74976 [NEW]: processes in uninterruptible sleep when disk usage (backup)
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-210253@lists.php.net to get a copy of this message
From:             sergo44 at mail dot ru
Operating system: Debian 7.11 x64
PHP version:      7.0.21
Package:          Performance problem
Bug Type:         Bug
Bug description:processes in uninterruptible sleep when disk usage (backup)

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.




-- 
Edit bug report at https://bugs.php.net/bug.php?id=74976&edit=1
-- 
Try a snapshot (PHP 5.4):   https://bugs.php.net/fix.php?id=74976&r=trysnapshot54
Try a snapshot (PHP 5.5):   https://bugs.php.net/fix.php?id=74976&r=trysnapshot55
Try a snapshot (trunk):     https://bugs.php.net/fix.php?id=74976&r=trysnapshottrunk
Fixed in SVN:               https://bugs.php.net/fix.php?id=74976&r=fixed
Fixed in release:           https://bugs.php.net/fix.php?id=74976&r=alreadyfixed
Need backtrace:             https://bugs.php.net/fix.php?id=74976&r=needtrace
Need Reproduce Script:      https://bugs.php.net/fix.php?id=74976&r=needscript
Try newer version:          https://bugs.php.net/fix.php?id=74976&r=oldversion
Not developer issue:        https://bugs.php.net/fix.php?id=74976&r=support
Expected behavior:          https://bugs.php.net/fix.php?id=74976&r=notwrong
Not enough info:            https://bugs.php.net/fix.php?id=74976&r=notenoughinfo
Submitted twice:            https://bugs.php.net/fix.php?id=74976&r=submittedtwice
register_globals:           https://bugs.php.net/fix.php?id=74976&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=74976&r=php4
Daylight Savings:           https://bugs.php.net/fix.php?id=74976&r=dst
IIS Stability:              https://bugs.php.net/fix.php?id=74976&r=isapi
Install GNU Sed:            https://bugs.php.net/fix.php?id=74976&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=74976&r=float
No Zend Extensions:         https://bugs.php.net/fix.php?id=74976&r=nozend
MySQL Configuration Error:  https://bugs.php.net/fix.php?id=74976&r=mysqlcfg



Thread (3 messages)

« previous php.bugs (#210253) next »