今天看了一下erlang的cpu调优和监控,参考:
erlang 虚机CPU 占用高排查
The WhatsApp Architecture Facebook Bought For $19 Billion
同时也找到对应的配置:
+sbwt none|very_short|short|medium|long|very_longSet scheduler busy wait threshold. Default is medium. The threshold determines how long schedulers should busy wait when running out of work before going to sleep.
启动参数:+sbwt none 即可见spin彻底关掉,而不必像whatsapp patch beam解决。