Bug #72322 [Com]: High sys CPU usage

From: Date: Thu, 21 Sep 2017 03:07:31 +0000
Subject: Bug #72322 [Com]: High sys CPU usage
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-211287@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=72322&edit=1 ID: 72322 Comment by: jai at vidyamantra dot com Reported by: jai at vidyamantra dot com Summary: High sys CPU usage Status: Re-Opened Type: Bug Package: Performance problem Operating System: Centos 6.8 x64 PHP Version: 7.0.7 Block user comment: N Private report: N New Comment: opcache.huge_code_pages is already 0. If we don't use high values at vm.extra_free_kbytes and vm.min_free_kbytes we face this problem. Previous Comments: ------------------------------------------------------------------------ [2017-09-21 02:32:15] wym1 at meitu dot com set opcache.huge_code_pages = 0 , it will work fine ------------------------------------------------------------------------ [2017-01-20 09:16:02] jai at vidyamantra dot com It has been two days since when we modified following kernel values. vm.extra_free_kbytes vm.min_free_kbytes Since then, we are not facing this problem. It appears the problem is with the way how PHP7 allocates or uses memory. We were able to reproduce this problem on two entirely different and isolated production servers that had no problem with php5 but this problem started within few hours after we upgraded to PHP7. Our servers have 256GB of RAM and this issue appears when free memory is low. Clearing system buffers/cache (echo 3 > /proc/sys/vm/drop_caches) always fixes this problem but Linux gradually starts caching files from disk and free memory starts dropping. ------------------------------------------------------------------------ [2016-12-25 04:22:19] php-bugs at lists dot php dot net No feedback was provided. The bug is being suspended because we assume that you are no longer experiencing the problem. If this is not the case and you are able to provide the information that was requested earlier, please do so and change the status of the bug back to "Re-Opened". Thank you. ------------------------------------------------------------------------ [2016-12-20 07:33:31] jai at vidyamantra dot com Tested on version 7.0.10 and problem is still present. It happens more often when system memory is near full (swap still empty), for e.g. system has 256GB of RAM and this happens when about only 10GB of RAM is used. At this stage, sys time increase significantly. ------------------------------------------------------------------------ [2016-12-17 14:51:26] nikic@php.net Do you still experience this problem with a current version of PHP 7? I'd assume the issue is due to huge pages (see https://bugs.php.net/bug.php?id=70984), which are no longer enabled by default. ------------------------------------------------------------------------ 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=72322 -- Edit this bug report at https://bugs.php.net/bug.php?id=72322&edit=1

« previous php.bugs (#211287) next »