Bug #72322 [NEW]: High sys CPU usage
| From: | jai at vidyamantra dot com | Date: | Fri, 03 Jun 2016 06:58:54 +0000 |
| Subject: | Bug #72322 [NEW]: High sys CPU usage | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-201414@lists.php.net to get a copy of this message | ||
From: jai at vidyamantra dot com
Operating system: Centos 6.8 x64
PHP version: 7.0.7
Package: Performance problem
Bug Type: Bug
Bug description:High sys CPU usage
Description:
------------
Upgrade to php 7 and saw high CPU usage.
http://serverfault.com/q/780555/126826 (CPU
graphs and sar output).
==== PHP 7 ====
% time seconds usecs/call calls errors syscall
------ ----------- ----------- --------- --------- ----------------
31.24 0.000973 1 1204 munmap
15.25 0.000475 0 1523 3 open
12.52 0.000390 0 4012 216 lstat
7.70 0.000240 0 1363 mmap
5.81 0.000181 0 1528 close
5.36 0.000167 1 219 getdents
5.01 0.000156 0 1618 stat
4.33 0.000135 0 1433 535 access
3.69 0.000115 0 3256 fstat
2.47 0.000077 0 547 write
1.67 0.000052 0 224 uname
1.22 0.000038 0 276 sendto
0.87 0.000027 0 638 read
0.83 0.000026 0 752 flock
0.58 0.000018 0 760 poll
==== PHP 5 ====
% time seconds usecs/call calls errors syscall
------ ----------- ----------- --------- --------- ----------------
23.32 0.001103 5 206 sendto
17.45 0.000825 1 1650 getdents
14.95 0.000707 0 4638 651 stat
10.59 0.000501 0 3181 1708 access
7.27 0.000344 0 4918 172 lstat
6.07 0.000287 0 2391 3 open
4.76 0.000225 1 314 poll
3.66 0.000173 0 1526 munmap
2.56 0.000121 0 4633 fstat
2.11 0.000100 0 1704 mmap
1.54 0.000073 1 97 rename
1.40 0.000066 0 923 2 lseek
1.08 0.000051 0 2395 close
0.80 0.000038 0 562 49 ioctl
0.68 0.000032 0 831 read
0.57 0.000027 0 406 write
0.34 0.000016 0 141 mprotect
--
Edit bug report at https://bugs.php.net/bug.php?id=72322&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=72322&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=72322&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=72322&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=72322&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=72322&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=72322&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=72322&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=72322&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=72322&r=support
Expected behavior: https://bugs.php.net/fix.php?id=72322&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=72322&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=72322&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=72322&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=72322&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=72322&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=72322&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=72322&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=72322&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=72322&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=72322&r=mysqlcfg