+sbwt none

将CPU忙等待关闭将有助于降低系统显示的CPU使用率,因为开启了忙等待的BEAM,CPU负载并不代表真实的工作情况;

+K true

开启epoll IO模型

+swt low

Sets scheduler wakeup threshold. Defaults to medium.               The threshold determines when to wake up sleeping schedulers               when more work than can be handled by currently awake schedulers               exists. A low threshold causes earlier wakeups, and a high               threshold causes later wakeups. Early wakeups distribute work               over multiple schedulers faster, but work does more easily bounce               between schedulers.

-- 过早唤醒调度器可能造成更多的上下文切换

+sub true

公平调度,平均分配CPU任务

#+S 3:3

#+SP 75:50

CPU 忙等待参数调试

The Curious Case of BEAM CPU Usage

Logo

华为开发者空间,是为全球开发者打造的专属开发空间,汇聚了华为优质开发资源及工具,致力于让每一位开发者拥有一台云主机,基于华为根生态开发、创新。

更多推荐