Skip to content

Make HCCL OOM injection persistent after trigger count - #9

Draft
yjyang62 wants to merge 1 commit into
cursor/pta-oom-2.9.1-fbcafrom
cursor/hccl-oom-persistent-c29d
Draft

Make HCCL OOM injection persistent after trigger count#9
yjyang62 wants to merge 1 commit into
cursor/pta-oom-2.9.1-fbcafrom
cursor/hccl-oom-persistent-c29d

Conversation

@yjyang62

Copy link
Copy Markdown
Owner

Summary

修改 maybeThrowHcclOom 的触发条件:达到 HCCL_OOM_TRIGGER_COUNT 次数后,后续所有 HCCL 操作都会持续注入 OOM 故障,而不是仅在触发后的 2 次调用内注入。

Changes

  • 将条件从 current_count > trigger_count && current_count < trigger_count + 2 改为 current_count > trigger_count
  • 达到触发次数后,每次 HCCL 操作都会抛出 OutOfMemoryError

Behavior

阶段 修改前 修改后
count ≤ trigger_count 正常执行 正常执行
count = trigger_count + 1, +2 注入 OOM 注入 OOM
count > trigger_count + 2 正常执行 持续注入 OOM
Open in Web Open in Cursor 

Remove the upper bound (trigger_count + 2) so that injected HCCL OOM
errors continue for all subsequent operations once the call count
exceeds HCCL_OOM_TRIGGER_COUNT.

Co-authored-by: yjyang62 <yjyang62@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants