toasty compile temepratures

Post Reply
fvolk
Posts: 448
Joined: Sun Jun 05, 2016 11:04 pm
languages_spoken: english
ODROIDs: C2, C4, H2
Has thanked: 0
Been thanked: 40 times
Contact:

toasty compile temepratures

Post by fvolk »

FYI, running a longer compile job on all cores, no fan or case, the H2 gets quite hot
If the sensors are correct and the heatsink does feel very hot
The CPU seems to constantly hit its thermal limit...
Attachments
h2_cpu.png
h2_cpu.png (16.25 KiB) Viewed 3244 times

User avatar
rooted
Posts: 7856
Joined: Fri Dec 19, 2014 9:12 am
languages_spoken: english
Location: Gulf of Mexico, US
Has thanked: 724 times
Been thanked: 220 times
Contact:

Re: toasty compile temepratures

Post by rooted »

How long?

Any passively cooled device will hit the thermal limit at peak CPU usage.

fvolk
Posts: 448
Joined: Sun Jun 05, 2016 11:04 pm
languages_spoken: english
ODROIDs: C2, C4, H2
Has thanked: 0
Been thanked: 40 times
Contact:

Re: toasty compile temepratures

Post by fvolk »

How long till it gets so hot I don't know.
The compile job ran over an hour (as a test how the H2 performance compares to standard PCs)

User avatar
rooted
Posts: 7856
Joined: Fri Dec 19, 2014 9:12 am
languages_spoken: english
Location: Gulf of Mexico, US
Has thanked: 724 times
Been thanked: 220 times
Contact:

Re: toasty compile temepratures

Post by rooted »

It has the active fan connector with tach for this reason, when you need to really stress it for long periods you can add the fan.

User avatar
odroid
Site Admin
Posts: 34817
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean, Japanese
ODROIDs: ODROID
Has thanked: 915 times
Been thanked: 752 times
Contact:

Re: toasty compile temepratures

Post by odroid »

Which Kernel version do you use?

fvolk
Posts: 448
Joined: Sun Jun 05, 2016 11:04 pm
languages_spoken: english
ODROIDs: C2, C4, H2
Has thanked: 0
Been thanked: 40 times
Contact:

Re: toasty compile temepratures

Post by fvolk »

The packaged in Kubuntu, 4.18.0-15-generic.

User avatar
odroid
Site Admin
Posts: 34817
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean, Japanese
ODROIDs: ODROID
Has thanked: 915 times
Been thanked: 752 times
Contact:

Re: toasty compile temepratures

Post by odroid »

I'm using the same Kernel version on the generic Ubuntu 18.10.
When I built a full kernel source for 20~30 minutes with -j4 option, the maximum temperature was always lower than 80°C with a stock passive heatsink.
My room temperature is around 22~23°C these days.

What did you compile and what is your ambient temperature?

User avatar
rooted
Posts: 7856
Joined: Fri Dec 19, 2014 9:12 am
languages_spoken: english
Location: Gulf of Mexico, US
Has thanked: 724 times
Been thanked: 220 times
Contact:

Re: toasty compile temepratures

Post by rooted »

I don't really think it's a problem odroid, seems normal to me since it's passively cooled.

As you say it depends on ambient temperature.

Look at the XU4-Q, it reaches thermal throttling much quicker due to less mass in the heatsink.

fvolk
Posts: 448
Joined: Sun Jun 05, 2016 11:04 pm
languages_spoken: english
ODROIDs: C2, C4, H2
Has thanked: 0
Been thanked: 40 times
Contact:

Re: toasty compile temepratures

Post by fvolk »

It was GCC 8.2 -- took ~1h45m to build. Normal room temperature, H2 without case.

Is there a simple script to collect and graph the temp over time?

User avatar
odroid
Site Admin
Posts: 34817
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean, Japanese
ODROIDs: ODROID
Has thanked: 915 times
Been thanked: 752 times
Contact:

Re: toasty compile temepratures

Post by odroid »

"psensor monitor" looks good if you use a GUI desktop.

What is the average temperature without compiling?
My H2 is around 50~55°C for light web-browsing.

fvolk
Posts: 448
Joined: Sun Jun 05, 2016 11:04 pm
languages_spoken: english
ODROIDs: C2, C4, H2
Has thanked: 0
Been thanked: 40 times
Contact:

Re: toasty compile temepratures

Post by fvolk »

complete idle is ~40°C (edit: actually ~45°C when running for some time...)
compiling GCC, measurements in 30s periods:
Package id 0: +41.0°C
Package id 0: +53.0°C
Package id 0: +54.0°C
Package id 0: +72.0°C
Package id 0: +64.0°C
Package id 0: +54.0°C
Package id 0: +78.0°C
Package id 0: +76.0°C
Package id 0: +80.0°C
Package id 0: +81.0°C
Package id 0: +82.0°C
Package id 0: +83.0°C
Package id 0: +85.0°C
Package id 0: +85.0°C
Package id 0: +88.0°C
Package id 0: +65.0°C
Package id 0: +64.0°C
Package id 0: +88.0°C
Package id 0: +89.0°C
Package id 0: +90.0°C
Package id 0: +91.0°C
Package id 0: +92.0°C
Package id 0: +69.0°C
Package id 0: +66.0°C
Package id 0: +90.0°C
Package id 0: +70.0°C
Package id 0: +68.0°C
Package id 0: +70.0°C
Package id 0: +66.0°C
Package id 0: +67.0°C
Package id 0: +67.0°C
Package id 0: +70.0°C
Package id 0: +88.0°C
Package id 0: +91.0°C
Package id 0: +71.0°C
Package id 0: +93.0°C
Package id 0: +72.0°C
Package id 0: +70.0°C
Package id 0: +70.0°C
Package id 0: +92.0°C
Package id 0: +94.0°C
Package id 0: +93.0°C
...
...goes a bit up against thermal limit (all cores compile) and down (only one core used in configure script) as it builds

User avatar
odroid
Site Admin
Posts: 34817
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean, Japanese
ODROIDs: ODROID
Has thanked: 915 times
Been thanked: 752 times
Contact:

Re: toasty compile temepratures

Post by odroid »

It looks quite high.
Does GCC 8.2 compiling use the LLVM technology to utilize the full CPU resources?

BTW, I could observe 86°C after running this command for 10 minutes.

Code: Select all

stress-ng --cpu 4 --cpu-method matrixprod
All cores keep running at near 2.4Ghz.

Code: Select all

odroid@h2:~$ cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_cur_freq 
2393174
2396161
2396158
2393387
I will check the temp again 20 minutes later.

User avatar
odroid
Site Admin
Posts: 34817
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean, Japanese
ODROIDs: ODROID
Has thanked: 915 times
Been thanked: 752 times
Contact:

Re: toasty compile temepratures

Post by odroid »

It is 94°C now. Toasty! :o
Room temperature is 26°C though.

I'm heavily considering this cooling fan if we want to make a build farm.
https://www.hardkernel.com/shop/92x92x2 ... sor-tacho/


BTW, something weird.
When we performed the same test in last October, the maximum temperature was less than 80°C.
I think some kernel updates might affect the performance and temperature probably. But is it very hard to trace root causes.
Maximum clock frequency was 2.3Ghz at that time. But it is 2.4Ghz now. :?:
It seems to be worth to run the stress-ng with 2.3Ghz limitation on /sys/devices/system/cpu/cpu*/cpufreq/scaling_max_freq.

fvolk
Posts: 448
Joined: Sun Jun 05, 2016 11:04 pm
languages_spoken: english
ODROIDs: C2, C4, H2
Has thanked: 0
Been thanked: 40 times
Contact:

Re: toasty compile temepratures

Post by fvolk »

AFAIR a compiler such as GCC is build actually 3 times, it rebuilds itself and then compares the result against a previous run as the result must be the same.... but someone smarter than me can explain this better :-)

Long running compiling stuff is a good load/stability test for a system, for example an instability was found on early Ryzen models by the Gentoo folks: https://wiki.gentoo.org/wiki/Ryzen#Segm ... ompilation and https://forums.gentoo.org/viewtopic-t-1061546.html.

As you mentioned a build farm, I'm a bit undecided now what to do.
My plan was to use several H2 as a low-power/cheap cluster for testing distributed code -- some things just can't be tested with VMs and/or containers. I currently use several C2s for this. Alternatives: XU4's are only 32bit. C2s are weak and have a too old kernel. The N2 is coming but some stuff does really require x86. And the H2 is unobtainium for another half year?
So where to go from my current C2s setup that is running at its limit and cannot do x86?
Sell the H2 and get used DeskMinis instead? :-/

User avatar
rooted
Posts: 7856
Joined: Fri Dec 19, 2014 9:12 am
languages_spoken: english
Location: Gulf of Mexico, US
Has thanked: 724 times
Been thanked: 220 times
Contact:

Re: toasty compile temepratures

Post by rooted »

Depending on how soon you need the devices, if sooner than 4 to 6 months I would look elsewhere for X86.

fvolk
Posts: 448
Joined: Sun Jun 05, 2016 11:04 pm
languages_spoken: english
ODROIDs: C2, C4, H2
Has thanked: 0
Been thanked: 40 times
Contact:

Re: toasty compile temepratures

Post by fvolk »

Ran it again, sampling temperature every 10s, see attached graph.
Attachments
h2_temp.png
h2_temp.png (55.76 KiB) Viewed 2857 times

User avatar
odroid
Site Admin
Posts: 34817
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean, Japanese
ODROIDs: ODROID
Has thanked: 915 times
Been thanked: 752 times
Contact:

Re: toasty compile temepratures

Post by odroid »

Did you lower the scaling_max_freq value?

fvolk
Posts: 448
Joined: Sun Jun 05, 2016 11:04 pm
languages_spoken: english
ODROIDs: C2, C4, H2
Has thanked: 0
Been thanked: 40 times
Contact:

Re: toasty compile temepratures

Post by fvolk »

No. But I want to run it again to also track cores frequency -- need to script that data collection first.
FYI pretty graph powered by https://plot.ly/create/#/ -- very easy to use :-)

fvolk
Posts: 448
Joined: Sun Jun 05, 2016 11:04 pm
languages_spoken: english
ODROIDs: C2, C4, H2
Has thanked: 0
Been thanked: 40 times
Contact:

Re: toasty compile temepratures

Post by fvolk »

scaling_max_freq is set default to 2500000, and, well, the expected max burst is 2.5GHz
(https://ark.intel.com/content/www/us/en ... 0-ghz.html)
The practical CPU limit seems to be at 2400MHz, hitting the hard thermal limit of 100°C after some time and throtteling.
Setting scaling_max_freq to 2300000 does limit the cores to 2.3GHz and makes hitting the thermal limit somewhat harder.
However, it's now winter and 24°C ambient, without a case -- in summer and with a case this will not get better...
Attachments
h2_comp_cores_cut.png
h2_comp_cores_cut.png (110.74 KiB) Viewed 2801 times
h2_comp_temp_cut.png
h2_comp_temp_cut.png (107.67 KiB) Viewed 2801 times
Last edited by fvolk on Fri Mar 08, 2019 6:43 am, edited 1 time in total.

fvolk
Posts: 448
Joined: Sun Jun 05, 2016 11:04 pm
languages_spoken: english
ODROIDs: C2, C4, H2
Has thanked: 0
Been thanked: 40 times
Contact:

Re: toasty compile temepratures

Post by fvolk »

FYI, the highly sophisticated logging script ;-)
for i in `seq 1 1 10000`; do sensors |grep high |cut -b -25 |tr " " "\n"|grep °C |tr -d "+°C" |tr "\n" "," >>log.xxx; cat /proc/cpuinfo |grep MHz |cut -b 11- |tr -d " " |tr "\n" "," >>log.xxx; echo "-1" >>log.xxx; sleep 10; done

Post Reply

Return to “General Topics”

Who is online

Users browsing this forum: No registered users and 1 guest