Bug #71272 [Opn->Csd]: i disabled hugepage use --disable-huge-code-pages not effect

From: Date: Tue, 22 Mar 2016 11:52:52 +0000
Subject: Bug #71272 [Opn->Csd]: i disabled hugepage use --disable-huge-code-pages not effect
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-200029@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:         jpauli@php.net
 Reported by:        svei at vip dot qq dot com
 Summary:            i disabled hugepage use --disable-huge-code-pages
                     not effect
-Status:             Open
+Status:             Closed
 Type:               Bug
 Package:            opcache
 Operating System:   Linux version 2.6.33.15
 PHP Version:        7.0.1
-Assigned To:        
+Assigned To:        jpauli
 Block user comment: N
 Private report:     N

 New Comment:

Thank you for your bug report. This issue has already been fixed
in the latest released version of PHP, which you can download at 
http://www.php.net/downloads.php

https://github.com/php/php-src/commit/945a661912612cdecd221cd126feda7d4335c33c
was commited.

Should be part of 7.0.5 release.


Previous Comments:
------------------------------------------------------------------------
[2016-01-04 11:19:20] svein at vip dot qq dot com

Is there a way to disable the allocator to use huge pages?

------------------------------------------------------------------------
[2016-01-04 09:55:08] nikic@php.net

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.

------------------------------------------------------------------------
[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


Thread (4 messages)

« previous php.bugs (#200029) next »