Re: [PATCH v2 20/23] sched/cache: Add user control to adjust the parameters of cache-aware scheduling
From: Chen, Yu C
Date: Fri Dec 19 2025 - 08:39:41 EST
On 12/19/2025 12:14 PM, Vern Hao wrote:
On 2025/12/4 07:07, Tim Chen wrote:
From: Chen Yu <yu.c.chen@xxxxxxxxx>
the range of llc_aggr_tolerance is [0, 100], so a little bug here? maybe check if (llc_aggr_tolerance >= 100)
and if llc_aggr_tolerance = 0, the func return 0, it means exceed_llc_capacity & exceed_llc_nr always true, there maybeinconsistent to have this value set while |llc_enable=1| is set.
I see your point. The original idea was that llc_aggr_tolerance and llc_enable
work together (independently) to determine whether cache-aware scheduling should
be enabled. That is to say, llc_enable was not supposed be used as an
indicator for users to query whether the actual cache-aware scheduling is enabled.
Let me check if we can reset llc_enable if llc_aggr_tolerance is 0.
thanks,
Chenyu