From 3a3bd2a7503bd3b867e3905b9313cad4f3848a55 Mon Sep 17 00:00:00 2001 From: Changwoo Min Date: Sat, 30 Mar 2024 22:59:06 +0900 Subject: [PATCH] scx_lavd: increase the upper bound of ineligible duration Change the upper bound of ineligible duration (LAVD_ELIGIBLE_TIME_MAX). The updated (2x increased) upper bound reflects the distribution of tasks' eligible_delta_ns better. Signed-off-by: Changwoo Min --- scheds/rust/scx_lavd/src/bpf/intf.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scheds/rust/scx_lavd/src/bpf/intf.h b/scheds/rust/scx_lavd/src/bpf/intf.h index 4b378ed..20eec8d 100644 --- a/scheds/rust/scx_lavd/src/bpf/intf.h +++ b/scheds/rust/scx_lavd/src/bpf/intf.h @@ -65,7 +65,7 @@ enum consts { LAVD_GREEDY_RATIO_MAX = USHRT_MAX, LAVD_ELIGIBLE_TIME_LAT_FT = 2, - LAVD_ELIGIBLE_TIME_MAX = (LAVD_TARGETED_LATENCY_NS >> 1), + LAVD_ELIGIBLE_TIME_MAX = LAVD_TARGETED_LATENCY_NS, LAVD_CPU_UTIL_MAX = 1000, /* 100.0% */ LAVD_CPU_UTIL_INTERVAL_NS = (100 * NSEC_PER_MSEC), /* 100 msec */