Matthew Garrett <mjg@redhat.com> Going green with Linux Matthew Garrett <mjg@redhat.com>

Slides:



Advertisements
Similar presentations
MEMORY MANAGEMENT Y. Colette Lemard. MEMORY MANAGEMENT The management of memory is one of the functions of the Operating System MEMORY = MAIN MEMORY =
Advertisements

May 17, USB Power Management Brad Hosler USB Engineering Manager Intel Corporation.
Performance Analysis of Virtualization for High Performance Computing A Practical Evaluation of Hypervisor Overheads Matthew Cawood University of Cape.
Virtual Machines What Why How Powerpoint?. What is a Virtual Machine? A Piece of software that emulates hardware.  Might emulate the I/O devices  Might.
Green Cloud Computing Hadi Salimi Distributed Systems Lab, School of Computer Engineering, Iran University of Science and Technology,
Ken Birman. Massive data centers We’ve discussed the emergence of massive data centers associated with web applications and cloud computing Generally.
Application Models for utility computing Ulrich (Uli) Homann Chief Architect Microsoft Enterprise Services.
Tools for Investigating Graphics System Performance
Operating Systems. What is an Operating System? A layer of software between users/applications and the hardware. The first program loaded onto a computer.
1: Operating Systems Overview
Energy Efficient Web Server Cluster Andrew Krioukov, Sara Alspaugh, Laura Keys, David Culler, Randy Katz.
Server Virtualization Gina Myers. Definition Creating virtual machines (VMs) “VMs are software entities that emulate a real machine’s functionality” ◦
The Design of Robust and Efficient Microkernel ManRiX, The Design of Robust and Efficient Microkernel Presented by: Manish Regmi
Virtualization for Cloud Computing
WHAT IS A COMPUTER? BY JACK SUMMERS. WHAT IS A COMPUTER? A computer basically a set of different components that when put together in the correct way.
Basics of Operating Systems March 4, 2001 Adapted from Operating Systems Lecture Notes, Copyright 1997 Martin C. Rinard.
3-1 System peripherals & Bus Structure Memory map of the LPC2300 device is one contiguous 32-bit address range. However, the device itself is made up of.
CS 423 – Operating Systems Design Lecture 22 – Power Management Klara Nahrstedt and Raoul Rivas Spring 2013 CS Spring 2013.
Parallel Computing The Bad News –Hardware is not getting faster fast enough –Too many architectures –Existing architectures are too specific –Programs.
Testing Virtual Machine Performance Running ATLAS Software Yushu Yao Paolo Calafiura LBNL April 15,
LOGO OPERATING SYSTEM Dalia AL-Dabbagh
Operating System Review September 10, 2012Introduction to Computer Security ©2004 Matt Bishop Slide #1-1.
+ CS 325: CS Hardware and Software Organization and Architecture Cloud Architectures.
Software Software essential is coded programs that perform a serious of algorithms. Instructions loaded into primary memory (RAM) from secondary storage.
October 10, USB Power Management Brad Hosler USB Engineering Manager Intel Corporation.
Energy Savings with DVFS Reduction in CPU power Extra system power.
SMOA Devices Bartek Bosak, Krzysztof Kurowski, Bogdan Ludwiczak, Ariel Oleksiak, Michał Konferencja I3 – internet – infrastruktury.
Motherboards The Main Printed Circuit Board Inside The PC That Contains and Controls The Components That Are Responsible For Processing Data.
Tool Integration with Data and Computation Grid GWE - “Grid Wizard Enterprise”
Headline in Arial Bold 30pt HPC User Forum, April 2008 John Hesterberg HPC OS Directions and Requirements.
Issues Autonomic operation (fault tolerance) Minimize interference to applications Hardware support for new operating systems Resource management (global.
Embedded System Lab 김해천 Thread and Memory Placement on NUMA Systems: Asymmetry Matters.
VGreen: A System for Energy Efficient Manager in Virtualized Environments G. Dhiman, G Marchetti, T Rosing ISLPED 2009.
Lecture 26 Virtual Machine Monitors. Virtual Machines Goal: run an guest OS over an host OS Who has done this? Why might it be useful? Examples: Vmware,
Predrag Buncic (CERN/PH-SFT) Software Packaging: Can Virtualization help?
A Practical Evaluation of Hypervisor Overheads Matthew Cawood Supervised by: Dr. Simon Winberg University of Cape Town Performance Analysis of Virtualization.
Matthew Locke November 2007 A Linux Power Management Architecture.
INTRODUCTION TO WEB HOSTING
Introduction to threads
Unix Server Consolidation
Virtualization for Cloud Computing
Introduction to Virtualization
Adam Backman Chief Cat Wrangler – White Star Software
Chapter Objectives In this chapter, you will learn:
Network Optimization Executive Seminar Track 1, Session A
A new step to reduce computers giving negative Impacts to the earth
Current Generation Hypervisor Type 1 Type 2.
Threads vs. Events SEDA – An Event Model 5204 – Operating Systems.
Introduction to Load Balancing:
Software Mr. Singh.
OpenMosix, Open SSI, and LinuxPMI
Lesson Objectives Aims You should be able to:
Green cloud computing 2 Cs 595 Lecture 15.
Swapping Segmented paging allows us to have non-contiguous allocations
CernVM Status Report Predrag Buncic (CERN/PH-SFT).
IBM Start Now Host Integration Solutions
Software Architecture in Practice
Group 8 Virtualization of the Cloud
Boost Linux Performance with Enhancements from Oracle
Financial Services Firms Can Leverage Cloud
Hui Chen, Shinan Wang and Weisong Shi Wayne State University
Intro. To Operating Systems
Where Does the Power go in DCs & How to get it Back
Process Migration Troy Cogburn and Gilbert Podell-Blume
Virtualization.
CS703 - Advanced Operating Systems
The Troubleshooting theory
Migrating Your Data to the Cloud? Location Matters
Client/Server Computing and Web Technologies
Fundamentals of Computer Hardware & software
Presentation transcript:

Matthew Garrett <mjg@redhat.com> Going green with Linux Matthew Garrett <mjg@redhat.com>

Data centres are expensive ~3% of total US electrical consumption in 2010 ~15GW ~15 nuclear power stations

Fixing infrastructure On average, 1W of overhead for 1W of machine More efficient cooling systems More efficient power supplies

Things are getting better! 0.2W of overhead per W of machine

Flying car future Use waste heat to generate power

Linux doesn't solve this (Sorry)

Things need to get a lot better... High end hardware takes a lot of power 48 core system = ~350W at idle (with power management...)

What can we do in software? CPU power management dominates right now Modern x86 idles at ~0W Full power = ~20W per core (48 core system = 960W from CPUs alone!)

Gettings CPUs to do less is key An idle CPU is a cheap CPU Full package sleep means idle memory ~5W per stick of DDR3 at load, ~0.1W in self refresh Optimising CPU and memory use patterns makes a huge difference

Idle CPU cores = idle CPU package RAM

One active core = active package RAM

Keeping idle is key

Keeping idle is key

Keeping idle is key

Huge efforts to reduce wakeups IPMI reworked Automounter moved to event driven model Application-level tuning Debug tools (powertop, systemtap)

What are the numbers? At fully idle, Linux ~3% better than Windows Things start getting interesting under load...

(Illustrative results)

(Illustrative results)

Take home message From 10%-50% load, Linux significantly more power efficient Margin decreases up to 90%, equality reached at 100%

Tweaking Linux behaviour /sys/devices/system/cpu/sched_mc_power_savings

RAM RAM

One task RAM RAM

Two tasks (sched_mc_power_savings = 0) RAM RAM

Two tasks (sched_mc_power_savings = 1) RAM RAM

Two tasks (sched_mc_power_savings = 2) Process migrated RAM RAM

Future trends Smarter scheduling More runtime memory power management Increasing virtualisation as a power management strategy Power management of smaller system components

Scheduling NUMA-aware migration Consolidate active pages in smaller nodes Thermal-aware scheduling If a CPU is limited because of heat, don't use it

Virtualisation Run virtualised rather than on real hardware Consolidate guests on a smaller number of hosts Bring up hosts and migrate guests as demand increases (requires rapid guest migration)

Load balancing Put backend machines to sleep Wake when demand increases Reduced resume latency

What are the tradeoffs? Focus has been on “free” power management Is it really true?

Well... Enterprise customers have enterprise demands Sometimes that performance hit really does matter

Latency can be a pain C-states inherently create latency Some people really don't want latency There's an obvious conflict here

pm_qos Simple solution is to let applications indicate their requirement pm_qos interface provides that

Performance/power tradeoff Not always the direction you'd think Intel's turbo mode depends on good idle PM (Benchmarks in the snow)

Turning more off Marginal but measurable gains from caring about unused hardware Lots of machines have USB ports Many don't have anything in them...

Genuinely user transparent USB SD Firewire Audio?

Focus on power management Reducing power consumption reduces costs

Focus on power management Reducing power consumption reduces costs Reducing power consumption is good PR

Focus on power management Reducing power consumption reduces costs Reducing power consumption is good PR Reducing power consumption is common sense

Questions?