Docsity

Power Awareness: Understanding Power Consumption in Servers and Data Centers, Study notes of Computer Science

Partial preview of the text

Download Power Awareness: Understanding Power Consumption in Servers and Data Centers and more Study notes Computer Science in PDF only on Docsity!

So far, we've discussed a few risk factors that lead to cloud computing. But there's an elephant in the room. Clouds are among the best ways to create power- aware datacenters. Power awareness Power awareness Wednesday, April 28, 2010 12:22 PM Docsity.com

Reducing power use. Reducing "carbon footprint" more generally. A main motivation for clouds is "going green" co-locating relatively idle services. shutting down unused machines. gauging number of live servers to predicted load. In the simplest case, one reduces power by Going Green Going Green Wednesday, April 28, 2010 12:24 PM Docsity.com

Voltage = how much potential (for work). Current = how fast it's moving. Power (P watts) = voltage (V volts) * current (I amps) (P=VI) This laptop draws 28 watts @ 120 VAC = .23 amps. This laptop puts out as much heat as a 28-watt lightbulb. The power law The power law Wednesday, April 28, 2010 12:26 PM Docsity.com

Resistance = resistance to letting current pass Voltage (V volts) = current (I amps) * resistance (R ohms (Ω)) (V = IR) Combining this with P=VI, we get P=I 2 R=V 2 /R. Power (watts) = (current (amps)) 2

  • impedance (ohms) Ohm's law Ohm's law Wednesday, April 28, 2010 12:31 PM Docsity.com

Can't charge for power: that is an instantaneous measure. Can charge for energy in Kilowatt-hours. 1 kH = 3.6* 6 Joules. Charging for energy Charging for energy Wednesday, April 28, 2010 12:56 PM Docsity.com

Heat output = energy expended. In other words, a 28-watt laptop generates the same heat (over a larger volume) as a 28-watt lightbulb! Heat output is measured in BTUs (British Thermal Units). 1 BTU ≈ 1060 Joules = the amount of energy needed to raise one pound of water by one degree Farenheit. 1 watt = 3.41214 BTU/hour. One person generates about 400 BTU/hour = 117 watts. Heat output Heat output Wednesday, April 28, 2010 12:54 PM Docsity.com

Alas, air conditioners are not particularly efficient. Efficiency of an air conditioner = cooling capacity / power consumed = (BTU/hour) / (BTU/hour) = a percentage. Temperature in room. Temperature outdoors. geometry of room (airflow) Efficiency depends upon but it is never even close to 100%! 60% is pretty good... Air conditioning efficiency Air conditioning efficiency Wednesday, April 28, 2010 1:16 PM Docsity.com

Power needs for one server aren't just input watts! / (input watts(of air conditioner)) = (output watts (of capacity)) The power needed to run one server: = wattage for server + wattage for cooling ≈ wattage for server + 1/E*(wattage for server) where E = efficiency of cooling in percent << 100% In other words, the total power consumption for running a server can be more than double its average power consumption as a unit! Efficiency = E = (output BTUs/hour) / (input BTUs/hour) A good rule of thumb is that a server actually consumes three times its rating! Power for one server isn't just input watts! Wednesday, April 28, 2010 1:26 PM Docsity.com

It takes power to access disk, memory, etc. Over time, this becomes energy. Idle load of a server differs from busy load. It is not true that running fewer servers is always better. But, here is where things get complex I previously claimed: virtual memory has no analogue in clouds. Why? Virtual memory costs more power than it's worth! But, here is where things get complex Wednesday, April 28, 2010 1:44 PM Docsity.com

It takes time and power to do a processor context switch between two processes. Thrashing : context switches dominate useful work. Thrashing is more expensive than running multiple computers! Because it uses more power! Power and thrashing Power and thrashing Wednesday, April 28, 2010 1:47 PM Docsity.com

Alas, clouds typically support interactive queries One needs to finish each one by a given deadline. Suppose you have 40 10-unit tasks arrive with the same deadline of 20 units. Adding deadlines (SLA's) Running on one machine, overhead is 5% of total computation time of 400 units, total is 420 units, doesn’t meet deadline! Running on 20 machines, overhead 5%total time of 40 units, total time 401.05=42 units, total power proportional to 4220 = 840 units. Running on 40 machines meets deadline, overhead near 0, total time 10 units; total power proportional to 40 10=400 units. There is a break-even point between 20 and 40 machines that balances overhead against deadline! Considering context switching to have 5% overhead: Adding deadlines Wednesday, April 28, 2010 1:56 PM Docsity.com

Total power required to run an infrastructure is a linear function of the power the hardware requires… … but is up to 3x that cost… power requirements within CPU are small. memory accesses use power. disk access use power. power requirements for an idle computer are less than requirements for doing work with it.... so thrashing costs power… context switching costs power… but deadlines make that impractical… optimal schedule involves no context switches... In summary: In summary: Monday, May 03, 2010 11:04 AM Docsity.com

His recent paper: the carbon footprint of a power plant changes dramatically if one considers the carbon from transporting the coal! I have a friend who is a world authority on emissions from coal-fired power plants. A simple case study of perspective Monday, April 25, 2011 5:01 PM Docsity.com

… is that performance bounds are absolute… … while response times are probabilistic… E.g., response time < 2 seconds. The problem with SLAs…. < 2 seconds 90% of the time < 10 seconds 100% of the time. Make the SLA probabilistic, e.g., Result: dramatic power savings. Simple proposal (HotPower 2008): The problem with SLAs Monday, May 03, 2010 11:12 AM Docsity.com