Power Tuning Linux: A Case Study Alexandra Yates - - PowerPoint PPT Presentation

power tuning linux a case study
SMART_READER_LITE
LIVE PREVIEW

Power Tuning Linux: A Case Study Alexandra Yates - - PowerPoint PPT Presentation

Power Tuning Linux: A Case Study Alexandra Yates alexandra.yates@intel.com http://01.org/powertop 1 About Experiment 2 About Experiment Software Ubuntu 13.10: Includes Ubuntu Linux Kernel 3.11.0-12.19. Based on upstream Linux Kernel


slide-1
SLIDE 1

1

Power Tuning Linux: A Case Study

Alexandra Yates

alexandra.yates@intel.com

http://01.org/powertop

slide-2
SLIDE 2

2

About Experiment

slide-3
SLIDE 3

3

About Experiment

Software

  • Ubuntu 13.10: Includes Ubuntu Linux Kernel 3.11.0-12.19. Based on

upstream Linux Kernel 3.11.13, upstream Linux Kernel 3.13.7, and 3.14.0.

Hardware

  • Microsoft Surface Pro 3
  • 12-inch 2160 x 1440
  • 1.9 GHz Intel Core i5 4300U – Haswell-ULT
  • 256 GB SSD Hard Drive
  • Battery life: 5 Hours 30 minutes
  • Sony VAIO Pro 13
  • 1920 x 1080 touch screen LCD
  • Intel Inside Core i5 4200U @ 1.60 GHz – Haswell-ULT
  • 128 GB SSD drive
  • Battery life: 6 Hours 30 minutes http://laptops-and-notebooks.findthebest.com/l/2085/VAIO-Pro-SVP13213CXB
slide-4
SLIDE 4

4

About Experiment (cont.)

HW Tools:

  • Yokogawa WT310
  • Photometer

SW Tools

  • PowerTOP

Other Hardware

  • USB drive
  • USB mouse
  • SD Card
  • Tests:
  • 10 minutes intervals.
  • Wall Power.
  • Suspend PM.
  • Idle Power Management

(PM).

  • Battery fully charged
slide-5
SLIDE 5

5

The Results

slide-6
SLIDE 6

6

Out of the Box (OoB) Ubuntu 3.16.0

// change Nits. Number may change according to hardware $echo 515 > /sys/class/backlight/intel_back/brightness

Savings 54 min

0.00 2.00 4.00 6.00 8.00 10.00 12.00

Watts Time (10 minutes)

  • ob screen on idle
  • ob screen off idle

nits screen on idle

slide-7
SLIDE 7

7

1% 0% 1% 0% 2% 0% 1% 0% 0% 0% 0% 0% 3% 8% 1% 81%

Overall Platform Power Consumption

Audio NFC KBC/EC WLAN/BT Touch Pannel Camera Sensor Hub SD Card Thermal Sensor WWAN SDD USB Walkup Ports LPT CPU Memory Panel

slide-8
SLIDE 8

8

Linux Kernel 3.16

2 4 6 8 10 12 14

Linux Kernel 3.16 & PowerTOP

nits_scon_3.16 nits_scoff_3.16 nits_scon_3.16_PWT nits_scoff_3.16_PWT

Time (10 minutes) Watts

Savings (hh:mm) SC_ON 1:45 SC_Off 3:00

slide-9
SLIDE 9

9

Out of the box vs Linux Kernel 3.16 PM Tuned

2 4 6 8 10 12 14 16 18

Out of the Box vs 3.16 & PowerTOP

  • ob_scon_idle
  • ob_scoff_idle

nits_scon_3.16_PWT nits_scoff_3.16_PWT Watts Time (10 minutes)

Savings (hh:mm) SC_ON 2:24 SC_Off 3:00

slide-10
SLIDE 10

10

PowerTOP c-states Kernel 3.14.13-2

Screen on tuned Screen on

slide-11
SLIDE 11

11

PowerTOP c-states Kernel 3.16.0

Screen on C7 tuned Linux command line parameters i915.enable_psr=1 pcie_aspm=force http://wireless.kernel.org/en/users/ Documentation/ASPM#Enabling_A SPM_with_setpci

slide-12
SLIDE 12

12

How is the software behaving?

slide-13
SLIDE 13

13

PowerTOP Tunables

Tuned Component Command

VM write-back timeout echo '1500' > '/proc/sys/vm/dirty_writeback_centisecs'; Enable SATA link power management for host0 echo 'min_power' > '/sys/class/scsi_host/host0/link_power_management_policy'; NMI watchdog should be turned off echo '0' > '/proc/sys/kernel/nmi_watchdog'; Auto suspend for USB device AX88772 [2-1] echo 'auto' > '/sys/bus/usb/devices/2-1/power/control'; Auto suspend for USB device DT 101 G2 [Kingston] echo 'auto' > '/sys/bus/usb/devices/2-2/power/control'; Auto suspend for USB device eGalaxTouch EXC7910-1031-12.00.03 [eGalax Inc.] echo 'auto' > '/sys/bus/usb/devices/2-3/power/control'; Runtime PM for PCI Device Samsung Electronics Co Ltd Device a800 echo 'auto' > '/sys/bus/pci/devices/0000:03:00.0/power/control'; Runtime PM for PCI Device Intel Corporation Lynx Point-LP SMBus Controller echo 'auto' > '/sys/bus/pci/devices/0000:00:1f.3/power/control'; Runtime PM for PCI Device Intel Corporation Lynx Point-LP LPC Controller echo 'auto' > '/sys/bus/pci/devices/0000:00:1f.0/power/control'; Runtime PM for PCI Device Intel Corporation Lynx Point-LP USB EHCI #1 echo 'auto' > '/sys/bus/pci/devices/0000:00:1d.0/power/control'; Runtime PM for PCI Device Intel Corporation Lynx Point-LP PCI Express Root Port 6 echo 'auto' > '/sys/bus/pci/devices/0000:00:1c.4/power/control'; Runtime PM for PCI Device Intel Corporation Lynx Point-LP PCI Express Root Port 3 echo 'auto' > '/sys/bus/pci/devices/0000:00:1c.0/power/control'; Runtime PM for PCI Device Intel Corporation Haswell-ULT Integrated Graphics Controller echo 'auto' > '/sys/bus/pci/devices/0000:00:02.0/power/control'; Runtime PM for PCI Device Intel Corporation Lynx Point-LP PCI Express Root Port 4 echo 'auto' > '/sys/bus/pci/devices/0000:00:1c.3/power/control'; Runtime PM for PCI Device Intel Corporation Lynx Point-LP HECI #0 echo 'auto' > '/sys/bus/pci/devices/0000:00:16.0/power/control'; Runtime PM for PCI Device Intel Corporation Lynx Point-LP USB xHCI HC echo 'auto' > '/sys/bus/pci/devices/0000:00:14.0/power/control';

slide-14
SLIDE 14

14

Common Devices

slide-15
SLIDE 15

15

Background Impact

Time (10 minutes)

2 4 6 8 10 12 14 16

Background Color

  • ob_debian

debian_T black_T white_oob white_T Watts

OOB OOB 00:04 OOB Tuned 4:35 Tune d Tuned 00:31

vs Savings

(hh:mm)

slide-16
SLIDE 16

16

Device Consumption Mouse

Watts

2 4 6 8 10 12 14 16 18

Device Power Consumption

scon_3.16_pwt mouse_oob mouse_3.16 mouse_3.16_pwt Time (10 minutes)

Savings (hh:mm) Tuned 2:25

slide-17
SLIDE 17

17

Other Distros

slide-18
SLIDE 18

18

Ubuntu vs Debian

Watts

0.5 1 1.5 2 2.5 3 3.5 4

Ubuntu vs Debian

ubuntu_scon ubuntu_scoff debian_scon debia_scoff

slide-19
SLIDE 19

19

Conclusion

slide-20
SLIDE 20

20

Q&A

PowerTOP is an Open Source Project, Get Involved!! https://01.org/powertop/get-involved How to contribute to PowerTOP? 1- Join the mailing list 2- Get the code from the repo 3- Send your patches to the mailing list