Skip to content

php.ini: disable opcache.huge_code_pages by default, clarify documentation #10336

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from

Conversation

MaxKellermann
Copy link
Contributor

#10301 for the discussion

@dstogov
Copy link
Member

dstogov commented Jan 16, 2023

In general the comments are right - depending on different factors , huge code pages may bring performance increase and degradation. They should be used with care.

@MaxKellermann MaxKellermann force-pushed the disable_huge_code_pages branch from 7eec03b to 0d0155f Compare February 7, 2023 10:58
@MaxKellermann MaxKellermann changed the base branch from master to PHP-8.1 February 7, 2023 10:58
@MaxKellermann MaxKellermann force-pushed the disable_huge_code_pages branch from 0d0155f to 6962fc2 Compare February 7, 2023 11:02
Copy link
Member

@devnexen devnexen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks better

@MaxKellermann MaxKellermann force-pushed the disable_huge_code_pages branch from 6962fc2 to 5663065 Compare February 7, 2023 18:45
There are only very narrow circumstances under which this option has
been reported to provide 1% performance gain due to reduction of TLB
misses.  In many setups, this option only increases memory usage, and
will actually decrease performance.  To avoid this, let's leave it
disabled by default, and let it be an explicit decision to enable it.

For a discussion, see php#10301
@MaxKellermann MaxKellermann force-pushed the disable_huge_code_pages branch from 5663065 to a64d107 Compare February 7, 2023 20:00
@devnexen devnexen closed this in e6281db Feb 7, 2023
MaxKellermann added a commit to CM4all/php-src that referenced this pull request Feb 14, 2023
There are only very narrow circumstances under which this option has
been reported to provide 1% performance gain due to reduction of TLB
misses.  In many setups, this option only increases memory usage, and
will actually decrease performance.  To avoid this, let's leave it
disabled by default, and let it be an explicit decision to enable it.

For a discussion, see php#10301

Closes phpGH-10336
@MaxKellermann MaxKellermann deleted the disable_huge_code_pages branch March 7, 2023 13:25
MaxKellermann added a commit to CM4all/php-src that referenced this pull request Mar 7, 2023
There are only very narrow circumstances under which this option has
been reported to provide 1% performance gain due to reduction of TLB
misses.  In many setups, this option only increases memory usage, and
will actually decrease performance.  To avoid this, let's leave it
disabled by default, and let it be an explicit decision to enable it.

For a discussion, see php#10301

Closes phpGH-10336
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants