fix(positions): use deterministic temp file to prevent dentry slab growth - #7043
AruneshDwivedi wants to merge 1 commit into
Conversation
…owth Replaces renameio.WriteFile with a custom atomicWriteFile that uses a deterministic temp path (<target>.tmp) instead of a unique random name on every call. This prevents unbounded kernel dentry slab growth under cgroup v2 when positions are written every 10 seconds.
Signed commits report1 of 1 commit between
This repository requires all commits to be signed. See GitHub docs on commit signature verification. |
|
|
1 similar comment
|
|
|
Hey I believe we can use https://github.com/natefinch/atomic instead of having our own implementation. We already have this as a dependency in alloy |
Summary
Replaces renameio.WriteFile with a custom atomicWriteFile that uses a deterministic temp path (.tmp) instead of a unique random name on every call. This prevents unbounded kernel dentry slab growth under cgroup v2 when positions are written every 10 seconds.
Changes
Fixes #6938