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§
- Tune
Params - Concrete knobs derived from a
Profilefor 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
Nonewhere it cannot be read withoutunsafeor extra dependencies (the classifier then uses cores alone).