mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-11-25 15:39:19 +00:00
7a0e27a746
This vastly reduces idle CPU usage, which should generally be beneficial for most small-to-medium sized instances. Additionally update the documentation to specify how to override the vm.args file for OTP installs
18 lines
568 B
Elixir
18 lines
568 B
Elixir
## Customize flags given to the VM: http://erlang.org/doc/man/erl.html
|
|
## -mode/-name/-sname/-setcookie are configured via env vars, do not set them here
|
|
|
|
## Number of dirty schedulers doing IO work (file, sockets, etc)
|
|
##+SDio 5
|
|
|
|
## Increase number of concurrent ports/sockets
|
|
##+Q 65536
|
|
|
|
## Tweak GC to run more often
|
|
##-env ERL_FULLSWEEP_AFTER 10
|
|
|
|
## Disable busy waits; vastly reduces CPU usage while idle
|
|
## See https://docs.akkoma.dev/stable/configuration/optimisation/optimizing_beam/#virtual-machine-andor-few-cpu-cores
|
|
+sbwt none
|
|
+sbwtdcpu none
|
|
+sbwtdio none
|