-
Notifications
You must be signed in to change notification settings - Fork 140
scx_lavd detects wrong cpu configuration #1893
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Thanks @tr1xem for reporting this and providing info (over Discord). Will take a look! |
Looking forward to get it fixed Always ready for any kind of help. Thanks |
A case was reported that /sys/devices/system/cpu/cpuX/acpi_cppc/highest_perf have the same value for all CPUs on an Intel hybrid processor (i7-13650hx). This should be a bug in the driver side. To circumvent such a problem, make more efforts to find a source that can tell the capacity differences among the cores. If there is no such source, resort on the max frequency of CPUs to estimate CPU capacity. This should solve the following issue: sched-ext#1893 Signed-off-by: Changwoo Min <[email protected]>
A case was reported that /sys/devices/system/cpu/cpuX/acpi_cppc/highest_perf have the same value for all CPUs on an Intel hybrid processor (i7-13650hx). This should be a bug in the driver side. To circumvent such a problem, make more efforts to find a source that can tell the capacity differences among the cores. If there is no such source, resort on the max frequency of CPUs to estimate CPU capacity. This should solve the following issue: sched-ext#1893 Signed-off-by: Changwoo Min <[email protected]>
A case was reported that /sys/devices/system/cpu/cpuX/acpi_cppc/highest_perf have the same value for all CPUs on an Intel hybrid processor (i7-13650hx). This should be a bug on the driver's side. To circumvent such a problem, make more efforts to find a source that can tell the capacity differences among the cores. If there is no such source, resort to the max frequency of CPUs to estimate CPU capacity. This should solve the following issue: sched-ext#1893 Signed-off-by: Changwoo Min <[email protected]>
@multics69 05:08:28 [INFO] Autopilot mode is enabled.
05:08:28 [INFO] Opts {
autopilot: true,
autopower: false,
performance: false,
powersave: false,
balanced: false,
slice_max_us: 5000,
slice_min_us: 300,
cpu_pref_order: "",
no_futex_boost: false,
no_preemption: false,
no_wake_sync: false,
no_core_compaction: false,
no_freq_scaling: false,
stats: None,
monitor: None,
monitor_sched_samples: None,
verbose: 0,
version: false,
help_stats: false,
}
05:08:28 [INFO] CPU pref order in performance mode: [0, 2, 4, 6, 8, 10, 12, 13, 14, 15, 16, 17, 18, 19, 1, 3, 5, 7, 9, 11]
05:08:28 [INFO] CPU pref order in powersave mode: [12, 13, 14, 15, 16, 17, 18, 19, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11]
05:08:28 [INFO] scx_lavd scheduler is initialized (build ID: 1.0.12-g2c3b186d x86_64-unknown-linux-gnu)
05:08:28 [INFO] scx_lavd scheduler starts running. As you could see 1 3 5 7 8 11 are at last in performance mode they should be in front as they are part of pcore too. However Powersave mode's cpu pref are fine Also this: warning: value assigned to `raw_capacity` is never read
--> rust/scx_utils/src/topology.rs:606:13
|
606 | let mut raw_capacity = 0;
| ^^^^^^^^^^^^
|
= help: maybe it is overwritten before being read?
= note: `#[warn(unused_assignments)]` on by default
warning: `scx_utils` (lib) generated 1 warning |
Initialize `raw_capacity` only when needed to avoid warning. Ref: sched-ext#1893 Signed-off-by: Cheng-Yang Chou <[email protected]>
Initialize `raw_capacity` only when needed to avoid warning. Ref: sched-ext#1893 Signed-off-by: Cheng-Yang Chou <[email protected]>
@tr1xem -- Hmm, The only thing that I can imagine is that |
@multics69 Under Load Condtion (turbo boost on) some weird output highest pref is same for all still |
@tr1xem - -I double-checked the output for performance mode. I found it works as designed: physical P-CPUs first
It is weird in the sense that the So, it works as designed. I will close the issue for now. |
The performance is better already pcores are getting turbo boost first and everything seems pretty stable now |
Using scx_lavd I have i7-13650hx
According my cpu config 0-12 are performance core aka high power core and powersave use them is it not weird??
while performance mode use 12 - 19 which are low power threads aka efficient cores
I have i7-13650hx
my lstopo
The text was updated successfully, but these errors were encountered: