filecoin-project/curio

ffiselect: Set /proc/../oom_score_adj

开放

#329 创建于 2024年11月19日

 (0 条评论) (0 个反应) (0 位负责人)Go (47 个派生)github user discovery
good first issuehelp wanted

仓库指标

星标
 (50 个星标)
PR 合并指标
 (平均合并 7天 19小时) (30 天内合并 38 个 PR)

描述

We should be setting /proc/[childpid]/oom_score_adj to a high value like 900 on tasks which aren't PoSt so that:

  • The main process is less likely to be killed
  • Other processes on the machine are less likely to be killed (Lotus, yugabyte)
  • Things don't break horribly when the scheduler misjudges how much memory we have (i.e. something outside of curio uses a bunch of memory in the middle of a memory-heavy task)

贡献者指南