Bug #76867 [Opn]: Extremely slow performance
| From: | ivokund at gmail dot com | Date: | Thu, 13 Sep 2018 15:52:35 +0000 |
| Subject: | Bug #76867 [Opn]: Extremely slow performance | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-217033@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=76867&edit=1
ID: 76867
User updated by: ivokund at gmail dot com
Reported by: ivokund at gmail dot com
Summary: Extremely slow performance
Status: Open
Type: Bug
Package: Performance problem
Operating System: Ubuntu 18.04.1 LTS
PHP Version: 7.2.9
Block user comment: N
Private report: N
New Comment:
I disabled huge pages with "hugeadm --thp-never" and the problem disappeared instantly.
I'm happy now, so if this is not a PHP issue then please close the issue.
Thanks for your help everyone!
Previous Comments:
------------------------------------------------------------------------
[2018-09-13 15:17:58] requinix@php.net
I don't believe USE_ZEND_ALLOC_HUGE_PAGES will control PHP's use of madvise. Try disabling
transparent huge pages in your kernel.
------------------------------------------------------------------------
[2018-09-13 15:02:49] ivokund at gmail dot com
Ok, got some new information. This is the first time I hear about huge pages, so pretty sure, I
haven't configured anything on purpose.
Setting USE_ZEND_ALLOC_HUGE_PAGES=0 in environment does not seem to have any effect.
_______________
$ export USE_ZEND_ALLOC_HUGE_PAGES=0
$ echo $USE_ZEND_ALLOC_HUGE_PAGES
0
$ time php -n --version
PHP 7.2.9-1+ubuntu18.04.1+deb.sury.org+1 (cli) (built: Aug 19 2018 07:16:54) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
real 0m10,453s
user 0m0,049s
sys 0m0,024s
_______________
Here is a complete output from "strace php -n --version" with USE_ZEND_ALLOC_HUGE_PAGES=0
https://pastebin.com/raw/Cnmvarqd
Any further ideas would be greatly appreciated!
------------------------------------------------------------------------
[2018-09-13 06:22:27] ivokund at gmail dot com
The manifestation of this problem apparently also varies daily, as I'm having trouble
reproducing it today (although, there have been no reboots).
I'll continue debugging as soon as the problem returns and will get back to you.
Thanks for your help so far!
------------------------------------------------------------------------
[2018-09-12 13:33:26] sjon at hortensius dot net
Huge pages should be disabled by default, see also #70984 Did you or your distro enable it? Can you
try with USE_ZEND_ALLOC_HUGE_PAGES=0
------------------------------------------------------------------------
[2018-09-12 08:40:46] ivokund at gmail dot com
Ok, strace seems to tell me that process seems to hang at:
madvise(0x7f70efe00000, 2097152, MADV_HUGEPAGE) = 0
Any ideas?
Thanks!
------------------------------------------------------------------------
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=76867
--
Edit this bug report at https://bugs.php.net/bug.php?id=76867&edit=1