XU4 idle power consumption

Post Reply
masand
Posts: 29
Joined: Thu Sep 03, 2015 2:48 am
languages_spoken: english, german
ODROIDs: ODroid XU4
Contact:

XU4 idle power consumption

Unread post by masand » Thu Sep 03, 2015 3:17 am

Hi all,

there is a topic in parallel called "X4 power consumption", but it is more about the MAX power consumption. So I put this into a new topic.

My question was more about the smallest possible idle power consumption. I searched a lot and only found the "4 - 4.5 W" from http://imgur.com/rmTaPvw.
This seemed a lot to me as other mini computers like the Raspberry have a power consumption in CPU idle state of about 2 W. And I expected the XU4 to be better or equal here, due to its CPU architecture.

So after buying the XU4, here are my measurements for your information:
Without extensive changes and by using the current Ubuntu image (ubuntu-15.04-mate-odroid-xu3-20150710) the power consumption in CPU idle state is:
3.0 - 3.2 W
(no peripherals, no monitor connected, X disabled in the odroid-utility, ethernet connected)

This still seemed a lot to me... So after some analysis I saw that the "scaling govenor" is set to "performance" in the kernel parameters. So I searched the word "performance" in the /media/boot/boot.ini file, commented out this line and commented in the line with "ondemand" (3 lines below):

[...]
# - Performance (Keep all the CPU's at Maximum frequency)
# setenv governor "performance"
# ------------------------------------------
# - Ondemand
setenv governor "ondemand"
# ------------------------------------------
[...]

With this change, after a reboot, the power consumption in idle state seems ok to me:
1.7 - 1.8W

Any hints how to further tweak the power consumption are welcome!

masand

User avatar
odroid
Site Admin
Posts: 29380
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Contact:

Re: XU4 idle power consumption

Unread post by odroid » Thu Sep 03, 2015 10:28 am

I have no idea about the further reduction of power drain.
BTW, I've used Interactive governor because it seems to be more responsive than Ondemand.
Please compare the idle current between Interactive and Ondemand if you have spare time. I bet it should be very similar.

lillahuset
Posts: 5
Joined: Fri Aug 14, 2015 11:08 pm
languages_spoken: english
ODROIDs: None yet, waiting for delivery.
Contact:

Re: XU4 idle power consumption

Unread post by lillahuset » Fri Sep 04, 2015 12:34 am

Thank you masand. Now it's nice and quiet. And cool.

masand
Posts: 29
Joined: Thu Sep 03, 2015 2:48 am
languages_spoken: english, german
ODROIDs: ODroid XU4
Contact:

Re: XU4 idle power consumption

Unread post by masand » Thu Sep 10, 2015 4:32 pm

The "interactive" governor will use the same amount of current in my measurement. (1.7 - 1.8W)
It only seems that there are some very small spikes upwards (2.2W), for one second in 10 seconds or so.
I did not see them with the "ondemand" governor.
But this might as well be outside the measurement accuracy, it´s only a standard energy monitor, not an oscilloscope, I´m doing the measurement with.

I´ll test the responsiveness for my concerns and use the interactive governor then. Thanks for the hint!

campbell
Posts: 314
Joined: Thu Sep 03, 2015 1:13 pm
languages_spoken: english
ODROIDs: XU3, XU4, C2, C1+, Cloudshell, Smart Power
Contact:

Re: XU4 idle power consumption

Unread post by campbell » Mon Sep 14, 2015 6:43 am

You should see about 1.5 W with the "ondemand" or "conservative" governors without Ethernet plugged in. It also depends on core temperature: if you force the fan on and cool the core down to 34 C, and then shut the fan back off, you should see about 1.45 W. Plugging in Ethernet raises the power draw by 150-250 mW.

campbell
Posts: 314
Joined: Thu Sep 03, 2015 1:13 pm
languages_spoken: english
ODROIDs: XU3, XU4, C2, C1+, Cloudshell, Smart Power
Contact:

Re: XU4 idle power consumption

Unread post by campbell » Mon Sep 14, 2015 6:47 am

Also note that to affect all eight CPUs, the governor needs to be set for both cpu0 and cpu4.

With the "performance" governor, the idle power will be in the 2.6 - 2.9W range. At room temperature, the core will heat up into the mid 50's, when it gets above 57 C the fan will briefly kick on and power will increase by 500-650 mW for a bit.

I have no idea why this guy's idle power was in the 4 W range.

campbell
Posts: 314
Joined: Thu Sep 03, 2015 1:13 pm
languages_spoken: english
ODROIDs: XU3, XU4, C2, C1+, Cloudshell, Smart Power
Contact:

Re: XU4 idle power consumption

Unread post by campbell » Mon Sep 14, 2015 12:10 pm

With an ambient temperature of somewhere lower than 10° C, it should be possible to lower the core temperature to 20° C by forcing the fan on and doing no other work on the CPU. I just measured the below with serial console access, the default Ubuntu 15.04 image with no network connectivity, in ambient air and then with the board in the refrigerator (nominally 4° C, probably higher because I was opening and closing the door):

Temperature is measured with:
cat /sys/class/thermal/thermal_zone0/temp

Fan is forced on with:
sudo sh -c "echo 0 > /sys/devices/odroid_fan.13/fan_mode”

and turned back to auto mode with:
sudo sh -c "echo 1 > /sys/devices/odroid_fan.13/fan_mode"

46° C: 1.500 W with fan off, ambient
32° C: 2.068 W with fan forced on, ambient
32° C: 1.446 W with fan off, ambient
26° C: 2.080 W with fan forced on, in fridge
20° C: 1.412 W with fan off, in fridge

I’ve never seen the temperature indicated less than 20° C, which leads me to believe the sensor will not read lower - therefore I stopped measurement as soon as I saw the temperature report 20° C so that I was sure it wasn’t actually lower.

masand
Posts: 29
Joined: Thu Sep 03, 2015 2:48 am
languages_spoken: english, german
ODROIDs: ODroid XU4
Contact:

Re: XU4 idle power consumption

Unread post by masand » Mon Nov 23, 2015 4:44 am

Just another small hint:
The update to Ubuntu 15.10 (via do-release-upgrade) seems to reset the changes in the boot.ini file.
So I had to change the file again after the upgrade.

bmentink
Posts: 386
Joined: Sat Dec 13, 2014 1:47 pm
languages_spoken: english
ODROIDs: XU3, XU4
Contact:

Re: XU4 idle power consumption

Unread post by bmentink » Tue Dec 01, 2015 3:15 am

My XU3 does not have those lines in boot.ini, I take it I can just add them .. ?

EDIT: Seems I can't ..... because latest uboot on Arch won't build with GCC 5.2 .... bah humbug ....
Last edited by bmentink on Thu Dec 10, 2015 6:42 am, edited 1 time in total.

User avatar
odroid
Site Admin
Posts: 29380
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Contact:

Re: XU4 idle power consumption

Unread post by odroid » Tue Dec 01, 2015 11:41 am

bmentink wrote:My XU3 does not have those lines in boot.ini, I take it I can just add them .. ?
If you use the Ubuntu 14.04 LTS, update the kernel with odroid-utility.
There is a menu of "Update boot scripts" too for downloading a updated boot.ini.

bmentink
Posts: 386
Joined: Sat Dec 13, 2014 1:47 pm
languages_spoken: english
ODROIDs: XU3, XU4
Contact:

Re: XU4 idle power consumption

Unread post by bmentink » Tue Dec 01, 2015 12:13 pm

odroid wrote:
bmentink wrote:My XU3 does not have those lines in boot.ini, I take it I can just add them .. ?
If you use the Ubuntu 14.04 LTS, update the kernel with odroid-utility.
There is a menu of "Update boot scripts" too for downloading a updated boot.ini.
I am not using Ubuntu, I am using an ArchLinux system. However the boot files where still from the original Ubuntu install ( I just imaged the root filesystem for Arch)
So the question remains .. can I just add the lines ... or will I have to ask the ArchARM folk about what parameters can be passed to the kernel ..

User avatar
odroid
Site Admin
Posts: 29380
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Contact:

Re: XU4 idle power consumption

Unread post by odroid » Tue Dec 01, 2015 2:43 pm

What is the latest kernel version from the ArchLinux repo?

bmentink
Posts: 386
Joined: Sat Dec 13, 2014 1:47 pm
languages_spoken: english
ODROIDs: XU3, XU4
Contact:

Re: XU4 idle power consumption

Unread post by bmentink » Tue Dec 01, 2015 3:24 pm

odroid wrote:What is the latest kernel version from the ArchLinux repo?
Currently sitting at 3.10.82-8-ARCH

User avatar
odroid
Site Admin
Posts: 29380
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Contact:

Re: XU4 idle power consumption

Unread post by odroid » Tue Dec 01, 2015 5:59 pm

I am not sure whether it supports the governor option or not.
Try this latest boot.ini file and look into the dmesg output to check the kernel parameters.
https://github.com/mdrjr/5422_bootini/b ... r/boot.ini

bmentink
Posts: 386
Joined: Sat Dec 13, 2014 1:47 pm
languages_spoken: english
ODROIDs: XU3, XU4
Contact:

Re: XU4 idle power consumption

Unread post by bmentink » Wed Dec 02, 2015 3:57 am

odroid wrote:I am not sure whether it supports the governor option or not.
Try this latest boot.ini file and look into the dmesg output to check the kernel parameters.
https://github.com/mdrjr/5422_bootini/b ... r/boot.ini
I cannot try that boot.ini, it is too different than mine .... i.e I boot off ext4 partition not fat .. my boot.ini looks like this:

Code: Select all

ODROIDXU-UBOOT-CONFIG

# U-Boot Parameters
setenv initrd_high "0xffffffff"
setenv fdt_high "0xffffffff"

# Mac address configuration
setenv macaddr "00:1e:06:61:7a:40"
setenv governor "ondemand"

#------------------------------------------------------------------------------------------------------
# Basic Arch Linux ARM Setup. Don't touch unless you know what you are doing.
# --------------------------------
setenv bootrootfs "console=tty1 console=ttySAC2,115200n8 root=/dev/mmcblk0p1 rootwait rw"

# boot commands
setenv bootcmd "ext4load mmc 0:1 0x40008000 /boot/zImage; ext4load mmc 0:1 0x44000000 /boot/dtbs/exynos5422-odroidxu3.dtb; bootz 0x40008000 - 0x44000000"

# --- Screen Configuration for HDMI --- # 
# ---------------------------------------
# Uncomment only ONE line! Leave all commented for automatic selection.
# Uncomment only the setenv line!
# ---------------------------------------
# ODROID-VU forced resolution
# setenv videoconfig "video=HDMI-A-1:1280x800@60"
# -----------------------------------------------
# 1920x1080 (1080P) with monitor provided EDID information. (1080p-edid)
# setenv videoconfig "video=HDMI-A-1:1920x1080@60"
# -----------------------------------------------
# 1920x1080 (1080P) without monitor data using generic information (1080p-noedid)
setenv videoconfig "drm_kms_helper.edid_firmware=edid/1920x1080.bin"
# -----------------------------------------------
# 1280x720 (720P) with monitor provided EDID information. (720p-edid)
# setenv videoconfig "video=HDMI-A-1:1280x720@60"
# -----------------------------------------------
# 1280x720 (720P) without monitor data using generic information (720p-noedid)
# setenv videoconfig "drm_kms_helper.edid_firmware=edid/1280x720.bin"
# -----------------------------------------------
# 1024x768 without monitor data using generic information
# setenv videoconfig "drm_kms_helper.edid_firmware=edid/1024x768.bin"


# final boot args
setenv bootargs "${bootrootfs} ${videoconfig} governor=${governor} smsc95xx.macaddr=${macaddr}"
# drm.debug=0xff
# Boot the board
boot
I will check on the archlinuxarm forums to see if it is supported ..
Thanks anyway.

Cardo
Posts: 1
Joined: Thu Dec 03, 2015 1:23 pm
languages_spoken: english
ODROIDs: XU4
Contact:

Re: XU4 idle power consumption

Unread post by Cardo » Thu Dec 03, 2015 1:38 pm

I have the ubuntu 14.04.1 LTS installed. After updating the boot scripts with the odroid utility, I could not find the same code as suggested (setenv governor ....) in /etc/boot/boot.ini . However, I introduced the line:

Code: Select all

setenv governor "ondemand"
in boot.ini and after rebooting it is much more quiet (fan is activated less times when idle) although I did not measure the power.

bmentink
Posts: 386
Joined: Sat Dec 13, 2014 1:47 pm
languages_spoken: english
ODROIDs: XU3, XU4
Contact:

Re: XU4 idle power consumption

Unread post by bmentink » Thu Dec 03, 2015 2:44 pm

I can't see how that would make any difference until you put "governor={governor}" in your bootargs ..
If you don't include that, the bootloader won't pass it to the kernel.

Since I am not sure if Arch supports that kernel parameter, I manually set it to ondemand with the following:

Code: Select all

sudo cpupower frequency-set -g ondemand
and checked the frequency was changing by writing this script:

Code: Select all

#!/bin/bash
for i in `seq 1 3600`; do echo `sudo cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_cur_freq`";"`sudo cat /sys/devices/system/cpu/cpu4/cpufreq/cpuinfo_cur_freq`; sleep 1; done
That works, as I can see the frequency changing as demand increases, however, the temperature of the cpu does not change .... so I am guessing the percentage utilization of the cores running at a lower frequency goes up, so the net effect is the same.

(i.e. I am thinking that a core running at 1.8G at 20% usage, is the same as the core running at 900Mhz at 40% ... i may be wrong though. )

bmentink
Posts: 386
Joined: Sat Dec 13, 2014 1:47 pm
languages_spoken: english
ODROIDs: XU3, XU4
Contact:

Re: XU4 idle power consumption

Unread post by bmentink » Thu Dec 10, 2015 6:44 am

Seems these boot.ini parameters need the latest uboot which Arch does not have because it won't build with GCC 5.2, is anyone working on fixing that? @adroid, @mdrjr ??
(In fact the one on Arch is dated 2012-07 ..)
Last edited by bmentink on Fri Dec 11, 2015 3:03 am, edited 2 times in total.

User avatar
odroid
Site Admin
Posts: 29380
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Contact:

Re: XU4 idle power consumption

Unread post by odroid » Thu Dec 10, 2015 12:12 pm

The u-boot version doesn't matter.
I think ALARM people need to update the kernel package or build your own kernel to activate the governor kernel parameter.

bmentink
Posts: 386
Joined: Sat Dec 13, 2014 1:47 pm
languages_spoken: english
ODROIDs: XU3, XU4
Contact:

Re: XU4 idle power consumption

Unread post by bmentink » Thu Dec 10, 2015 12:16 pm

odroid wrote:The u-boot version doesn't matter.
I think ALARM people need to update the kernel package or build your own kernel to activate the governor kernel parameter.
The govenor works, it just doesn't work when set from a kernel parameter ....
But you are right ALARM needs to get upto date with the kernel ... I have posted a request on the ArchLinuxARM forum ...

train96
Posts: 10
Joined: Fri May 16, 2014 11:49 pm
languages_spoken: english, korean
ODROIDs: U3 Community Edition
Contact:

Re: XU4 idle power consumption

Unread post by train96 » Fri Dec 11, 2015 11:14 pm

By turning off the Big Cores, we can reduce addtional 0.5~0.7W.

in ubuntu server 14.04
`echo 0 > /sys/devices/system/cpu/cpu4/online`
you can turn off the core by this command.

but in ubuntu server 14.04.2
it dosen't work :(

hoping to get solution for this.

User avatar
odroid
Site Admin
Posts: 29380
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Contact:

Re: XU4 idle power consumption

Unread post by odroid » Sat Dec 12, 2015 3:44 pm

Core# 0~3 : Big cores
Core# 4~7: Little cores
The core #4 should be always online to keep running the system while other cores can be controlled on the fly.

train96
Posts: 10
Joined: Fri May 16, 2014 11:49 pm
languages_spoken: english, korean
ODROIDs: U3 Community Edition
Contact:

Re: XU4 idle power consumption

Unread post by train96 » Sat Dec 12, 2015 9:01 pm

odroid wrote:Core# 0~3 : Big cores
Core# 4~7: Little cores
The core #4 should be always online to keep running the system while other cores can be controlled on the fly.
cpu1~7 can be turned off but after a second, It turned on by something. (hoping to know what is the something)
and cpu0 can't be turned off. (due to permission problem.)

I think cpu 0~3 is Little cores and cpu 4~7 is Big cores. at least XU3(with Energy Monitor) does

masand
Posts: 29
Joined: Thu Sep 03, 2015 2:48 am
languages_spoken: english, german
ODROIDs: ODroid XU4
Contact:

Re: XU4 idle power consumption

Unread post by masand » Fri Dec 18, 2015 6:37 pm

Hi train96,

when I try to turn off cpu0, I also get an error:
write error: Operation not permitted

So I turned off the cores 1-3 and 5-7 as suggested by you and kept core 4 running as suggested by odroid.

But this does not have any further effect on the power consumption.
So - the governor (set to ondemand) seems to already do the best he can.

Aren´t the cores turned off automatically when the governor is set to ondemand and they´re not needed in this second?

MarvinF
Posts: 2
Joined: Sat Jan 21, 2017 9:46 pm
languages_spoken: english, german
Contact:

Re: XU4 idle power consumption

Unread post by MarvinF » Sun Jan 22, 2017 12:08 am

Hey,

is the XU4 with Ubuntu or OpenMediaVault able to power down a WD Red WD10JFCX 1TB 2.5" HDD connected via USB3 case (USB3-SATA-bridge)? And will the idle power consumption be the same as without HDD when powered down? Or what does it add?

What are the best CPU settings for a pure NAS configuration, where ide is by far the most relevant situation, but networking performance should still be perfect.

User avatar
odroid
Site Admin
Posts: 29380
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Contact:

Re: XU4 idle power consumption

Unread post by odroid » Sun Jan 22, 2017 12:44 pm

Refer this thread about the HDD power control.
http://forum.odroid.com/viewtopic.php?f=95&t=22049

MarvinF
Posts: 2
Joined: Sat Jan 21, 2017 9:46 pm
languages_spoken: english, german
Contact:

Re: XU4 idle power consumption

Unread post by MarvinF » Sun Jan 22, 2017 10:09 pm

Thanks for the reply.

Unfortunately there's nothing about power consumption of the HDD when in power safe mode. Do you have any reliable data?

User avatar
mad_ady
Posts: 5113
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, N1
Location: Bucharest, Romania
Contact:

Re: XU4 idle power consumption

Unread post by mad_ady » Mon Jan 23, 2017 3:35 am

You can use hdparm -S to spin down your disk after a period of inactivity if your disk/controller supports it.
There are some tips on this thread you can follow: http://forum.odroid.com/viewtopic.php?t=25424

elatllat
Posts: 1115
Joined: Tue Sep 01, 2015 8:54 am
languages_spoken: english
ODROIDs: XU4, N1
Contact:

Re: XU4 idle power consumption

Unread post by elatllat » Sun Jul 30, 2017 11:04 pm

You might have to disable UAS for your drive or try with and with out "-d sat" to get hdparm working.

Code: Select all

smartctl --set=standby,12 /dev/sda

terryeh
Posts: 3
Joined: Fri Nov 10, 2017 2:58 pm
languages_spoken: english
Contact:

Re: XU4 idle power consumption

Unread post by terryeh » Mon Nov 20, 2017 6:40 am

train96 wrote:By turning off the Big Cores, we can reduce addtional 0.5~0.7W.

in ubuntu server 14.04
`echo 0 > /sys/devices/system/cpu/cpu4/online`
you can turn off the core by this command.

but in ubuntu server 14.04.2
it dosen't work :(

hoping to get solution for this.
Do you mean, by shutting down the Big cores, the 1.45 watt idle, would drop below 1 watt !?

campbell
Posts: 314
Joined: Thu Sep 03, 2015 1:13 pm
languages_spoken: english
ODROIDs: XU3, XU4, C2, C1+, Cloudshell, Smart Power
Contact:

Re: XU4 idle power consumption

Unread post by campbell » Mon Nov 20, 2017 1:52 pm

terryeh wrote:
train96 wrote:By turning off the Big Cores, we can reduce addtional 0.5~0.7W.

in ubuntu server 14.04
`echo 0 > /sys/devices/system/cpu/cpu4/online`
you can turn off the core by this command.

but in ubuntu server 14.04.2
it dosen't work :(

hoping to get solution for this.
Do you mean, by shutting down the Big cores, the 1.45 watt idle, would drop below 1 watt !?
No. I would expect this to only save 0.5 watts if the governor was set to "performance", in which case the board is probably idling at 2.5-2.7 watts. If set to "ondemand" you are probably going to see a much smaller drop (if at all) from powering down cores.

TOMillr
Posts: 30
Joined: Fri Feb 23, 2018 3:41 am
languages_spoken: english
Contact:

Re: XU4 idle power consumption

Unread post by TOMillr » Sat Mar 24, 2018 10:55 pm

Sorry for bringing this topic back up, but I'm curious how lowering the base clock down to, say 1.8GHz and having the system run cooler impact idle power consumption.

What kind of power draw can I expect during idle when using OMV with ethernet connected?

campbell
Posts: 314
Joined: Thu Sep 03, 2015 1:13 pm
languages_spoken: english
ODROIDs: XU3, XU4, C2, C1+, Cloudshell, Smart Power
Contact:

Re: XU4 idle power consumption

Unread post by campbell » Sun Mar 25, 2018 12:10 am

TOMillr wrote:Sorry for bringing this topic back up, but I'm curious how lowering the base clock down to, say 1.8GHz and having the system run cooler impact idle power consumption.

What kind of power draw can I expect during idle when using OMV with ethernet connected?
If you correctly using the ondemand governor, the system should be idling both sets of cores at 200 MHz, so changing the upper bound on frequency should have no effect on idle power consumption. On the other hand, if you're using the performance governor, or not actually idling, then you will notice a large effect.

Post Reply

Return to “Hardware and peripherals”

Who is online

Users browsing this forum: No registered users and 3 guests