integrate trim-on-park memory reclamation to runtime

Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
Jason Volk 2025-01-16 19:08:54 +00:00
parent 7a8ca8842a
commit 77d8e26efe
2 changed files with 33 additions and 1 deletions

View file

@ -80,6 +80,18 @@ pub(crate) struct Args {
default_missing_value = "true",
)]
pub(crate) worker_affinity: bool,
/// Toggles feature to promote memory reclamation by the operating system
/// when tokio worker runs out of work.
#[arg(
long,
hide(true),
env = "CONDUWUIT_RUNTIME_GC_ON_PARK",
action = ArgAction::Set,
num_args = 0..=1,
require_equals(false),
)]
pub(crate) gc_on_park: Option<bool>,
}
/// Parse commandline arguments into structured data