summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/net_dropmonitor.py
diff options
context:
space:
mode:
authorTao Cui <cuitao@kylinos.cn>2026-08-14 22:41:16 +0800
committerTejun Heo <tj@kernel.org>2026-08-14 09:56:28 -1000
commit94c20e1fb334c2082b443c4470a86ad982f67282 (patch)
tree9af0fd9a8e220a69a2c3166f9a122637bcd65f8b /tools/perf/scripts/python/net_dropmonitor.py
parent03506edca637a8465dba9f635c50e9884fbcaf4e (diff)
sched_ext/scx_flatcg: expire cached hweights on weight changes
fcg_cgroup_set_weight() updates cgc->weight and the parent's child_weight_sum but doesn't bump hweight_gen, so the hweights cached by cgrp_refresh_hweight() stay stale until some task activation bumps the generation. For cgroups whose tasks never go through a 0->n runnable transition (e.g. persistently busy ones), a cpu.weight change never propagates to scheduling at all. Bump hweight_gen on weight changes so the next refresh recomputes with the new weight. Verified on a flatcg VM: a live cpu.weight 100->800 change on a busy cgroup leaves HWT update at 0 and the distribution unchanged; with it, hweight_gen increments and the refresh recomputes. Signed-off-by: Tao Cui <cuitao@kylinos.cn> Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/net_dropmonitor.py')
0 files changed, 0 insertions, 0 deletions