Skip to content

Commit 5663065

Browse files
committed
php.ini-*: clarify opcache.huge_code_pages documentation
1 parent 4852e76 commit 5663065

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
@@ -1910,7 +1910,12 @@ ldap.max_links = -1
19101910
;opcache.file_cache_fallback=1
19111911

19121912
; Enables or disables copying of PHP code (text segment) into HUGE PAGES.
1913-
; This should improve performance, but requires appropriate OS configuration.
1913+
; Under certain circumstances (if only a single global PHP process is
1914+
; started from which all others fork), this can increase performance
1915+
; by about 1% because TLB misses are reduced. On the other hand, this
1916+
; delays PHP startup, increases memory usage and degrades performance
1917+
; under memory pressure - use with care.
1918+
; Requires appropriate OS configuration.
19141919
;opcache.huge_code_pages=0
19151920

19161921
; Validate cached file permissions.

php.ini-production

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

19141914
; Enables or disables copying of PHP code (text segment) into HUGE PAGES.
1915-
; This should improve performance, but requires appropriate OS configuration.
1915+
; Under certain circumstances (if only a single global PHP process is
1916+
; started from which all others fork), this can increase performance
1917+
; by about 1% because TLB misses are reduced. On the other hand, this
1918+
; delays PHP startup, increases memory usage and degrades performance
1919+
; under memory pressure - use with care.
1920+
; Requires appropriate OS configuration.
19161921
;opcache.huge_code_pages=0
19171922

19181923
; Validate cached file permissions.

0 commit comments

Comments
 (0)