邻接机制:os 进程生命周期、信号和管道接口。
固定源码版本:2f2318653f6f794dddd321eff7c9d4b7b174643f。本表共 41 条静态出现记录;不是运行次数。
同一个直接 API 表达式只记为 api_call 或 api_reference 中的一类。实例候选不计入直接原生 API 总数。
| ID | 位置 / 快照 | 所属符号 | 种类 | API / 语法 | 来源判定 | 源码行 |
|---|---|---|---|---|---|---|
| occ-000711 | slime/backends/sglang_utils/sglang_engine.py:5 · 快照 | <module> | import | os | explicit_import | import os |
| occ-000716 | slime/backends/sglang_utils/sglang_engine.py:51 · 快照 | launch_server_process | api_call | os.getpid | lexical_import_resolution | p = multiprocessing.Process(target=_launch_server, args=(server_args, os.getpid())) |
| occ-000719 | slime/backends/sglang_utils/sglang_engine.py:73 · 快照 | _launch_server | api_call | os.getppid | lexical_import_resolution | if os.getppid() == parent_pid: |
| occ-000823 | slime/data/transport.py:7 · 快照 | <module> | import | os | explicit_import | import os |
| occ-000829 | slime/data/transport.py:90 · 快照 | rollout_store | api_call | os.getpid | lexical_import_resolution | key = (os.getpid(), root, run_id, profile, segment_mib, online_gc, json.dumps(declaration, sort_keys=True)) |
| occ-000836 | slime/data/transport.py:373 · 快照 | run_rollout_io | api_call | os.getpid | lexical_import_resolution | key = (os.getpid(), loop) |
| occ-001275 | slime/utils/reloadable_process_group.py:2 · 快照 | <module> | import | os | explicit_import | import os |
| occ-001276 | slime/utils/reloadable_process_group.py:44 · 快照 | register_default_process_group | api_call | os.getpid | lexical_import_resolution | pid = os.getpid() |
| occ-001278 | slime/utils/reloadable_process_group.py:79 · 快照 | _destroy_default_accelerator_process_group | api_call | os.getpid | lexical_import_resolution | state = default_process_group_states.get(os.getpid()) |
| occ-001280 | slime/utils/reloadable_process_group.py:109 · 快照 | _reload_default_process_group | api_call | os.getpid | lexical_import_resolution | state = default_process_group_states.get(os.getpid()) |
| occ-001281 | slime/utils/reloadable_process_group.py:146 · 快照 | monkey_patch_torch_dist | api_call | os.getpid | lexical_import_resolution | pid = os.getpid() |
| occ-001283 | slime/utils/reloadable_process_group.py:300 · 快照 | ReloadableProcessGroup.init | api_call | os.getpid | lexical_import_resolution | pid = os.getpid() |
| occ-001284 | slime/utils/reloadable_process_group.py:310 · 快照 | ReloadableProcessGroup.destroy_process_groups | api_call | os.getpid | lexical_import_resolution | pid = os.getpid() |
| occ-001286 | slime/utils/reloadable_process_group.py:328 · 快照 | ReloadableProcessGroup.invalidate_process_groups | api_call | os.getpid | lexical_import_resolution | pid = os.getpid() |
| occ-001288 | slime/utils/reloadable_process_group.py:334 · 快照 | ReloadableProcessGroup.reload_process_groups | api_call | os.getpid | lexical_import_resolution | pid = os.getpid() |
| occ-001295 | slime/utils/reloadable_process_group.py:470 · 快照 | destroy_process_groups | api_call | os.getpid | lexical_import_resolution | state = default_process_group_states.get(os.getpid()) |
| occ-001362 | tests/ci/gpu_lock_exec.py:4 · 快照 | <module> | import | os | explicit_import | import os |
| occ-001373 | tests/ci/gpu_lock_exec.py:55 · 快照 | _run_command.terminate_child | api_call | os.killpg | lexical_import_resolution | os.killpg(child.pid, signum) |
| occ-001376 | tests/ci/gpu_lock_exec.py:62 · 快照 | _run_command.terminate_child | api_call | os.killpg | lexical_import_resolution | os.killpg(child.pid, signal.SIGKILL) |
| occ-001885 | tests/test_qwen2.5_0.5B_training_recovery.py:5 · 快照 | <module> | import | os | explicit_import | import os |
| occ-001890 | tests/test_qwen2.5_0.5B_training_recovery.py:333 · 快照 | execute.block | api_call | os.getpid | lexical_import_resolution | started.write_text(str(os.getpid())) |
| occ-001915 | tests/test_rollout_manager_recovery.py:9 · 快照 | <module> | import | os | explicit_import | import os |
| occ-001917 | tests/test_rollout_manager_recovery.py:51 · 快照 | _ServingFixture.identity | api_call | os.getpid | lexical_import_resolution | return os.getpid(), self.controller._actor_id.hex() |
| occ-001918 | tests/test_rollout_manager_recovery.py:85 · 快照 | _install_crash.crash | api_call | os.getpid | lexical_import_resolution | “manager_pid”: os.getpid(), |
| occ-001919 | tests/test_rollout_manager_recovery.py:93 · 快照 | _install_crash.crash | api_call | os.kill | lexical_import_resolution | os.kill(os.getpid(), signal.SIGKILL) |
| occ-001920 | tests/test_rollout_manager_recovery.py:93 · 快照 | _install_crash.crash | api_call | os.getpid | lexical_import_resolution | os.kill(os.getpid(), signal.SIGKILL) |
| occ-001923 | tests/test_rollout_manager_recovery.py:220 · 快照 | test_manager_failure_replays_accepted_batch_with_new_dp.<lambda> | api_call | os.getpid | lexical_import_resolution | ray.get(manager.ray_call.remote(lambda self: os.getpid()), timeout=30) == before[“manager_pid”] |
| occ-001924 | tests/test_rollout_manager_recovery.py:244 · 快照 | _ResetPeer.pid | api_call | os.getpid | lexical_import_resolution | return os.getpid() |
| occ-001932 | tests/test_rollout_manager_recovery.py:368 · 快照 | _AttemptServing.state | api_call | os.getpid | lexical_import_resolution | return os.getpid(), self.driver_job_id, self.training_actors |
| occ-002057 | tests/test_straw_fully_async_recovery.py:11 · 快照 | <module> | import | os | explicit_import | import os |
| occ-002070 | tests/test_straw_fully_async_recovery.py:54 · 快照 | _generate_with_interrupt | api_call | os.getpid | lexical_import_resolution | sample.metadata[“generation_pid”] = os.getpid() |
| occ-002242 | tests/training_recovery_test_helpers.py:5 · 快照 | <module> | import | os | explicit_import | import os |
| occ-002244 | tests/training_recovery_test_helpers.py:20 · 快照 | _engine_identity | api_call | os.getpid | lexical_import_resolution | return {“actor_pid”: os.getpid(), “server_pid”: engine.process.pid, “url”: engine.get_url()} |
| occ-002245 | tests/training_recovery_test_helpers.py:24 · 快照 | _serving_identity | api_call | os.getpid | lexical_import_resolution | return {“serving_pid”: os.getpid(), “router_pids”: [process.pid for process in serving.router_processes]} |
| occ-002247 | tests/training_recovery_test_helpers.py:47 · 快照 | _session_snapshot | api_call | os.getpid | lexical_import_resolution | “manager_pid”: os.getpid(), |
| occ-002248 | tests/training_recovery_test_helpers.py:78 · 快照 | before_train_step | api_call | os.getpid | lexical_import_resolution | “pid”: os.getpid(), |
| occ-002284 | tools/fp8_cast_bf16.py:3 · 快照 | <module> | import | os | explicit_import | import os |
| occ-002285 | tools/fp8_cast_bf16.py:47 · 快照 | main | api_call | os.system | lexical_import_resolution | os.system(“cp -rf " + fp8_path + “/config.json " + bf16_path) |
| occ-002286 | tools/fp8_cast_bf16.py:48 · 快照 | main | api_call | os.system | lexical_import_resolution | os.system(“cp -rf " + fp8_path + “/*.py " + bf16_path) |
| occ-002287 | tools/fp8_cast_bf16.py:49 · 快照 | main | api_call | os.system | lexical_import_resolution | os.system(“cp -rf " + fp8_path + “/tokenizer* " + bf16_path) |
| occ-002288 | tools/fp8_cast_bf16.py:50 · 快照 | main | api_call | os.system | lexical_import_resolution | os.system(“cp -rf " + fp8_path + “/chat_template* " + bf16_path) |