Skip to content

Commit 5e192d0

Browse files
committed
php.ini-production: disable opcache.huge_code_pages by default
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
1 parent 889dba4 commit 5e192d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

php.ini-production

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1909,7 +1909,7 @@ ldap.max_links = -1
19091909

19101910
; Enables or disables copying of PHP code (text segment) into HUGE PAGES.
19111911
; This should improve performance, but requires appropriate OS configuration.
1912-
;opcache.huge_code_pages=1
1912+
;opcache.huge_code_pages=0
19131913

19141914
; Validate cached file permissions.
19151915
;opcache.validate_permission=0

0 commit comments

Comments
 (0)