Re: hi all, [nginx]"accept_mutex on" cause 1s delay
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.
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.