Skip to content

Commit 4852e76

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 #10301
1 parent 995ac31 commit 4852e76

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
@@ -1913,7 +1913,7 @@ ldap.max_links = -1
19131913

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

19181918
; Validate cached file permissions.
19191919
;opcache.validate_permission=0

0 commit comments

Comments
 (0)