Profiling energy usage for efficient consumption r gas constant

###########

Summary: When measuring the effectiveness of application architecture, there are several key criteria by which it can be measured. First and foremost, is the architecture’s ability to fulfill the requirements. These requirements often include specific, measurable items relating to cost, scalability, testability, and so forth. In the future, two new measurable criteria will become critical to evaluating application architectures: energy consumption/cost and environmental impact. But as we will see, the future is now. Contents

There you sit, monitoring the performance of your latest line-of-business application freshly rolled out just 24 hours ago, when a strange visitor strolls in. She begins asking you about your enterprise architecture. Instead of calling security, you decide this is a chance to show off how cutting edge your organization is. j gastroenterol impact factor You hit all the buzzwords: C#, SQL Server, WPF, WCF, and SilverLight. It scales up and out, is accessible from mobile devices, it slices and it dices. “Excellent,” the Architect replies, “but what does your EUP look like?”

“My EUP? What’s that?” The Architect explains that in the future, an Energy Usage Profile (EUP) is a fundamental part of every application design — through the use of a set of Energy Usage Profiles (EUPs), organizations of the future measure the ongoing energy costs and environmental impact of specific applications within the enterprise. “Sit down,” she intones, “and I’ll tell you all about it.” The Math

Before diving into specifics, a basic discussion of energy usage is in order. When measuring the electrical usage of any electronic component, simple math can be employed to assign a cost to that component. Let’s begin with an example: the venerable 60 watt (W) incandescent lightbulb (common in your time but widely regarded as legacy hardware in the future). The electric company measures energy consumption in kilowatt-hours (kWh). Using our lightbulb as an example, if we were to leave it on for one hour, we would have consumed 60 watt-hours (or .06 kWh) of power (60/1000 = .06). Now say, for example, that the electric company charges $0.0897 per kilowatt-hour (excluding delivery charges, capacity charges, taxes, and all other fees), that means that the lightbulb costs roughly $0.0054 per hour to run (0.06 * 0.0897 = 0.0054). That may not seem like much but, if we were to leave that lightbulb on 24 hours a day, seven days a week, it would cost us $47.15 to run annually (0.0054 * 24 * 365 = 47.15). Now consider that each kilowatt-hour of electricity used also contributes approximately 2.3 pounds of CO 2 to the atmosphere. So, using a few simple calculations we can state an annual cost ($47.15) as well as an annual environmental impact (1,208 pounds of CO 2) for our little lightbulb. Going forward, we will be employing these formulae to calculate energy usage costs and environmental impact:

Unfortunately we’re not talking about lightbulbs, we’re talking about servers. So how does the energy usage of the average server compare to that of a 60 W lightbulb? Well, unless you’re running your company on laptops, it’s much worse. According to research published by Dell and Principled Technologies, a single Dell PowerEdge M600 blade server consumes an average of 383.75 W when idle and 454.39 W under stress (see Table 1). Keep in mind that this figure can go up or down depending on workload. Using that baseline to recalculate our numbers, that one server costs $301.54 per year to run. gas out game commercial It also produces 7,731.8 pounds of CO 2. The picture gets even bleaker when you consider how many servers the typical application uses. For example, if you run SharePoint, are you running it on a farm? Maybe a farm with two Web front-end servers, an index server, and a database server? Suddenly the annual electricity cost increases to $1,206.16 and the CO 2 produced increases to over 30,927 pounds. The cost and impact calculations should be directly included in any calculations of return on investment for an application.

The numbers for specific components are not easily measured but can be obtained from manufacturers’ Web sites and Web sites that perform independent hardware research. The server’s energy consumption is much easier to measure. Several low-cost devices are available to monitor energy consumption. The important thing is to build an overall picture of how much energy the server uses at idle and under stress. The energy usage of individual components does not need to be exact, but is important because it provides a ranking system for energy consumers within the server. electricity sources In the example above, the CPU is clearly the largest consumer of energy.

Using the EUP for the hardware, we can draw some general conclusions. Clearly, CPU usage is the most expensive resource in terms of actual cost and environmental impact. Memory usage has a minimal cost at best. Hard disk usage has minimal cost. The gist is that if we are going to attempt to optimize our infrastructure and application to minimize energy usage, the CPU should be the primary target. Developing an Energy Usage Profile for the Application

Dealing in averages may be fine if you’re analyzing a large data center but what about the energy usage of a specific application’s architecture? Average power consumption is not good enough. We want to know how much power a single application uses and, while we cannot get to the exact number, we can get pretty close. The first step is building an energy usage profile for the hardware.

As mentioned previously, the manufacturers’ Web sites are a good place to start. While the manufacturer’s figures can give you a good approximation for best and worst case scenarios for the hardware, it cannot tell you how much energy your particular application uses. In this case, we need to measure. electricity song billy elliot Luckily, inexpensive products are available that will help measure the energy consumption of your application. These products, used with a good set of application load tests, can make the energy consumption picture much clearer. The key is to build a set of load tests that reflect both the average and peak loads for your application.

The idle consumption can be used to calculate a baseline cost for the application. When doing nothing, a three-server application has an idle energy consumption of 354 W (.345 kWh). The hourly cost is $0.025875 and the annual cost is $226.67. Through our EUP, we can thus calculate the baseline annual cost of the application. The measurements taken during average and peak application loads can then be used to calculate costs and impacts when the application is running at those levels (see Tables 4-6).

Once an application-level EUP has been created, specific areas of the application can be targeted for improvement. Remember that what is high priority in terms of performance improvement may not always be high priority for energy usage reduction. For example, an operation that does a long write operation to a physical disk might be seen as a high priority performance issue. electricity cost by state In terms of energy usage, however, this operation might be low priority because the physical disk consumes less energy than the CPU. An operation that utilizes a large amount of CPU time might be a higher priority. This is not to say that CPU-intensive operations should be replaced at the cost of application performance. It simply gives us a ranking system for determining which components of the application can be optimized to realize the largest cost savings. The hardware EUP will tell you which physical components of the hardware carry the most cost and impact. Using hardware EUP, we know that CPU utilization carries the largest impact in terms of power usage, and should therefore be our first target.

Tools such as Visual Studio 2008 Profiler can be used to determine precise CPU usage for specific components of the application. These tracking statistics can then be used to attack the high cost portions of the application. In other words, find the most expensive operations and optimize them to reduce CPU usage. The ultimate goal is to lower resource usage to the point where multiple applications can be hosted on the same set of servers. Server sharing can reduce the energy footprint of all the applications involved. Developing an Energy Usage Profile for the Operating System

Application-based optimizations are not the only way to save energy. Optimizing the operating system is just as important. The base hardware EUP also provides us with an idle operating system EUP. gas definition wikipedia Looking at the data collected for physical servers when idle and at peak loads, we can see that a significant amount of energy is wasted on the system idle process. This wasted energy can be reclaimed through operating system virtualization. Virtualization allows the host machine to run at approximately 80 percent of peak processor utilization with fractionally increased power requirements. Table 7 translates these potential benefits into numbers.

Each physical server replaced with a virtual equivalent represents a significant savings, both in upfront costs as well as with respect to the environment. To put the carbon footprint in perspective, the average car produces 20 pounds of C0 2 per gallon of gas consumed. To maximize the number of virtual guest machines on a single host, optimization is a key requirement. This optimization includes minimizing disk and network utilization, as well as reducing the memory footprint.

In addition to the services listed above, you should eliminate screen savers and evaluate your event logging requirements for each guest operating system. This will avoid wasted processor cycles and disk activity. Minimizing disk activity is essential to both performance and energy efficiency. For that reason, you should use fixed size virtual hard disks to avoid the need to resize the Virtual Hard Disk (VHD) file. If you don’t require extensive logging, you can further reduce disk activity at the expense of data necessary for later analysis.

The impact of your application goes beyond CPU cycles and megabytes. The way end users interact with the application has a very real cost and impact. The actions taken within your application that are external to your design are measured in the External EUP. industrial electricity prices by state Think through the way end users will utilize a given application and try to anticipate the impact of those interactions. Following are examples of actions that should be tracked in an External EUP:

It is not just the Architect of the Future that can use the methods described in this article. You can (and should) consider the energy usage when designing an application. Part of being an Architect is understanding how every aspect of your application functions. Energy usage is another key aspect and an energy usage profile is the tool for understanding it. Having a useful energy usage profile means:

Rajesh Chheda is a consultant at RDA with more than 10 years of experience designing and developing business solutions using Microsoft tools and technologies. He has worked on software solutions for real estate finance, lending, procurement. His current focus is on designing, customizing and deploying collaboration solutions for his clients using Microsoft SharePoint technology. He can be reached at chheda@rdacorp.com.