Odroid XU4 - CPU issue?

Having issues with your DietPi installation, or, found a bug? Post it here.
User avatar
Fourdee
Site Admin
Posts: 2783
Joined: Tue Feb 06, 2007 1:36 pm

Re: Odroid XU4 - CPU issue?

Post by Fourdee »

mike175de wrote:Hi Fourdee,

here we go :)


Michael
Hi Michael,

Thanks. Time spent at idle and full load seems reasonable.

I think the majority of usage is from /usr/sbin/smbd (Samba server). Samba can be CPU intensive, try copying a file to (or from) the server and check cpu frequency with:

Code: Select all

echo -e $(( $(cat /sys/devices/system/cpu/cpu4/cpufreq/scaling_cur_freq) / 1000 ))
Might be an idea to check temp now and then (as above command may trigger a frequency up step) with:

Code: Select all

cpu
You could also rerun this test for 30 minutes and see if the time spent in idle improves, after disabling one service at a time:
Disable samba:

Code: Select all

systemctl stop smbd
systemctl stop nmbd
Disable dnsmasq:

Code: Select all

systemctl stop dnsmasq
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 »

Ho Fourdee,

I copied a large file (1,4GB) to the samba-server. The results of cpu were this:

Code: Select all

root@dietpiserver:~# echo -e $(( $(cat /sys/devices/system/cpu/cpu4/cpufreq/scaling_cur_freq) / 1000 ))
1000
root@dietpiserver:~# cpu

 ─────────────────────────────────────────────────────
 DietPi CPU Info
 Use dietpi-config to change CPU / performance options
 ─────────────────────────────────────────────────────
 Architecture |     armv7l
 Temp         |     59'c | Running warm, but safe.
 Governor     |     ondemand
 Throttle up  |     85% CPU usage

                 Current Freq    Min Freq   Max Freq
 CPU0         |      600 MHz      200 MHz    1400 MHz
 CPU1         |      800 MHz      200 MHz    1400 MHz
 CPU2         |      800 MHz      200 MHz    1400 MHz
 CPU3         |      700 MHz      200 MHz    1400 MHz
 CPU4         |      1100 MHz      200 MHz    2000 MHz
 CPU5         |      1100 MHz      200 MHz    2000 MHz
 CPU6         |      1000 MHz      200 MHz    2000 MHz
 CPU7         |      1000 MHz      200 MHz    2000 MHz

root@dietpiserver:~# cpu

 ─────────────────────────────────────────────────────
 DietPi CPU Info
 Use dietpi-config to change CPU / performance options
 ─────────────────────────────────────────────────────
 Architecture |     armv7l
 Temp         |     60'c | Running hot, not recommended.
 Governor     |     ondemand
 Throttle up  |     85% CPU usage

                 Current Freq    Min Freq   Max Freq
 CPU0         |      700 MHz      200 MHz    1400 MHz
 CPU1         |      700 MHz      200 MHz    1400 MHz
 CPU2         |      700 MHz      200 MHz    1400 MHz
 CPU3         |      700 MHz      200 MHz    1400 MHz
 CPU4         |      1200 MHz      200 MHz    2000 MHz
 CPU5         |      1200 MHz      200 MHz    2000 MHz
 CPU6         |      1200 MHz      200 MHz    2000 MHz
 CPU7         |      1200 MHz      200 MHz    2000 MHz

root@dietpiserver:~# cpu

 ─────────────────────────────────────────────────────
 DietPi CPU Info
 Use dietpi-config to change CPU / performance options
 ─────────────────────────────────────────────────────
 Architecture |     armv7l
 Temp         |     59'c | Running warm, but safe.
 Governor     |     ondemand
 Throttle up  |     85% CPU usage

                 Current Freq    Min Freq   Max Freq
 CPU0         |      600 MHz      200 MHz    1400 MHz
 CPU1         |      600 MHz      200 MHz    1400 MHz
 CPU2         |      800 MHz      200 MHz    1400 MHz
 CPU3         |      600 MHz      200 MHz    1400 MHz
 CPU4         |      1000 MHz      200 MHz    2000 MHz
 CPU5         |      1000 MHz      200 MHz    2000 MHz
 CPU6         |      1000 MHz      200 MHz    2000 MHz
 CPU7         |      1000 MHz      200 MHz    2000 MHz

root@dietpiserver:~# 
root@dietpiserver:~# cpu

 ─────────────────────────────────────────────────────
 DietPi CPU Info
 Use dietpi-config to change CPU / performance options
 ─────────────────────────────────────────────────────
 Architecture |     armv7l
 Temp         |     60'c | Running hot, not recommended.
 Governor     |     ondemand
 Throttle up  |     85% CPU usage

                 Current Freq    Min Freq   Max Freq
 CPU0         |      1400 MHz      200 MHz    1400 MHz
 CPU1         |      1400 MHz      200 MHz    1400 MHz
 CPU2         |      1400 MHz      200 MHz    1400 MHz
 CPU3         |      1400 MHz      200 MHz    1400 MHz
 CPU4         |      1000 MHz      200 MHz    2000 MHz
 CPU5         |      1100 MHz      200 MHz    2000 MHz
 CPU6         |      1100 MHz      200 MHz    2000 MHz
 CPU7         |      1100 MHz      200 MHz    2000 MHz

root@dietpiserver:~# cpu

 ─────────────────────────────────────────────────────
 DietPi CPU Info
 Use dietpi-config to change CPU / performance options
 ─────────────────────────────────────────────────────
 Architecture |     armv7l
 Temp         |     59'c | Running warm, but safe.
 Governor     |     ondemand
 Throttle up  |     85% CPU usage

                 Current Freq    Min Freq   Max Freq
 CPU0         |      700 MHz      200 MHz    1400 MHz
 CPU1         |      700 MHz      200 MHz    1400 MHz
 CPU2         |      700 MHz      200 MHz    1400 MHz
 CPU3         |      700 MHz      200 MHz    1400 MHz
 CPU4         |      1000 MHz      200 MHz    2000 MHz
 CPU5         |      1000 MHz      200 MHz    2000 MHz
 CPU6         |      1000 MHz      200 MHz    2000 MHz
 CPU7         |      900 MHz      200 MHz    2000 MHz

root@dietpiserver:~# cpu

 ─────────────────────────────────────────────────────
 DietPi CPU Info
 Use dietpi-config to change CPU / performance options
 ─────────────────────────────────────────────────────
 Architecture |     armv7l
 Temp         |     59'c | Running warm, but safe.
 Governor     |     ondemand
 Throttle up  |     85% CPU usage

                 Current Freq    Min Freq   Max Freq
 CPU0         |      400 MHz      200 MHz    1400 MHz
 CPU1         |      700 MHz      200 MHz    1400 MHz
 CPU2         |      600 MHz      200 MHz    1400 MHz
 CPU3         |      600 MHz      200 MHz    1400 MHz
 CPU4         |      1200 MHz      200 MHz    2000 MHz
 CPU5         |      1200 MHz      200 MHz    2000 MHz
 CPU6         |      500 MHz      200 MHz    2000 MHz
 CPU7         |      500 MHz      200 MHz    2000 MHz

root@dietpiserver:~# cpu

 ─────────────────────────────────────────────────────
 DietPi CPU Info
 Use dietpi-config to change CPU / performance options
 ─────────────────────────────────────────────────────
 Architecture |     armv7l
 Temp         |     59'c | Running warm, but safe.
 Governor     |     ondemand
 Throttle up  |     85% CPU usage

                 Current Freq    Min Freq   Max Freq
 CPU0         |      1400 MHz      200 MHz    1400 MHz
 CPU1         |      1400 MHz      200 MHz    1400 MHz
 CPU2         |      1400 MHz      200 MHz    1400 MHz
 CPU3         |      1400 MHz      200 MHz    1400 MHz
 CPU4         |      900 MHz      200 MHz    2000 MHz
 CPU5         |      900 MHz      200 MHz    2000 MHz
 CPU6         |      900 MHz      200 MHz    2000 MHz
 CPU7         |      1100 MHz      200 MHz    2000 MHz

root@dietpiserver:~# cpu

 ─────────────────────────────────────────────────────
 DietPi CPU Info
 Use dietpi-config to change CPU / performance options
 ─────────────────────────────────────────────────────
 Architecture |     armv7l
 Temp         |     60'c | Running hot, not recommended.
 Governor     |     ondemand
 Throttle up  |     85% CPU usage

                 Current Freq    Min Freq   Max Freq
 CPU0         |      700 MHz      200 MHz    1400 MHz
 CPU1         |      700 MHz      200 MHz    1400 MHz
 CPU2         |      700 MHz      200 MHz    1400 MHz
 CPU3         |      700 MHz      200 MHz    1400 MHz
 CPU4         |      1200 MHz      200 MHz    2000 MHz
 CPU5         |      1200 MHz      200 MHz    2000 MHz
 CPU6         |      1200 MHz      200 MHz    2000 MHz
 CPU7         |      1200 MHz      200 MHz    2000 MHz

root@dietpiserver:~# cpu

 ─────────────────────────────────────────────────────
 DietPi CPU Info
 Use dietpi-config to change CPU / performance options
 ─────────────────────────────────────────────────────
 Architecture |     armv7l
 Temp         |     60'c | Running hot, not recommended.
 Governor     |     ondemand
 Throttle up  |     85% CPU usage

                 Current Freq    Min Freq   Max Freq
 CPU0         |      700 MHz      200 MHz    1400 MHz
 CPU1         |      700 MHz      200 MHz    1400 MHz
 CPU2         |      700 MHz      200 MHz    1400 MHz
 CPU3         |      700 MHz      200 MHz    1400 MHz
 CPU4         |      1300 MHz      200 MHz    2000 MHz
 CPU5         |      1300 MHz      200 MHz    2000 MHz
 CPU6         |      1300 MHz      200 MHz    2000 MHz
 CPU7         |      1300 MHz      200 MHz    2000 MHz

root@dietpiserver:~# cpu

 ─────────────────────────────────────────────────────
 DietPi CPU Info
 Use dietpi-config to change CPU / performance options
 ─────────────────────────────────────────────────────
 Architecture |     armv7l
 Temp         |     60'c | Running hot, not recommended.
 Governor     |     ondemand
 Throttle up  |     85% CPU usage

                 Current Freq    Min Freq   Max Freq
 CPU0         |      700 MHz      200 MHz    1400 MHz
 CPU1         |      700 MHz      200 MHz    1400 MHz
 CPU2         |      700 MHz      200 MHz    1400 MHz
 CPU3         |      700 MHz      200 MHz    1400 MHz
 CPU4         |      1200 MHz      200 MHz    2000 MHz
 CPU5         |      1200 MHz      200 MHz    2000 MHz
 CPU6         |      1200 MHz      200 MHz    2000 MHz
 CPU7         |      1200 MHz      200 MHz    2000 MHz

root@dietpiserver:~# cpu

 ─────────────────────────────────────────────────────
 DietPi CPU Info
 Use dietpi-config to change CPU / performance options
 ─────────────────────────────────────────────────────
 Architecture |     armv7l
 Temp         |     60'c | Running hot, not recommended.
 Governor     |     ondemand
 Throttle up  |     85% CPU usage

                 Current Freq    Min Freq   Max Freq
 CPU0         |      700 MHz      200 MHz    1400 MHz
 CPU1         |      700 MHz      200 MHz    1400 MHz
 CPU2         |      700 MHz      200 MHz    1400 MHz
 CPU3         |      700 MHz      200 MHz    1400 MHz
 CPU4         |      1000 MHz      200 MHz    2000 MHz
 CPU5         |      1100 MHz      200 MHz    2000 MHz
 CPU6         |      1100 MHz      200 MHz    2000 MHz
 CPU7         |      1100 MHz      200 MHz    2000 MHz

root@dietpiserver:~# cpu

 ─────────────────────────────────────────────────────
 DietPi CPU Info
 Use dietpi-config to change CPU / performance options
 ─────────────────────────────────────────────────────
 Architecture |     armv7l
 Temp         |     60'c | Running hot, not recommended.
 Governor     |     ondemand
 Throttle up  |     85% CPU usage

                 Current Freq    Min Freq   Max Freq
 CPU0         |      700 MHz      200 MHz    1400 MHz
 CPU1         |      700 MHz      200 MHz    1400 MHz
 CPU2         |      700 MHz      200 MHz    1400 MHz
 CPU3         |      800 MHz      200 MHz    1400 MHz
 CPU4         |      1100 MHz      200 MHz    2000 MHz
 CPU5         |      1100 MHz      200 MHz    2000 MHz
 CPU6         |      1000 MHz      200 MHz    2000 MHz
 CPU7         |      1000 MHz      200 MHz    2000 MHz
─────────────────────────────────────────────────────
 DietPi CPU Info
 Use dietpi-config to change CPU / performance options
 ─────────────────────────────────────────────────────
 Architecture |     armv7l
 Temp         |     60'c | Running hot, not recommended.
 Governor     |     ondemand
 Throttle up  |     85% CPU usage

                 Current Freq    Min Freq   Max Freq
 CPU0         |      700 MHz      200 MHz    1400 MHz
 CPU1         |      700 MHz      200 MHz    1400 MHz
 CPU2         |      700 MHz      200 MHz    1400 MHz
 CPU3         |      700 MHz      200 MHz    1400 MHz
 CPU4         |      1000 MHz      200 MHz    2000 MHz
 CPU5         |      1000 MHz      200 MHz    2000 MHz
 CPU6         |      1000 MHz      200 MHz    2000 MHz
 CPU7         |      1000 MHz      200 MHz    2000 MHz

root@dietpiserver:~# cpu

 ─────────────────────────────────────────────────────
 DietPi CPU Info
 Use dietpi-config to change CPU / performance options
 ─────────────────────────────────────────────────────
 Architecture |     armv7l
 Temp         |     61'c | Running hot, not recommended.
 Governor     |     ondemand
 Throttle up  |     85% CPU usage

                 Current Freq    Min Freq   Max Freq
 CPU0         |      700 MHz      200 MHz    1400 MHz
 CPU1         |      700 MHz      200 MHz    1400 MHz
 CPU2         |      600 MHz      200 MHz    1400 MHz
 CPU3         |      600 MHz      200 MHz    1400 MHz
 CPU4         |      1000 MHz      200 MHz    2000 MHz
 CPU5         |      1300 MHz      200 MHz    2000 MHz
 CPU6         |      1300 MHz      200 MHz    2000 MHz
 CPU7         |      1300 MHz      200 MHz    2000 MHz

root@dietpiserver:~# cpu

 ─────────────────────────────────────────────────────
 DietPi CPU Info
 Use dietpi-config to change CPU / performance options
 ─────────────────────────────────────────────────────
 Architecture |     armv7l
 Temp         |     61'c | Running hot, not recommended.
 Governor     |     ondemand
 Throttle up  |     85% CPU usage

                 Current Freq    Min Freq   Max Freq
 CPU0         |      800 MHz      200 MHz    1400 MHz
 CPU1         |      800 MHz      200 MHz    1400 MHz
 CPU2         |      600 MHz      200 MHz    1400 MHz
 CPU3         |      700 MHz      200 MHz    1400 MHz
 CPU4         |      900 MHz      200 MHz    2000 MHz
 CPU5         |      900 MHz      200 MHz    2000 MHz
 CPU6         |      900 MHz      200 MHz    2000 MHz
 CPU7         |      900 MHz      200 MHz    2000 MHz

root@dietpiserver:~# cpu

 ─────────────────────────────────────────────────────
 DietPi CPU Info
 Use dietpi-config to change CPU / performance options
 ─────────────────────────────────────────────────────
 Architecture |     armv7l
 Temp         |     61'c | Running hot, not recommended.
 Governor     |     ondemand
 Throttle up  |     85% CPU usage

                 Current Freq    Min Freq   Max Freq
 CPU0         |      800 MHz      200 MHz    1400 MHz
 CPU1         |      700 MHz      200 MHz    1400 MHz
 CPU2         |      700 MHz      200 MHz    1400 MHz
 CPU3         |      700 MHz      200 MHz    1400 MHz
 CPU4         |      1100 MHz      200 MHz    2000 MHz
 CPU5         |      1100 MHz      200 MHz    2000 MHz
 CPU6         |      1100 MHz      200 MHz    2000 MHz
 CPU7         |      1100 MHz      200 MHz    2000 MHz

root@dietpiserver:~# cpu

 ─────────────────────────────────────────────────────
 DietPi CPU Info
 Use dietpi-config to change CPU / performance options
 ─────────────────────────────────────────────────────
 Architecture |     armv7l
 Temp         |     61'c | Running hot, not recommended.
 Governor     |     ondemand
 Throttle up  |     85% CPU usage

                 Current Freq    Min Freq   Max Freq
 CPU0         |      1400 MHz      200 MHz    1400 MHz
 CPU1         |      1400 MHz      200 MHz    1400 MHz
 CPU2         |      1400 MHz      200 MHz    1400 MHz
 CPU3         |      1400 MHz      200 MHz    1400 MHz
 CPU4         |      1100 MHz      200 MHz    2000 MHz
 CPU5         |      1100 MHz      200 MHz    2000 MHz
 CPU6         |      1100 MHz      200 MHz    2000 MHz
 CPU7         |      1100 MHz      200 MHz    2000 MHz
As you can see there were all kind of states presents. Maybe i stick with the ondemandgov and throttle all the cpus to 1400Mhz?

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

Re: Odroid XU4 - CPU issue?

Post by Fourdee »

mike175de wrote: As you can see there were all kind of states presents. Maybe i stick with the ondemandgov and throttle all the cpus to 1400Mhz?

Thx again, Michael
Hi Michael,

Thanks, yep, I believe its just a case of background services peaking CPU load. As the XU4 runs really hot, even at low loads, I think that may be the sudden rise in temps.

The CPU time in your ps aux post seems fine, nothing out of the ordinary that would indicate a program/process constantly using CPU.

It only takes around 2 seconds to reach 90'c+ at full load on this device. Capping the frequencies is recommended, I cap mine at 1.5GHz, seems to stay under 70'c.
Another option is heatsink upgrade, or, pop it in the freezer ;) lol
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 again.

Yep, I will stay with 1,5GHz as well. Until now the device is under 60 Degress. I'm fine with that ;)

Michael

BTW: Just sad that the XU4 is the only device with a good CPU and USB3. Maybe in th near future someone like FriendlyArm build one also with USB3 and a "better" CPU.
Post Reply