Skip to content
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

CPU Temp for AMD Ryzen 7 CPU on FreeBSD 12.1 is off #143

Open
vendion opened this issue Jul 22, 2020 · 2 comments
Open

CPU Temp for AMD Ryzen 7 CPU on FreeBSD 12.1 is off #143

vendion opened this issue Jul 22, 2020 · 2 comments
Assignees
Labels
area:devices Related to sources of data bug Something isn't working os:freebsd
Milestone

Comments

@vendion
Copy link

vendion commented Jul 22, 2020

gotop version:

gotop 4.0.1

OS/Arch:

12.1-RELEASE-p7

Terminal emulator:

Urxvt

Any relevant hardware info:

AMD Ryzen 7 1700 Eight-Core Processor

Also please copy or attach ~/.local/state/gotop/errors.log if it exists and contains logs:

06:21:04 temp.go:18: error updating temp for Thermal zone 0: exit status 1
06:21:04 temp.go:18: error updating temp for CPU 0 : exit status 1
06:21:09 temp.go:18: error updating temp for CPU 0 : exit status 1
06:21:09 temp.go:18: error updating temp for Thermal zone 0: exit status 1
06:21:14 temp.go:18: error updating temp for CPU 0 : exit status 1
06:21:14 temp.go:18: error updating temp for Thermal zone 0: exit status 1
06:21:19 temp.go:18: error updating temp for CPU 0 : exit status 1
06:21:19 temp.go:18: error updating temp for Thermal zone 0: exit status 1
06:21:24 temp.go:18: error updating temp for CPU 0 : exit status 1
06:21:24 temp.go:18: error updating temp for Thermal zone 0: exit status 1
06:21:29 temp.go:18: error updating temp for CPU 0 : exit status 1
06:21:29 temp.go:18: error updating temp for Thermal zone 0: exit status 1
06:21:34 temp.go:18: error updating temp for Thermal zone 0: exit status 1
06:21:34 temp.go:18: error updating temp for CPU 0 : exit status 1
06:21:39 temp.go:18: error updating temp for CPU 0 : exit status 1
06:21:39 temp.go:18: error updating temp for Thermal zone 0: exit status 1
06:21:44 temp.go:18: error updating temp for CPU 0 : exit status 1
06:21:44 temp.go:18: error updating temp for Thermal zone 0: exit status 1
06:21:49 temp.go:18: error updating temp for CPU 0 : exit status 1
06:21:49 temp.go:18: error updating temp for Thermal zone 0: exit status 1
06:21:54 temp.go:18: error updating temp for CPU 0 : exit status 1
06:21:54 temp.go:18: error updating temp for Thermal zone 0: exit status 1

Using Gotop 4.0.1 with the -f switch on FreeBSD 12.1 results in really high CPU temps being reported. So much so I'm pretty sure things would be melting if that was the correct value. In the attached screenshot gotop is running on the right, and the left is the CPU temp (in Celsius) as reported by the sysctl utility. In it sysctl reports that the temp for each core is 47.6C which looks about right for the "CPU 0" temp reported by Gotop but the next line says the temp is 25,467F.

2020-07-22-004857_1902x513_scrot

So either my CPU can melt steel or something off with the values reported by gotop 🤷‍♂️

@xxxserxxx
Copy link
Owner

Occasionally conversion bugs show up on some non-Linux systems, like the code expecting C and getting F. This looks more like a floating point rounding error. Thanks for the report.

@xxxserxxx xxxserxxx self-assigned this Jul 24, 2020
@xxxserxxx xxxserxxx added area:devices Related to sources of data os:freebsd bug Something isn't working labels Jul 24, 2020
@xxxserxxx xxxserxxx added this to the v4.0.2 milestone Jul 24, 2020
@xxxserxxx xxxserxxx modified the milestones: v4.0.2, v4.1.1 Aug 25, 2020
@xxxserxxx xxxserxxx modified the milestones: v4.1.1, v4.1.2 Jan 27, 2021
@xxxserxxx xxxserxxx modified the milestones: v4.1.2, v4.1.3 Jul 20, 2021
@xxxserxxx xxxserxxx modified the milestones: v4.1.3, v4.2.0 Feb 10, 2022
@xxxserxxx
Copy link
Owner

I'm pulling this out of the next release; I don't have access to a FreeBSD machine, and sysctl on QEMU returns no CPU thermal information. I'm stuck as how to proceed debugging this until I get a VM that provides data, probably through renting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:devices Related to sources of data bug Something isn't working os:freebsd
Projects
None yet
Development

No branches or pull requests

2 participants