Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 14 May 2015 05:58:26 -0400
From:      mfv <mfv@bway.net>
To:        "William A. Mahaffey III" <wam@hiwaay.net>
Cc:        "FreeBSD Questions !!!!" <freebsd-questions@freebsd.org>
Subject:   Re: sysctl question
Message-ID:  <20150514055826.01e841ae@gecko4>
In-Reply-To: <55541052.6020802@hiwaay.net>
References:  <55541052.6020802@hiwaay.net>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
Hello William,

I had the same problem using amdtemp but used the sysctl setting
"dev.amdtemp.%d.sensor_offset" to make it more accurate. The value was
determined by comparing the unadjusted value of admtemp with the value
shown in the BIOS.  In my case the setting in /etc/sysctl.conf is:

 dev.amdtemp.0.sensor_offset=24

A room thermometer was also helpful to measure the difference by
comparing the difference between the room temperature and the BIOS
after the CPU was placed under load.

To read the value I then bound the F2-key in csh.cshrc file as follows:

  bindkey -c "^[OQ" 'sysctl -e dev.amdtemp.0.core0'

The results of the reading are not as accurate as I would like but are
an improvement.

    Cheers ...                                 __o
                                             _ \<,_
    Marek                                   (+)/ (+)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

On Wed, 13 May 2015 22:08:57 -0453
"William A. Mahaffey III" <wam@hiwaay.net> wrote:

> 
> 
> My sysctl is reporting nonsense temps for my CPU:
> 
> [wam@kabini1, ~, 10:04:02pm] 357 % sysctl -A | egrep
> '(temperature|usage)' dev.cpu.0.temperature: 10.6C
> dev.cpu.0.cx_usage: 100.00% 0.00% last 445us
> dev.cpu.1.temperature: 10.6C
> dev.cpu.1.cx_usage: 100.00% last 11us
> dev.cpu.2.temperature: 10.6C
> dev.cpu.2.cx_usage: 100.00% last 21us
> dev.cpu.3.temperature: 10.6C
> dev.cpu.3.cx_usage: 100.00% last 9us
> [wam@kabini1, ~, 10:04:10pm] 358 % sysctl -a | grep -i model
> hw.model: AMD Sempron(tm) 3850 APU with Radeon(tm) R3
> dev.rgephy.0.%pnpinfo: oui=0xe04c model=0x0 rev=0x0
> [wam@kabini1, ~, 10:04:14pm] 359 % uname -a
> FreeBSD kabini1.local 9.3-RELEASE-p13 FreeBSD 9.3-RELEASE-p13 #0: Tue 
> Apr  7 03:01:12 UTC 2015 
> root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64
> [wam@kabini1, ~, 10:05:08pm] 360 %
> 
> 
> Room temp is about 75F, or ~23C. CPU is generating heat, 
> thermodynamically impossible for it to be cooler than room temp. 
> Obviously not critical, but I would like to know reasonably
> accurately how hot the CPU is in real time. Is this a sufficient bug
> report ? TIA ....
> 
> 




Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?20150514055826.01e841ae>