hi all, [nginx]"accept_mutex on" cause 1s delay
francis at daoine.org
Mon Nov 11 12:18:51 UTC 2019
On Mon, Nov 11, 2019 at 11:26:30AM +0800, lx wrote:
> I use nginx-1.16.0, nginx is running on X86 embedded devices. The
> embedded device has 4 CPU, CPU type is: "Intel(R) Atom(TM) CPU D525 @
> When I use "accpet_mutex on", nginx use 1 secod for get static file.
> If I don't use "accpet_mutex on" , I can get http response quickly.
> How should this problem be analyzed? I am a newcomer to nginx.
"accept_mutex off" is the default - http://nginx.org/r/accept_mutex
We recommend keeping the default value (off) unless you have extensive
knowledge of your app’s performance and the opportunity to test under
a variety of conditions, but it can lead to inefficient use of system
resources if the volume of new connections is low. Changing the value
to on might be beneficial under some high loads.
Your testing suggests that "accept_mutex on" does not help your use case.
So - don't set "accept_mutex on".
What further analysis is needed?
Francis Daly francis at daoine.org
More information about the nginx