Hi,
I'm running OPNsense 25.1.2 on a Trigkey G5 which uses the Intel N100 CPU.
At the command line I've run 'sysctl -a | grep temperature' and I get the following:
hw.acpi.thermal.tz0.temperature: 27.9C
dev.cpu.3.temperature: 45.0C
dev.cpu.2.temperature: 44.0C
dev.cpu.1.temperature: 44.0C
dev.cpu.0.temperature: 44.0C
At the same time the GUI is showing the CPU cores at 49C. Why is there a difference between the two results ?
Thanks
The GUI itself is causing the CPU to work increasing the temperature by a couple of degrees.
Nowadays you can select the temperatures that you like most to be displayed while the others remain hidden.
Cheers,
Franco
Quote from: Patrick M. Hausen on March 19, 2025, 01:29:37 PMThe GUI itself is causing the CPU to work increasing the temperature by a couple of degrees.
The command line temperatures were recorded while I had the GUI open, surely they should be the same ?
The UI uses sysctl to get the temperatures. Look at the source.
Also the temp values jump around quite a bit (for me on a n150 at least). Just check the sysctl a view times and you may get +/-5°C each time. :)
vvd@mrqu:~ $ cpuinfo
dev.cpu.0.freq: 955
dev.cpu.0.temperature: 48.0C
dev.cpu.1.freq: 1171
dev.cpu.1.temperature: 48.0C
dev.cpu.2.freq: 1389
dev.cpu.2.temperature: 47.0C
dev.cpu.3.freq: 1511
dev.cpu.3.temperature: 47.0C
vvd@mrqu:~ $ cpuinfo
dev.cpu.0.freq: 1876
dev.cpu.0.temperature: 54.0C
dev.cpu.1.freq: 1664
dev.cpu.1.temperature: 53.0C
dev.cpu.2.freq: 1612
dev.cpu.2.temperature: 51.0C
dev.cpu.3.freq: 1612
dev.cpu.3.temperature: 51.0C
vvd@mrqu:~ $
Quote from: TomT on March 19, 2025, 11:22:08 PMQuote from: Patrick M. Hausen on March 19, 2025, 01:29:37 PMThe GUI itself is causing the CPU to work increasing the temperature by a couple of degrees.
The command line temperatures were recorded while I had the GUI open, surely they should be the same ?
No. Because the GUI is sitting 99% idle. It is only when the actual reading occurs that there is overhead and the CPU gets hotter for milliseconds before cooling down. And before you ask: The GUI readout heats it up more because it tries to find all temperatures from all sysctl variable names. Also, there is additional processing of the sysctl output.
What happens is that you have many small spikes which are caused by the readout itself, so you always see the spike temp in the GUI. In the CLI, you see the valleys, so to speak.
> The GUI readout heats it up more because it tries to find all temperatures from all sysctl variable names. Also, there is additional processing of the sysctl output.
That's not even true anymore since the sensors are being cached for 24 hours now, but the overhead of asking through privilege separation already heats it up enough to notice.
Cheers,
Franco