(评论)
(comments)

原始链接: https://news.ycombinator.com/item?id=43475982

Hacker News 最新 | 过去 | 评论 | 提问 | 展示 | 招聘 | 提交 登录 BEAM CPU 使用率的奇特案例 (2019) (stressgrid.com) 3 分,来自 fzil,2 小时前 | 隐藏 | 过去 | 收藏 | 1 评论 fzil 2 小时前 [–] 一直在阅读/使用 Elixir,并且对查找高 CPU 使用率的原因很感兴趣。简而言之:BEAM 虚拟机在底层使用繁忙等待来实现处理请求时的快速响应时间。你可以通过设置虚拟机中的几个选项来禁用它。编辑:有趣的是,在切换繁忙等待/等待时,延迟并没有显著差异,所以我不确定为什么这是默认设置。 回复 加入我们,参加 6 月 16-17 日在旧金山举行的 AI 初创公司学校! 指南 | 常见问题 | 列表 | API | 安全 | 法律 | 申请 YC | 联系我们 搜索:

相关文章
  • Beam CPU 使用情况的奇特案例 (2019) 2025-03-29
  • (评论) 2025-03-23
  • (评论) 2025-03-27
  • (评论) 2025-03-24
  • (评论) 2025-03-27

  • 原文
    Hacker News new | past | comments | ask | show | jobs | submit login
    The Curious Case of Beam CPU Usage (2019) (stressgrid.com)
    3 points by fzil 2 hours ago | hide | past | favorite | 1 comment










    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.







    Join us for AI Startup School this June 16-17 in San Francisco!


    Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact



    Search:
    联系我们 contact @ memedata.com