(Post the questions here on behalf of Yun Hsiang)
Hi all,
I’d like to ask discuss some questions about uclamp in linux-power.githttp://www.linux-arm.org/git?p=linux-power.git;a=summary.
Code is based on the following version. linux-power.githttp://www.linux-arm.org/git?p=linux-power.git;a=summary tag: topic-util_clamp-20190412
1. If a task clamped utilization is higher than a cpu capacity, should EAS bypass that cpu? kernel/sched/fair.c static int find_energy_efficient_cpu(struct task_struct *p, int prev_cpu) { … /* Skip CPUs that will be overutilized. */ util = cpu_util_next(cpu, p, cpu); <= Should this util use task clamped utilization? cpu_cap = capacity_of(cpu); if (cpu_cap * 1024 < util * capacity_margin) continue; … }
1. Will uclamp add a kernel-space API to set per-task utilization clamping? Drivers/kernel module can use this API for precise performance/power tuning.
Best regards, Yun
IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.