From owner-freebsd-stable@freebsd.org Tue Apr 27 19:39:13 2021 Return-Path: Delivered-To: freebsd-stable@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id B46085FF331 for ; Tue, 27 Apr 2021 19:39:13 +0000 (UTC) (envelope-from bsd-lists@bsdforge.com) Received: from udns.ultimatedns.net (static-24-113-41-81.wavecable.com [24.113.41.81]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "ultimatedns.net", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4FVBsY1k5zz4pqn; Tue, 27 Apr 2021 19:39:12 +0000 (UTC) (envelope-from bsd-lists@bsdforge.com) Received: from ultimatedns.net (localhost [127.0.0.1]) by udns.ultimatedns.net (8.16.1/8.16.1) with ESMTP id 13RJdLVs045928; Tue, 27 Apr 2021 12:39:27 -0700 (PDT) (envelope-from bsd-lists@bsdforge.com) MIME-Version: 1.0 Date: Tue, 27 Apr 2021 12:39:21 -0700 From: Chris To: Ian Lepore Cc: tech-lists , freebsd-stable@freebsd.org Subject: Re: clocked speed not showing in dev.cpu.[0-7].freq In-Reply-To: <6d120fc0eaecc5e89083cd494598e076746c5849.camel@freebsd.org> References: <6d120fc0eaecc5e89083cd494598e076746c5849.camel@freebsd.org> User-Agent: UDNSMS/17.0 Message-ID: <24758ded5d10947640055621aebc7c31@bsdforge.com> X-Sender: bsd-lists@bsdforge.com Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4FVBsY1k5zz4pqn X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [0.00 / 15.00]; ASN(0.00)[asn:11404, ipnet:24.113.0.0/16, country:US]; local_wl_ip(0.00)[24.113.41.81] X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Apr 2021 19:39:13 -0000 On 2021-04-27 11:28, Ian Lepore wrote: > 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). FWIW on all my AMD CPUs that top out @4.25-4.50Ghz FreeBSD reports 3.8Ghz. I get the idea the FreeBSD returns the average (running) top speed on CPU0 --Chris > > -- Ian > > > _______________________________________________ > freebsd-stable@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org"