今天看了一下erlang的cpu調優和監控,參考:html
The WhatsApp Architecture Facebook Bought For $19 Billionapp
Erlang調度器的利用率調查.net
同時也找到對應的配置: +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解決。