Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 27 Apr 2021 12:28:53 -0600
From:      Ian Lepore <ian@freebsd.org>
To:        tech-lists <tech-lists@zyxst.net>, freebsd-stable@freebsd.org
Subject:   Re: clocked speed not showing in dev.cpu.[0-7].freq
Message-ID:  <6d120fc0eaecc5e89083cd494598e076746c5849.camel@freebsd.org>
In-Reply-To: <YIhWe6xr4J/fhXV2@ceres.zyxst.net>
References:  <YIhWe6xr4J/fhXV2@ceres.zyxst.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 2021-04-27 at 19:22 +0100, tech-lists wrote:
> Hi,
> 
> Not sure where to put this. system is amd64/stable/13. It's running
> powerd but with no additional flags.
> 
> CPU is Intel(R) Core(TM) i7-4770K CPU. Has 32GB RAM
> 
> The system is clocked in the bios at 4.251 GHz. I never see this
> value
> in sysctl dev.cpu.[0-7].freq though. Here's the output:
> 
> [...]
> sysctl dev.cpu.0
> dev.cpu.0.cx_method: C1/hlt
> dev.cpu.0.cx_usage_counters: 100878534
> dev.cpu.0.cx_usage: 100.00% last 185us
> dev.cpu.0.cx_lowest: C1
> dev.cpu.0.cx_supported: C1/1/0
> dev.cpu.0.freq_levels: 3400/84000 3200/77169 3100/73848 2900/67388
> 2700/61182 2500/55201 2400/52298 2200/46677 2000/41272 1800/36091
> 1700/34277 1500/29407 1300/24752 1100/20312 1000/18167 800/14031
> dev.cpu.0.freq: 3400
> dev.cpu.0.temperature: 68.0C
> dev.cpu.0.coretemp.throttle_log: 0
> dev.cpu.0.coretemp.tjmax: 100.0C
> dev.cpu.0.coretemp.resolution: 1
> dev.cpu.0.coretemp.delta: 32
> dev.cpu.0.%parent: acpi0
> dev.cpu.0.%pnpinfo: _HID=none _UID=0 _CID=none
> dev.cpu.0.%location: handle=\_PR_.CPU0
> dev.cpu.0.%driver: cpu
> dev.cpu.0.%desc: ACPI CPU
> 
> Here's the cpu string on boot:
> 
> CPU: Intel(R) Core(TM) i7-4770K CPU @ 3.50GHz (4251.32-MHz K8-class
> CPU)
> 
> So, is it really clocked? or does the sysctl show what is right?
> 
> thanks,

The same is true on my system:

CPU: Intel(R) Xeon(R) CPU  W3680  @ 3.33GHz (4250.09-MHz K8-class CPU)

dev.cpu.0.freq_levels: 3334/143000 3333/130000 3200/117000 3067/105000
2933/94000 2800/85000 2667/76000 2533/68000 2400/61000 2267/54000
2133/48000 2000/43000 1867/39000 1733/35000 1600/32000

I've clocked this cpu at various speeds between 4.25 - 5.0 ghz over the
years (faster when it was younger, more conservative now that it's
old).  The value in parens (4250.09) changes accordingly, but the
values in the sysctl never do.  I'm sure this is running at the
overclocked speed (various benchmark values change as they should when
changing the OC values in the bios).

-- Ian





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6d120fc0eaecc5e89083cd494598e076746c5849.camel>