Odroid XU4 - CPU issue?

Having issues with your DietPi installation, or, found a bug? Post it here.
mike175de
Posts: 67
Joined: Sat Sep 05, 2015 4:39 pm

Odroid XU4 - CPU issue?

Post by mike175de »

Hi there,

I use a fresh installation of DietPi on my XU4. Installations process and configuraton was fine and everything works. :D

But there is always a but, when you are posting in the Troubleshooting section ;)

The XU4 was getting very hot after 1 day of uptime - up to 125 Degress C. So I looked into htop to see if any process is causing this. But there wasn't any process using more CPU as 3-5%. The command cpu showed me othwerwise that the cores 5 to 8 were running on full speed (2GHz) where as the other 4 were on 200 Mhz.

So I used the Performance Options in dietpi-config to limit the CPU to 1Ghz. After that and a restart of the system the XU4 is fine again. Running on 50 to 53 Degress.

I already tried another distro (Armbian) to see if the issue is hardware related. But it isn't. Under Armbian the CPU wasn't heating up.

Does anybody has a clue what causes the anormal heat when I don't limit the cpu frequence? Please let me know if any logs or other information are needed.

Thx again for your help and time.

Michael
User avatar
Fourdee
Site Admin
Posts: 2788
Joined: Tue Feb 06, 2007 1:36 pm

Re: Odroid XU4 - CPU issue?

Post by Fourdee »

mike175de wrote:But there wasn't any process using more CPU as 3-5%. The command cpu showed me othwerwise that the cores 5 to 8 were running on full speed (2GHz) where as the other 4 were on 200 Mhz.
Hi Michael,

Strange, not something we seen before on the XU4. We know it runs hot (I underclock mine to 1.4GHz), but only under full load.

Something is clearly causing the 4x2GHz cores to enter full load state.

Lets try a few things, when the issue occurs:
- Check dmesg for any issues related to cpu: dmesg | grep cpu
- Check process list (includes kernel jobs) for CPU usage (this is a big one): ps aux

Also, try:
- Ondemand CPU gov
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal or become a DietPi patron.
mike175de
Posts: 67
Joined: Sat Sep 05, 2015 4:39 pm

Re: Odroid XU4 - CPU issue?

Post by mike175de »

Hi Fourdee,

thx for you reply.

I disabled the limitation of the cpu and rebooted the system.

I made several sceenshots of comands cpu and htop. As you can see the temperature is in the expected range, but cpu says that the CPU 5-8 are almost always on high load - even there is no cpu usage when you look at htop.

I also attached the output of ps aux and dmesg (it's a text file that will be downloaded from my server due to the limitation of the forum software I wasn't able to upload the text file):
https://wc.virse.de/bozon/index.php?f=15892435e0686f

Thx again for your time and help.
Michael
Attachments
cpu and htop after 2 hours
cpu and htop after 2 hours
htop after 5 minutes
htop after 5 minutes
cpu after 5 minues
cpu after 5 minues
cpu after reboot
cpu after reboot
User avatar
johnvick
Legend
Posts: 693
Joined: Wed Jun 08, 2016 11:53 am
Location: New Zealand

Re: Odroid XU4 - CPU issue?

Post by johnvick »

Since I upgraded to v143 my XU4 often goes up to 90+C with nothing obvious in htop to explain it.

It cools again very quickly. I'll keep an eye on this.

John
mike175de
Posts: 67
Joined: Sat Sep 05, 2015 4:39 pm

Re: Odroid XU4 - CPU issue?

Post by mike175de »

Hi johnvick,

what seems a little bit odd to me is the fact that the CPUs 5-8 always running with full load.

Shouldn't the cpu governor throttle the cpus due to the fact that the system don't need the full power of the cpus? :?:

Michael
User avatar
Fourdee
Site Admin
Posts: 2788
Joined: Tue Feb 06, 2007 1:36 pm

Re: Odroid XU4 - CPU issue?

Post by Fourdee »

Hi Guys,

Thanks for the report Michael, appreciate it.

Lets check time @ frequency steps. Can you please paste results of the following:

Code: Select all

root@DietPi:~# uptime
 20:05:30 up 3 days,  3:59,  3 users,  load average: 0.32, 0.18, 0.15

root@DietPi:~# cat /sys/devices/system/cpu/cpu0/cpufreq/stats/time_in_state
1400000 585003
1300000 290
1200000 379
1100000 320
1000000 363
900000 301
800000 359
700000 920
600000 1321
500000 5153
400000 10391
300000 193905
200000 26560633
Also Michael, please can try the "ondemand" CPU gov and let us know if this reduces CPU scaling/heat.

Interactive does have a tendency to instantly boost to full clocks on even minimal load (due to the 200mhz lower clocks, usage sampling at those frequencies are much higher than whats probably needed). Ondemand is a bit more "labored" and scales more gently.
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal or become a DietPi patron.
mike175de
Posts: 67
Joined: Sat Sep 05, 2015 4:39 pm

Re: Odroid XU4 - CPU issue?

Post by mike175de »

Hi Fourdee,

thanks your your reply.

As requested:

Code: Select all

root@dietpiserver:~# uptime
 08:53:17 up 2 days, 13:56,  1 user,  load average: 0,02, 0,02, 0,05
root@dietpiserver:~# cat /sys/devices/system/cpu/cpu0/cpufreq/stats/time_in_state
1400000 136678
1300000 9
1200000 39
1100000 54
1000000 85
900000 84
800000 90
700000 117
600000 238
500000 317
400000 1039
300000 10301
200000 22153277
Hope that helps. I'll give also the "ondemand" CPU gov a try and let you know.

I appreciate your help a lot! :P

Michael
mike175de
Posts: 67
Joined: Sat Sep 05, 2015 4:39 pm

Re: Odroid XU4 - CPU issue?

Post by mike175de »

Hi Fourdee,

so after 3 and a half hour with "ondemand" CPU gov I get these temperature and frequency steps:

Code: Select all

After 5 min:
root@dietpiserver:~# uptime
 09:07:04 up 2 days, 14:10,  1 user,  load average: 0,08, 0,06, 0,06
root@dietpiserver:~# cat /sys/devices/system/cpu/cpu0/cpufreq/stats/time_in_state
1400000 138620
1300000 9
1200000 54
1100000 84
1000000 107
900000 107
800000 132
700000 176
600000 327
500000 448
400000 1221
300000 10561
200000 22231970


After 45 min:
root@dietpiserver:~# uptime
 09:45:40 up 2 days, 14:49,  1 user,  load average: 0,05, 0,03, 0,05
root@dietpiserver:~# cat /sys/devices/system/cpu/cpu0/cpufreq/stats/time_in_state
1400000 145710
1300000 9
1200000 76
1100000 99
1000000 137
900000 129
800000 192
700000 264
600000 459
500000 633
400000 1515
300000 11245
200000 22455096


After 3 and a half hour:
oot@dietpiserver:~# uptime
 12:21:57 up 2 days, 17:25,  1 user,  load average: 0,00, 0,01, 0,05
root@dietpiserver:~# cat /sys/devices/system/cpu/cpu0/cpufreq/stats/time_in_state
1400000 184467
1300000 9
1200000 140
1100000 165
1000000 236
900000 257
800000 329
700000 555
600000 904
500000 1162
400000 2737
300000 14151
200000 23348083
Is this helpful?

Michael
Attachments
After 3 and a half hour
After 3 and a half hour
After 45min
After 45min
After 5min
After 5min
After ondemand change
After ondemand change
User avatar
Fourdee
Site Admin
Posts: 2788
Joined: Tue Feb 06, 2007 1:36 pm

Re: Odroid XU4 - CPU issue?

Post by Fourdee »

mike175de wrote: Is this helpful?

Michael
Hi Michael,

Yes, many thanks.

Ok so these results are for the 1.4GHz cores (0-3). They look fine as most of the time spent is at 200MHz.

Ideally, we need to get the results of the 2.0GHz cores (the culprits in this case). Could you run the device for an hour (ish), then paste results of the following please?

PS. I cap mine at 1.5GHz, your results should be different.

Code: Select all

root@DietPi:~# cat /sys/devices/system/cpu/cpu4/cpufreq/stats/time_in_state
2000000 484
1900000 0
1800000 0
1700000 0
1600000 0
1500000 12597938
1400000 3326
1300000 4305
1200000 22786
1100000 31796
1000000 19223
900000 26953
800000 60433
700000 40599
600000 39531
500000 66429
400000 32450
300000 50258
200000 20402939
Also, lets grab the up threshold, should be 50%:

Code: Select all

cat /sys/devices/system/cpu/cpu4/cpufreq/ondemand/up_threshold
This can be changed in dietpi-config > performance > CPU Throttle Up.
A value of 90% should reduce overall CPU scaling up, may be worth testing another hour with this setting.
mike175de
Posts: 67
Joined: Sat Sep 05, 2015 4:39 pm

Re: Odroid XU4 - CPU issue?

Post by mike175de »

Hi Fourdee,

here we go :)

Code: Select all

0 min 14.30
root@dietpiserver:~# cat /sys/devices/system/cpu/cpu4/cpufreq/stats/time_in_state
2000000 472090
1900000 3298
1800000 2384
1700000 4265
1600000 15554
1500000 8660
1400000 2755
1300000 3694
1200000 5557
1100000 5018
1000000 5826
900000 10223
800000 5771
700000 4568
600000 2570
500000 3037
400000 2602
300000 3266
200000 23746471

cat /sys/devices/system/cpu/cpu4/cpufreq/ondemand/up_threshold
95


After 30min
root@dietpiserver:~# cat /sys/devices/system/cpu/cpu4/cpufreq/stats/time_in_state2000000 473580
1900000 3775
1800000 2459
1700000 4745
1600000 19347
1500000 9900
1400000 3800
1300000 7668
1200000 6149
1100000 5270
1000000 6360
900000 10333
800000 5781
700000 4724
600000 3080
500000 3642
400000 2678
300000 3849
200000 23914640
root@dietpiserver:~# cat /sys/devices/system/cpu/cpu4/cpufreq/ondemand/up_threshold
95


AFter 90 min
root@dietpiserver:~# cat /sys/devices/system/cpu/cpu4/cpufreq/stats/time_in_state2000000 476470
1900000 4266
1800000 3172
1700000 5854
1600000 23432
1500000 11735
1400000 4238
1300000 8642
1200000 7063
1100000 6252
1000000 7139
900000 10910
800000 5781
700000 4861
600000 3215
500000 3652
400000 2738
300000 4003
200000 24215164
root@dietpiserver:~# cat /sys/devices/system/cpu/cpu4/cpufreq/ondemand/up_threshold
95
Michael
Post Reply