Bug #71272 [Opn]: i disabled hugepage use --disable-huge-code-pages not effect
| From: | nikic@php.net | Date: | Mon, 04 Jan 2016 09:55:11 +0000 |
| Subject: | Bug #71272 [Opn]: i disabled hugepage use --disable-huge-code-pages not effect | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-198399@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=71272&edit=1
ID: 71272
Updated by: nikic@php.net
Reported by: svei at vip dot qq dot com
Summary: i disabled hugepage use --disable-huge-code-pages
not effect
Status: Open
Type: Bug
Package: opcache
Operating System: Linux version 2.6.33.15
PHP Version: 7.0.1
Block user comment: N
Private report: N
New Comment:
The --disable-huge-code-pages configure option, as the name implies, disables use of huge pages for
the text segment. This does not impact the use of huge pages by the allocator.
Previous Comments:
------------------------------------------------------------------------
[2016-01-04 09:47:40] svei at vip dot qq dot com
Description:
------------
compile my php use --disable-huge-code-pages
and disabled opcache
~ #php -m
[PHP Modules]
bcmath
Core
curl
date
dom
filter
gd
gmp
hash
iconv
json
libxml
pcre
posix
Reflection
session
SimpleXML
SPL
standard
[Zend Modules]
because i don't want to use hugepages
but this not effect
when i run test script
the hugepages in /proc/meminfo was reduce
before i run my test script
~ #cat /proc/meminfo | grep Huge
HugePages_Total: 11230
HugePages_Free: 5
HugePages_Rsvd: 0
HugePages_Surp: 0
Hugepagesize: 2048 kB
the HugePages_Free is 5
Test script:
---------------
<?php
sleep(10);
Expected result:
----------------
~ #cat /proc/meminfo | grep Huge
HugePages_Total: 11230
HugePages_Free: 5
HugePages_Rsvd: 0
HugePages_Surp: 0
Hugepagesize: 2048 kB
the HugePages_Free not change
Actual result:
--------------
~ #cat /proc/meminfo | grep Huge
HugePages_Total: 11230
HugePages_Free: 4
HugePages_Rsvd: 0
HugePages_Surp: 0
Hugepagesize: 2048 kB
the HugePages_Free is chane to 4
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=71272&edit=1