Memory-safe Python script patterns for long-running processes under systemd MemoryMax constraints.
“코딩과 소프트웨어 개발” 분야의 스킬이에요. Claude Code, Codex, OpenCode 외 32개 에이전트용 명령이 준비돼 있어요.
전체 설명
Memory-safe Python script patterns for long-running processes under systemd MemoryMax constraints. Covers allocator purge (mimalloc/glibc malloc_trim), HTTP response lifecycle, DataFrame cleanup, thread-local connection reuse, and periodic GC cadence. Battle-tested through 5 OOM optimization cycles on production GPU workstations. Use this skill proactively whenever writing or reviewing Python scripts that: run under systemd with MemoryMax, process data in loops (downloads, ETL, backfill), use ThreadPoolExecutor, or make repeated HTTP requests. Also use when diagnosing OOM kills, RSS creep, or fd exhaustion in Python services. TRIGGERS - memory optimization, OOM prevention, RSS reduction, malloc_trim, systemd MemoryMax, memory leak, allocator purge, memory-safe script, RSS creep, fd exhaustion, SIGKILL status 9, MemoryHigh, glibc arena, mimalloc purge, requests memory leak, ThreadPoolExecutor cleanup.
Skill
코딩과 소프트웨어 개발
에이전트 35개
5 스타
MIT
이 항목의 출처는 ClaudSkills 오픈 데이터셋이에요. ANG은 이 스킬을 실행하거나 감사하지 않았어요. 설치하기 전에 소스를 확인하세요.