[php-src] Issue #12807: huge page optimization for PHP code pages disappear in some corner cases

From: Date: Tue, 28 Nov 2023 03:15:44 +0000
Subject: [php-src] Issue #12807: huge page optimization for PHP code pages disappear in some corner cases
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-245912@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/12807 Author: PeterYang12 ### Description Use ld.so to start php for example php-fpm /lib64/ld-linux-x86-64.so.2 /usr/local/sbin/php-fpm , huge pages optimization for PHP code pages will not take effect. Memory maps: Resulted in this output: ``` 7ffff336c000-7ffff33ec000 rwxp 00000000 00:00 0 ... 7ffff6746000-7ffff6836000 r--p 00000000 00:d8 32576869 /usr/local/sbin/php-fpm 7ffff6836000-7ffff6946000 ---p 000f0000 00:d8 32576869 /usr/local/sbin/php-fpm 7ffff6946000-7ffff6c88000 r-xp 00200000 00:d8 32576869 /usr/local/sbin/php-fpm 7ffff6c88000-7ffff6d46000 ---p 00542000 00:d8 32576869 /usr/local/sbin/php-fpm ... 7ffff7ffe000-7ffff81fc000 rw-p 00000000 00:00 0 [heap] ``` But I expected this output instead: ``` 7ffff336c000-7ffff33ec000 rwxp 00000000 00:00 0 ... 7ffff6746000-7ffff6836000 r--p 00000000 00:d8 32576869 /usr/local/sbin/php-fpm 7ffff6836000-7ffff6946000 ---p 000f0000 00:d8 32576869 /usr/local/sbin/php-fpm 7ffff6946000-7ffff6c88000 r-xp 00200000 00:d8 32576869 /anon_hugepage (deleted) 7ffff6c88000-7ffff6d46000 ---p 00542000 00:d8 32576869 /usr/local/sbin/php-fpm ... 7ffff7ffe000-7ffff81fc000 rw-p 00000000 00:00 0 [heap] ``` ### PHP Version PHP 8.3 ### Operating System Ubuntu20.04

« previous php.bugs (#245912) next »