com php-src: Disable huge pages in the Zend allocator by default As per the discussion on internals, this is an expert feature that needs special
system-level configuration and care.: Zend/zend_alloc.c

From: Date: Wed, 23 Mar 2016 11:23:35 +0000
Subject: com php-src: Disable huge pages in the Zend allocator by default As per the discussion on internals, this is an expert feature that needs special
system-level configuration and care.: Zend/zend_alloc.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-91468@lists.php.net to get a copy of this message
Commit: 06c2b318665238dca8d168dab3913d073564ef78 Author: Rasmus Lerdorf <rasmus@lerdorf.com> Tue, 22 Mar 2016 08:04:53 -0700 Committer: Anatol Belski <ab@php.net> Wed, 23 Mar 2016 12:23:35 +0100 Parents: 75dd4a7a502c271cd2e69fe46b085614beb771b2 Branches: PHP-7.0.5 Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=06c2b318665238dca8d168dab3913d073564ef78 Log: Disable huge pages in the Zend allocator by default As per the discussion on internals, this is an expert feature that needs special system-level configuration and care. Changed paths: M Zend/zend_alloc.c Diff: diff --git a/Zend/zend_alloc.c b/Zend/zend_alloc.c index 4cf1178..1876559 100644 --- a/Zend/zend_alloc.c +++ b/Zend/zend_alloc.c @@ -201,7 +201,7 @@ typedef struct _zend_mm_huge_list zend_mm_huge_list; #endif #ifdef MAP_HUGETLB -int zend_mm_use_huge_pages = 1; +int zend_mm_use_huge_pages = 0; #endif /* @@ -2654,8 +2654,8 @@ static void alloc_globals_ctor(zend_alloc_globals *alloc_globals) #endif #ifdef MAP_HUGETLB tmp = getenv("USE_ZEND_ALLOC_HUGE_PAGES"); - if (tmp && !zend_atoi(tmp, 0)) { - zend_mm_use_huge_pages = 0; + if (tmp && zend_atoi(tmp, 0)) { + zend_mm_use_huge_pages = 1; } #endif ZEND_TSRMLS_CACHE_UPDATE();

« previous php.cvs (#91468) next »