|
|
|
|
|
by fzil
450 days ago
|
|
been reading / work with elixir and was interested in finding out the cause of high cpu usage. TLDR: BEAM VM uses busy waiting under the hood to achieve fast response time when dealing with requests. you can disable it by setting a few options in the VM. Edit: Interesting thing here is that there's no significant latency difference when toggling busy/wait, so not sure why that's the default. |
|
The only time you'd want to disable it is if you're under a CPU quota, or if you have some other important OS process that's not getting enough CPU.