Skip to content

Commit 7eec03b

Browse files
committed
php.ini-*: clarify opcache.huge_code_pages documentation
1 parent 5e192d0 commit 7eec03b

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
@@ -1906,7 +1906,12 @@ ldap.max_links = -1
19061906
;opcache.file_cache_fallback=1
19071907

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

19121917
; Validate cached file permissions.

php.ini-production

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

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

19141919
; Validate cached file permissions.

0 commit comments

Comments
 (0)