CPU 0 = 81°CCPU 1 = 81°CCPU 2 = 58°CCPU 3 = 58°CCPU 4 = 79°CCPU 5 = 79°CCPU 6 = 79°CCPU 7 = 79°CCPU 8 = 79°C
CPU 0 = 58°CCPU 1 = 58°CCPU 2 = 54°CCPU 3 = 54°CCPU 4 = 58°CCPU 5 = 58°CCPU 6 = 58°CCPU 7 = 58°CCPU 8 = 58°C
dev.cpu.0.temperature: 40.0Cdev.cpu.1.temperature: 40.0Cdev.cpu.2.temperature: 35.0Cdev.cpu.3.temperature: 35.0Cdev.cpu.4.temperature: 40.0Cdev.cpu.5.temperature: 40.0Cdev.cpu.6.temperature: 40.0Cdev.cpu.7.temperature: 40.0C
dev.cpu.0.temperature: 49.0Cdev.cpu.1.temperature: 49.0Cdev.cpu.2.temperature: 41.0Cdev.cpu.3.temperature: 42.0Cdev.cpu.4.temperature: 50.0Cdev.cpu.5.temperature: 52.0Cdev.cpu.6.temperature: 52.0Cdev.cpu.7.temperature: 52.0C
you're querying the same values, but one method parses MUCH less data than the other...Here is the dev.cpu method...```root@router-02:~ # sysctl dev.cpu | wc -l 273```Looking for temp by looking at only needs to export and grep through 273 lines.Here is the sysctl -a method...```root@router-02:~ # sysctl -a | wc -l 16497```The sysctl has to export 16000+ more lines than the one that only looks at cpu values, then has to grep through those 16k values to find the ones that match the grep.The 2nd command finishes quickly, but it still causes enough additional cpu load to show the temp has been raised by the time temperature is filtered out by the grep command.