mirror of
https://github.com/narrrl/proton-drive-linux.git
synced 2026-12-03 20:41:50 +01:00
The first item of the scheduler's delivery order is to measure before any policy changes. An admission now reports its load per class of step: how many run, how many wait, how long the oldest has waited, and the total and longest wait so far. Bounded meters this with counters that are updated when a step asks, is admitted and drops its permit; a step that stops waiting leaves the line without counting. `pdfs diagnostics` prints the load, and each sync pass trace records the time its steps spent waiting for admission as `admission wait`, apart from the time they spent on the network. The control protocol gains `Diagnostics::admission`, which defaults to empty for an older daemon.
15 lines
361 B
TOML
15 lines
361 B
TOML
[package]
|
|
name = "pdfs-sched"
|
|
version.workspace = true
|
|
edition.workspace = true
|
|
license.workspace = true
|
|
authors.workspace = true
|
|
rust-version.workspace = true
|
|
repository.workspace = true
|
|
homepage.workspace = true
|
|
description = "Admission of background work for the Proton Drive Linux client"
|
|
|
|
[dependencies]
|
|
tokio.workspace = true
|
|
parking_lot.workspace = true
|