NUC CPU temperature concerns

One difference is that he is only running 1x 720P camera, I have 2x 4K cameras plus 2x 1080P cameras.

It is odd though that the temp goes up so much even though the CPU load is still low. I don’t know what else to do

Take this with a grain of salt, as you can find anything on Google (even the wrong answer to a question)
https://stackoverflow.com/questions/60104698/how-do-i-monitor-the-amount-of-simd-instruction-usage

Looks like top/htop don’t show avx or other accelerated functions. So your CPU is probably heating up from avx media decoding/transcoding and not showing on top/htop

The simplest way to test it all is one by one stopping the docker containers and putting them back up. Then you can see which one is putting your CPU to that much stress. Although I can imagine that transcoding / decoding all those streams without hardware acceleration is going to be the one causing this.

if you are using docker with many containers i suggest you this: https://github.com/bcicen/ctop
so you can see who is using CPU among all containers.
BTW i have a NUC8i5 and is at 55 °C when used ( i use it as a regular pc ) and near 40 °C over night with only containers usage.
Tamb at 22 °C.

This is much more like what should be expected…
@sparkydave, you may have some setup issues with motioneye, not making use of the GPU or the hardware CODEC of the cpu for transcoding. I don’t use motioneye but I transcode 16 cams 24/7 and never exceed 56C even when doing a bunch of other things and loading my CPU upwards of 50%. I really need to abuse it with overclocking stress tools/benchmarks to get anywhere close to 85C. Either that or you have failed hardware…

Thanks. I’ll play with some MotionEye settings and see what difference it makes

This only with debian, zoneminder container stopped:

sensors
coretemp-isa-0000
Adapter: ISA adapter
Package id 0:  +45.0°C  (high = +100.0°C, crit = +100.0°C)
Core 0:        +44.0°C  (high = +100.0°C, crit = +100.0°C)
Core 1:        +44.0°C  (high = +100.0°C, crit = +100.0°C)
Core 2:        +44.0°C  (high = +100.0°C, crit = +100.0°C)
Core 3:        +44.0°C  (high = +100.0°C, crit = +100.0°C)

acpitz-acpi-0
Adapter: ACPI interface
temp1:       -263.2°C  
temp2:        +27.8°C  (crit = +119.0°C)

iwlwifi-virtual-0
Adapter: Virtual device
temp1:            N/A  

pch_cannonlake-virtual-0
Adapter: Virtual device
temp1:        +44.0°C  

top command, maybe to much frontend use?

09:06:06 up 58 min,  1 user,  load average: 2,11, 1,48, 1,26
Tasks: 322 total,   2 running, 320 sleeping,   0 stopped,   0 zombie
%Cpu(s):  7,5 us,  7,6 sy,  0,0 ni, 84,8 id,  0,0 wa,  0,0 hi,  0,1 si,  0,0 st
MiB Mem :  32034,9 total,  24205,7 free,   3662,3 used,   4166,9 buff/cache
MiB Swap:  16252,0 total,  16252,0 free,      0,0 used.  26979,4 avail Mem 

  PID USER      PR  NI    VIRT    RES    SHR S  %CPU  %MEM     TIME+ COMMAND    
10758 root      20   0   36624  23804   7920 R  40,2   0,1  23:22.14 frontend   
10787 root      20   0    2388   1476   1344 S   9,6   0,0   5:25.40 update-se+ 
  475 root      20   0  153004  64804  62996 S   8,6   0,2   4:54.98 systemd-j+ 
  938 root      20   0  225824   4564   3056 S   6,0   0,0   3:11.05 rsyslogd   
 2027 t         20   0 3112224 224384 125248 S   3,0   0,7   0:26.11 gnome-she+ 
  955 root      20   0  242568   9088   8044 S   2,0   0,0   0:49.80 accounts-+ 
 1565 t         20   0  380440  97936  71000 S   1,7   0,3   0:11.56 Xorg       
31006 t         20   0  616608  45884  34116 S   1,0   0,1   0:00.85 gnome-ter+ 
 1368 root      20   0 1481900  53216  22216 S   0,7   0,2   0:05.92 containerd 
13196 t         20   0 5849664 223844  88340 S   0,7   0,7   1:04.89 chromium   
   10 root      20   0       0      0      0 I   0,3   0,0   0:07.53 rcu_sched  
   68 root      20   0       0      0      0 I   0,3   0,0   0:01.03 kworker/7+ 
  723 root      20   0       0      0      0 I   0,3   0,0   0:01.72 kworker/4+ 
 2191 t          9 -11 1698840  25536  19908 S   0,3   0,1   0:04.12 pulseaudio 
 2493 root      20   0   95572  84304  10780 S   0,3   0,3   0:04.92 python2    
 3192 openvpn+  20   0   71536  62820  10800 S   0,3   0,2   0:02.80 python2    
 3434 t         20   0  644720 140052  98428 S   0,3   0,4   0:09.47 Discord  

Here is mine, looks odd that Motion is using over 100%… multiple cores I guess

top - 08:08:32 up 6 days, 21:00,  2 users,  load average: 1.62, 1.29, 1.28
Tasks: 454 total,   1 running, 381 sleeping,   0 stopped,   0 zombie
%Cpu(s): 14.3 us,  1.6 sy,  0.0 ni, 83.0 id,  0.1 wa,  0.0 hi,  1.1 si,  0.0 st
KiB Mem : 16263428 total,  1316712 free,  3977280 used, 10969436 buff/cache
KiB Swap:  2097148 total,  1699580 free,   397568 used. 11965880 avail Mem

  PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     TIME+ COMMAND
 4984 root      20   0 1458808 1.272g   7444 S 117.9  8.2   7602:21 motion
 9144 root      20   0  470568 276732   8676 S   5.3  1.7 692:17.01 python3
 9759 root      20   0   18508  11804   4404 S   1.3  0.1   0:00.04 nmap
 9404 sparkyh+  20   0   51552   4352   3348 R   0.7  0.0   0:00.32 top
12198 root      20   0 1401796  68612   8352 S   0.7  0.4  63:44.43 node-red
 1066 root      20   0 3196052  12372   2988 S   0.3  0.1  14:45.29 containerd
 3170 root      20   0  346640 115548   9028 S   0.3  0.7  44:17.52 python3
 4537 root      20   0  747028  19428   5868 S   0.3  0.1   9:53.18 coredns
 6239 root      20   0 6885208 481264  13904 S   0.3  3.0  10:48.80 java
 6314 root      20   0 1060300  38164   8204 S   0.3  0.2  19:54.31 mongod
11194 root      20   0   64756  38392   4120 S   0.3  0.2  18:12.89 python3
    1 root      20   0  226432   8364   5412 S   0.0  0.1   0:10.53 systemd
    2 root      20   0       0      0      0 S   0.0  0.0   0:00.15 kthreadd
    3 root       0 -20       0      0      0 I   0.0  0.0   0:00.00 rcu_gp
    4 root       0 -20       0      0      0 I   0.0  0.0   0:00.00 rcu_par_gp
    6 root       0 -20       0      0      0 I   0.0  0.0   0:00.00 kworker/0:+
    9 root       0 -20       0      0      0 I   0.0  0.0   0:00.00 mm_percpu_+

@rafale77 @sparkydave I have googled what is this frontend process, and found few threads that report to disable secure boot. Had disabled, and result are great with enabled turbo boost, when zoneminder is detecting objects, maybe some short spike to 85C, when detecting and recording on motion:

  PID USER      PR  NI    VIRT    RES    SHR S  %CPU  %MEM     TIME+ COMMAND                                                                                                                       
 5487 www-data  20   0 2053736   1,6g   1,4g R  93,0   5,0   3:35.50 zma                                                                                                                           
 7433 www-data  20   0  622312  76580  37440 R  30,9   0,2   0:00.93 zm_detect.py                                                                                                                  
 5431 www-data  20   0 1973020   1,5g   1,4g S  21,3   4,7   1:54.85 zmc                                                                                                                           
 5427 www-data  20   0  722888 304472 282404 S  10,0   0,9   1:07.57 zmc                                                                                                                           
 1228 t         20   0  457044 134248 101988 S   8,0   0,4   0:25.48 Xorg                                                                                                                          
 5418 www-data  20   0 1293652 874936 854600 S   5,3   2,7   0:33.73 zmc                                                                                                                           
 5462 www-data  20   0 1319452 904000 848524 R   5,3   2,8   0:33.80 zma                                                                                                                           
 5457 www-data  20   0  743268 328372 276504 S   5,0   1,0   0:32.29 zma                                                                                                                           
 5402 www-data  20   0  720872 304128 282196 S   4,3   0,9   0:32.90 zmc                                                                                                                           
 6292 t         20   0 1574348 731636 593604 S   3,0   2,2   0:24.56 zmninjapro                                                                                                                    
 6542 t         20   0  510380  57992  42924 S   2,7   0,2   0:07.68 gnome-system-mo                                                                                                               
 1413 t         20   0 4002724 256976 129112 S   1,3   0,8   0:24.21 gnome-shell                                                                                                                   
 5619 t         20   0  617336  49112  34156 S   1,0   0,1   0:01.94 gnome-terminal-                                                                                                               
 6243 t         20   0 1864252 132164  94708 S   1,0   0,4   0:06.18 zmninjapro                                                                                                                    
 1686 t         20   0 3981696 854816 316476 S   0,7   2,6   0:22.75 chromium                                                                                                                      
 5053 systemd+  20   0  771500 207644  16820 S   0,7   0,6   0:03.32 mysqld  

few seconds load with turbo, before was it on 100C, now only fan maybe spins more for few seconds sometimes:

coretemp-isa-0000
Adapter: ISA adapter
Package id 0:  +85.0°C  (high = +100.0°C, crit = +100.0°C)
Core 0:        +68.0°C  (high = +100.0°C, crit = +100.0°C)
Core 1:        +85.0°C  (high = +100.0°C, crit = +100.0°C)
Core 2:        +66.0°C  (high = +100.0°C, crit = +100.0°C)
Core 3:        +66.0°C  (high = +100.0°C, crit = +100.0°C)

acpitz-acpi-0
Adapter: ACPI interface
temp1:       -263.2°C  
temp2:        +27.8°C  (crit = +119.0°C)

iwlwifi-virtual-0
Adapter: Virtual device
temp1:            N/A  

pch_cannonlake-virtual-0
Adapter: Virtual device
temp1:        +59.0°C 

Idle with turbo:

sensors
coretemp-isa-0000
Adapter: ISA adapter
Package id 0:  +51.0°C  (high = +100.0°C, crit = +100.0°C)
Core 0:        +50.0°C  (high = +100.0°C, crit = +100.0°C)
Core 1:        +50.0°C  (high = +100.0°C, crit = +100.0°C)
Core 2:        +50.0°C  (high = +100.0°C, crit = +100.0°C)
Core 3:        +50.0°C  (high = +100.0°C, crit = +100.0°C)

acpitz-acpi-0
Adapter: ACPI interface
temp1:       -263.2°C  
temp2:        +27.8°C  (crit = +119.0°C)

iwlwifi-virtual-0
Adapter: Virtual device
temp1:            N/A  

pch_cannonlake-virtual-0
Adapter: Virtual device
temp1:        +51.0°C 
1 Like

That is a little more reassuring though I don’t really know why secure boot would cause zone minder to do this. Hmmm interesting… Thanks for reporting.

Thank you for explanantion, because this pushed me to investigate further! I think NUC runs now as it should be with turbo, around 50C or 60C on big loads.

I disabled secure boot yesterday and monitored CPU temp for a while, still getting peaks up over 86C and currently sitting on 76C while relatively idle other than MotionEye. Yet to work out a way to get MotionEye to not cause such a temperature rise…

A little update on this which seems to raise more questions than answers…

A couple of days ago I changed the folder location that the MotionEye addon was to save the video files, then changed it back to the original folder location, so in effect no net change. However this caused my NUC to start running at normal (~35C) CPU temperature…why? how?

Anyway I rebooted the NUC today and now it’s back to running at high temps again… something very strange with the way this addon affects the CPU temp

Did you ever solved this?

No. I ended up buying a stand alone NVR to record my CCTV cameras and stopped using MotionEye.

I have a NUC with the same problem. I have been looking for watercooling solutions but there are non. I only found this:

A custom made watercooling system. But the guys from the video do not respond to my emails. This is exactly what i need. With the setup in the video you could run the NUC on 100% cpu 24/7 i guess.

I think you will find the issue is not actually that the NUC getting getting hot but that it is reporting a high temp for some reason.

I have recently found the same issue with another add-on, QBittorrent, which sends the NUC CPU temp to 100C as soon as I start the add-on despite it just being idle… and I’m talking about an i7 NUC with 16GB RAM. The CPU usage % doesn’t go up, only the reported CPU temp. The problem is that reported temp then sets the fan to max speed etc.

My nuc i7 is around 30 to 70 degrees depending on the cpu load. With frigate running 5 cameras it’s around 20 to 30% cpu load. (Using Google coral for detection). I guess the temps are pretty accurate though

For me (why I started the thread) it was a case of a very low ~2% CPU load NUC suddenly getting reporting crazy hot when running certain add-ons despite the CPU load staying low.

Without those add-ons running (but still running a heap of others) it sits at about 1% CPU load and 38C CPU temp.

My water-cooling is finished i hope it will be shipped soon… I really need it. It’s getting hot here and the NUC touches 75 degrees with 7 camera’s connected to it ATM…