ワンクリックで
memory-allocator
Choosing and profiling the global allocator (jemalloc, mimalloc, system) in the backend-service `service` template
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Choosing and profiling the global allocator (jemalloc, mimalloc, system) in the backend-service `service` template
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Request lifecycle, Tower layer ordering, and scaling choices in the backend-service `service` template
Observability wiring for the backend-service `service` template: metrique wide-event metrics, tracing logs, and optional dial9 runtime profiling
Setting up automated crate releases with release-plz and OIDC trusted publishing
Standard GitHub Actions CI structure for Rust projects using ci-battery-pack
Cross-platform binary builds for GitHub Releases with cargo-binstall support
Propagating and formatting errors in Rust applications with anyhow
| name | memory-allocator |
| description | Choosing and profiling the global allocator (jemalloc, mimalloc, system) in the backend-service `service` template |
The allocator choice at generation time sets the #[global_allocator] in src/main.rs. It is a build-time decision, not a runtime knob.
tikv-jemallocator, the default): a mature, arena-based allocator with strong fragmentation control and steady RSS under sustained multi-threaded load, plus deep runtime tuning (MALLOC_CONF) and built-in heap profiling. The cost is a higher idle baseline and a larger binary. It does not build on MSVC, so both the dependency and the #[global_allocator] static are gated with cfg(not(target_env = "msvc")).jemalloc is the default; switch only after measuring your workload.
When the dial9 feature is on, the global allocator is wrapped in Dial9Allocator, which is a passthrough until a memory profiler is installed in main. Set DIAL9_MEMORY_PROFILE_ENABLED=true to install it at startup and capture allocation samples. dial9's own tooling reads the resulting profile; this skill does not cover that analysis.
cfg(not(target_env = "msvc")) gate on both the jemalloc dependency and its static, or Windows builds break.#[global_allocator]. When dial9 is on, the allocator must be the Dial9Allocator wrapper around your chosen allocator, not the bare allocator, or heap profiling silently records nothing.telemetry skill.