Skip to main content

Module tune

Module tune 

Source
Expand description

Device-tier auto-tuning.

ripsync runs on everything from a 2-core NAS to a 32-core workstation. A fixed set of defaults is wrong at both ends: too many threads thrash a small box, too few leave a big one idle. detect probes the machine (CPU count, and total RAM where it can be read without unsafe or extra dependencies) and picks a Profile; Profile::params turns that into concrete TuneParams — worker threads, copy-buffer size, io_uring queue depth, and zstd level — consumed across the walk, copy, and remote paths.

Structs§

TuneParams
Concrete knobs derived from a Profile for a given core count.

Enums§

Profile
A device performance tier.

Functions§

detect
Auto-detect the device profile for the current machine.
resolve
Classify a machine from its core count and (optionally known) total RAM in GiB.
total_ram_gib
Best-effort total physical RAM in GiB. Returns None where it cannot be read without unsafe or extra dependencies (the classifier then uses cores alone).