Skip to content

Commit 6962fc2

Browse files
committed
php.ini-*: clarify opcache.huge_code_pages documentation
1 parent 43e5286 commit 6962fc2

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

php.ini-development

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1888,7 +1888,12 @@ ldap.max_links = -1
18881888
;opcache.file_cache_fallback=1
18891889

18901890
; Enables or disables copying of PHP code (text segment) into HUGE PAGES.
1891-
; This should improve performance, but requires appropriate OS configuration.
1891+
; Under certain circumstances (if only a single global PHP process is
1892+
; started from which all others fork), this can increase performance
1893+
; by a tiny amount because TLB misses are reduced. On the other hand, this
1894+
; delays PHP startup, increases memory usage and degrades performance
1895+
; under memory pressure - use with care.
1896+
; Requires appropriate OS configuration.
18921897
;opcache.huge_code_pages=0
18931898

18941899
; Validate cached file permissions.

php.ini-production

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1890,7 +1890,12 @@ ldap.max_links = -1
18901890
;opcache.file_cache_fallback=1
18911891

18921892
; Enables or disables copying of PHP code (text segment) into HUGE PAGES.
1893-
; This should improve performance, but requires appropriate OS configuration.
1893+
; Under certain circumstances (if only a single global PHP process is
1894+
; started from which all others fork), this can increase performance
1895+
; by a tiny amount because TLB misses are reduced. On the other hand, this
1896+
; delays PHP startup, increases memory usage and degrades performance
1897+
; under memory pressure - use with care.
1898+
; Requires appropriate OS configuration.
18941899
;opcache.huge_code_pages=0
18951900

18961901
; Validate cached file permissions.

0 commit comments

Comments
 (0)