Skip to content

huge page optimization for PHP code pages disappear in some corner cases #12807

Closed
@PeterYang12

Description

@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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions