mirror of
https://github.com/JakeHillion/scx.git
synced 2024-11-25 11:00:24 +00:00
scx_layered: Fix consume_preempting() when --local-llc-iteration
consume_preempting() wasn't teting layer->preempt in consume_preempting() when --local-llc-iterations ending up treating all layers as preempting layers and often leading to HI fallback starvations under saturation. Fix it.
This commit is contained in:
parent
51d4945d69
commit
93a0bc9969
@ -1515,7 +1515,7 @@ __weak int consume_preempting(struct cost *costc, u32 my_llc_id)
|
||||
return -EINVAL;
|
||||
}
|
||||
layer = MEMBER_VPTR(layers, [layer_idx]);
|
||||
if (has_budget(costc, layer) == 0)
|
||||
if (!layer->preempt || has_budget(costc, layer) == 0)
|
||||
continue;
|
||||
dsq_id = layer_dsq_id(layer_idx, llc_id);
|
||||
if (scx_bpf_consume(dsq_id))
|
||||
|
Loading…
Reference in New Issue
Block a user