Skip to content

Commit 43e5286

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 afbb28d commit 43e5286

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

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

18961896
; Validate cached file permissions.
18971897
;opcache.validate_permission=0

0 commit comments

Comments
 (0)