nordisk-alloc 0.1.0

The ONE long-lived-server allocator policy for the nordisk constellation — installs mimalloc AND tells it to hand freed memory back to the OS (`purge_delay` 10 ms, `arena_purge_mult` 1) so a dropped transient stops being resident forever. REUSE (LAW #5): mimalloc `0.1` compiles the v3 C sources, and v3 raised `purge_delay` from 10 ms to 1000 ms — at which point RSS is not memory in use but the running MAXIMUM of every transient the process ever built. MEASURED: a 2 GB transient dropped at the shipped default returned 0 bytes; at 10 ms it returned all but 156 MB. Every fat nordisk binary (dwarves-server, nornir-server, korp-server, holger, gunnar-service) wants this, and until now exactly one of them had it.
Documentation
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2021"
name = "nordisk-alloc"
version = "0.1.0"
build = false
exclude = ["/.nornir/"]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "The ONE long-lived-server allocator policy for the nordisk constellation — installs mimalloc AND tells it to hand freed memory back to the OS (`purge_delay` 10 ms, `arena_purge_mult` 1) so a dropped transient stops being resident forever. REUSE (LAW #5): mimalloc `0.1` compiles the v3 C sources, and v3 raised `purge_delay` from 10 ms to 1000 ms — at which point RSS is not memory in use but the running MAXIMUM of every transient the process ever built. MEASURED: a 2 GB transient dropped at the shipped default returned 0 bytes; at 10 ms it returned all but 156 MB. Every fat nordisk binary (dwarves-server, nornir-server, korp-server, holger, gunnar-service) wants this, and until now exactly one of them had it."
readme = false
keywords = [
    "mimalloc",
    "allocator",
    "rss",
    "memory",
    "oom",
]
categories = ["memory-management"]
license = "MIT OR Apache-2.0"
repository = "https://codeberg.org/nordisk/edda"
resolver = "3"

[features]
default = []
testmatrix = [
    "dep:nornir-testmatrix",
    "nornir-testmatrix/testmatrix",
]

[lib]
name = "nordisk_alloc"
path = "src/lib.rs"

[[test]]
name = "mimalloc_transient_peak"
path = "tests/mimalloc_transient_peak.rs"

[dependencies.libmimalloc-sys]
version = "0.1.16"
features = ["extended"]

[dependencies.mimalloc]
version = "0.1"

[dependencies.nornir-testmatrix]
version = "0.2.7"
optional = true
default-features = false

[dev-dependencies.mimalloc]
version = "0.1"