Home
Help
Search
Login
Register
OPNsense Forum
»
Archive
»
23.7 Legacy Series
»
CPU temp reporting
« previous
next »
Print
Pages:
1
[
2
]
Author
Topic: CPU temp reporting (Read 3792 times)
AhnHEL
Jr. Member
Posts: 66
Karma: 6
Re: CPU temp reporting
«
Reply #15 on:
November 27, 2024, 06:25:51 pm »
@meyergru It looks like that second CPU0 belongs to dev.pchtherm.0 but then why does the formatting in the widget express it as CPU0?
Logged
AhnHEL (Angel)
franco
Administrator
Hero Member
Posts: 17687
Karma: 1614
Re: CPU temp reporting
«
Reply #16 on:
November 27, 2024, 06:27:08 pm »
I merged this now since I haven't seen a better approach yet:
https://github.com/opnsense/core/commit/eded37411f
It would be nice if configd had a "prefetch" and "serve expired" type of metric but in the average case this is more than enough. A suboptimal workaround can be discussed, but it will always look a bit strange in my opinion (running random actions at boot to fix an edge case on certain hardware).
Cheers,
Franco
Logged
AhnHEL
Jr. Member
Posts: 66
Karma: 6
Re: CPU temp reporting
«
Reply #17 on:
November 27, 2024, 07:12:04 pm »
@franco I applied the patch, can it omit the tjmax graph outputs? Its not easy on the eyes. I'm still having issue with the pchtherm.0 section that shows up as another CPU0.
Logged
AhnHEL (Angel)
franco
Administrator
Hero Member
Posts: 17687
Karma: 1614
Re: CPU temp reporting
«
Reply #18 on:
November 27, 2024, 07:41:24 pm »
Can you dump your
# configctl system sensors
here?
The 100 degree ones look like thresholds from Intel CPU maybe. I don't have the hardware to verify.
The widget is another issue as the patch only deals with the backend. It would be nicer if the widget would not do too much magic here guestimating where the reading comes from and making similar readings collapsible maybe.
But we can get there step by step. Thanks for testing!
Cheers,
Franco
Logged
AhnHEL
Jr. Member
Posts: 66
Karma: 6
Re: CPU temp reporting
«
Reply #19 on:
November 27, 2024, 07:50:05 pm »
Thank you, yes.
# configctl system sensors
dev.cpu.0.coretemp.tjmax
dev.cpu.0.temperature
dev.cpu.1.coretemp.tjmax
dev.cpu.1.temperature
dev.cpu.10.coretemp.tjmax
dev.cpu.10.temperature
dev.cpu.11.coretemp.tjmax
dev.cpu.11.temperature
dev.cpu.2.coretemp.tjmax
dev.cpu.2.temperature
dev.cpu.3.coretemp.tjmax
dev.cpu.3.temperature
dev.cpu.4.coretemp.tjmax
dev.cpu.4.temperature
dev.cpu.5.coretemp.tjmax
dev.cpu.5.temperature
dev.cpu.6.coretemp.tjmax
dev.cpu.6.temperature
dev.cpu.7.coretemp.tjmax
dev.cpu.7.temperature
dev.cpu.8.coretemp.tjmax
dev.cpu.8.temperature
dev.cpu.9.coretemp.tjmax
dev.cpu.9.temperature
dev.pchtherm.0.ctt
dev.pchtherm.0.pmtemp
dev.pchtherm.0.t0temp
dev.pchtherm.0.t1temp
dev.pchtherm.0.t2temp
dev.pchtherm.0.temperature
Logged
AhnHEL (Angel)
franco
Administrator
Hero Member
Posts: 17687
Karma: 1614
Re: CPU temp reporting
«
Reply #20 on:
November 28, 2024, 02:08:46 pm »
Thanks I added this one to ignore the coretemp threshold:
https://github.com/opnsense/core/commit/d314680
What I really dislike is FreeBSD kernel faking the CPU temperatures for amdtemp which isn't even per core, but was made this way to match the coretemp behaviour (which is also quite bulky with lots of cores).
pchtherm(4) is also annoying with only one reading and the rest being thresholds which are hard to separate from each other.
Cheers,
Franco
Logged
AhnHEL
Jr. Member
Posts: 66
Karma: 6
Re: CPU temp reporting
«
Reply #21 on:
November 29, 2024, 07:16:24 pm »
The 'pchtherm0.temperature' is the only relevant reading so the others should just be omitted/ignored for the widget. Then again if the dev.cpu readings are available, do we even need the pchtherm at all for the widget?
Logged
AhnHEL (Angel)
franco
Administrator
Hero Member
Posts: 17687
Karma: 1614
Re: CPU temp reporting
«
Reply #22 on:
November 30, 2024, 11:27:24 am »
Yes, the whole point was being inclusive of unknown sensors that may be useful and as you can see it's a wild west of interesting and not so interesting metrics in incoherent form.
I think we should make a default filter in the widget and go from there. Users can then adjust if needed. Adding too much glue in the backend is probably not a good approach (and it already filters a bit much for technical reasons, oh well).
Cheers,
Franco
Logged
Print
Pages:
1
[
2
]
« previous
next »
OPNsense Forum
»
Archive
»
23.7 Legacy Series
»
CPU temp reporting