Performance

Dani

Well-Known Member
#21
What does the LSAPI_AVOID_FORK=1 do?

Frank
# LSAPI_AVOID_FORK (default: 0)
LSAPI_AVOID_FORK specifies the policy of the internal process manager in "Self Managed Mode". When set to 0, the internal process manager will stop and start children process on demand to save system resource. This is preferred in a shared hosting environment. When set to 1, the internal process manager will try to avoid freqently stopping and starting children process. This might be preferred in a dedicate hosting environment.
 
#22
The performance difference between LiteSpeed result and nginx result is mainly because LiteSpeed start lsphp dynamically, while nginx start FastCGI PHP processes statically. Starting new PHP processes is expensive, if it happens during the test, it will affect the test results.
 
Top