Skip to content

clock detectd is not right for hybrid CPU.  #93

@edisonchan

Description

@edisonchan

OS: ubuntu 22.04.1 kernel 5.19.1
CPU: Intel 12900KF.

situation 1
bios: disable all e-core, CPU freq= 4GHz, grub kernel command line add idle=poll(disable C-state):
cpupower show all cores(pcore) run at 4GHz.
then:
export UARCH_BENCH_CLOCK_MHZ=4000
sudo ./uarch-bench.sh

Using timer: clock
Welcome to uarch-bench (e4f54d5)
Supported CPU features: SSE3 PCLMULQDQ VMX EST TM2 SSSE3 FMA CX16 SSE4_1 SSE4_2 MOVBE POPCNT AES AVX RDRND TSC_ADJ BMI1 AVX2 BMI2 ERMS RDSEED ADX CLFLUSHOPT CLWB INTEL_PT SHA
Pinned to CPU 0
Source pages allocated with transparent hugepages: 100.0
Median CPU speed: 3.201 GHz
Running benchmarks groups using timer clock

Median CPU speed: 3.201 GHz
UARCH_BENCH_CLOCK_MHZ does not work?

situation 2
bios: enable e-core , CPU freq= default, grub kernel command line add idle=poll(disable C-state):
cpupower show p-cores run at 5.2GHz and e-cores run at 3.7GHz

UARCH_BENCH_CLOCK_MHZ not set.

sudo ./uarch-bench.sh

Succesfully disabled turbo boost using intel_pstate/no_turbo
Using timer: clock
Welcome to uarch-bench (e4f54d5)
Supported CPU features: SSE3 PCLMULQDQ VMX EST TM2 SSSE3 FMA CX16 SSE4_1 SSE4_2 MOVBE POPCNT AES AVX RDRND TSC_ADJ BMI1 AVX2 BMI2 ERMS RDSEED ADX CLFLUSHOPT CLWB INTEL_PT SHA
Pinned to CPU 0
Source pages allocated with transparent hugepages: 100.0
Median CPU speed: 3.101 GHz
Running benchmarks groups using timer clock

Median CPU speed: 3.101 GHz

The problem here is the Median CPU speed was detected as 3.101 GHz, that is not right for p-cores and e-cores.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions