




















Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!





















Case Study 1: Total Cost of Ownership Influencing Warehouse-Scale Computer Design Decisions 2
6.1 a. The servers being 10% faster means that fewer servers are required to achieve the same overall performance. From the numbers in Figure 6.13, there are initially 45,978 servers. Assuming a normalized performance of 1 for the baseline servers, the total performance desired is thus 45,978 × 1 = 45,978. The new servers provide a normalized performance of 1.1, thus the total serv- ers required, y, is y × 1.1 = 45,978. Thus y = 41,799. The price of each server is 20% more than the baseline, and is thus 1.2 × 1450 = $1,740. Therefore the server CAPEX is $72,730,260. b. The servers use 15% more power, but there are fewer servers as a result of their higher performance. The baseline servers use 165 W, and thus the new servers use 1.15 × 165 = 190 W. Given the number of servers, and therefore the network load with that number of servers (377,795 W), we can determine the critical load needed to support the higher powered servers. Critical load = number of servers × watts per server + network load. Critical load = 41,799 × 190 W + 377,795 W. Critical load = 8,319,605 W. With the same utilization rate and the same critical load usage, the monthly power OPEX is $493,153. c. The original monthly costs were $3,530,920. The new monthly costs with the faster servers is $3,736,648, assuming the 20% higher price. Testing different prices for the faster servers, we find that with a 9% higher price, the monthly costs are $3,536,834, or roughly equal to the original costs.
6.2 a. The low-power servers will lower OPEX but raise CAPEX; the net benefit or loss depends on how these values comprise TCO. Assume server operational and cooling power is a fraction x of OPEX and server cost is a fraction y of CAPEX. Then, the new OPEX, CAPEX, and TCO, by using low-power servers, are given by: OPEX'^ = OPEX [(1 – 0.15) x + (1 – x )] CAPEX'^ = CAPEX [(1 + 0.2) y + (1 – y )] TCO'^ = OPEX'^ + CAPEX'^ = OPEX (1 – 0.15 x ) + CAPEX (1 + 0.2 y ) For example, for the data in Figure 6.14, we have OPEX'^ = $560,000(1 – 0.15 × 0.87) = $486, CAPEX'^ = $3,225,000(1 + 0.2 × 0.62) = $3,624, TCO'^ = OPEX'^ + CAPEX'^ = $4,111, In this case, TCO > TCO ' , so the lower power servers are not a good tradeoff from a cost perspective. b. We want to solve for the fraction of server cost, S , when TCO = TCO '^ : TCO = TCO'^ = OPEX (1 – 0.15 x ) + CAPEX (1 + Sy ) TCO – OPEX (1 – 0.15 x ) = CAPEX (1 + Sy )
Chapter 6 Solutions
We can solve for this using the values in Figure 6.14:
So, the low-power servers need to be less than 4.4% more expensive than the baseline servers to match the TCO. If the cost of electricity doubles, the value of x in the previous equations will increase as well. The amount by which it increases depends on the other costs involved. For the data in Figure 6.14, the cost of electricity doubling will make the monthly power use equal to $475,000 × 2 = $950,000. This increases total cost to be $4,275,000 and gives a value of x ≈ 0.92.
At this value of x , S ≈ 7.9%, slightly more than before. Intuitively this makes sense, because increasing the cost of power makes the savings from switch- ing to lower-power hardware greater, making the break-even point for pur- chasing low-power hardware less aggressive. 6.3 a. The baseline WSC used 45,978 servers. At medium performance, the perfor- mance is 75% of the original. Thus the required number of servers, x , is 0.75 × x = 45,978. x = 61,304 servers. b. The server cost is remains the same baseline $1,450, but the per-server power is only 60% of the baseline, resulting in 0.6 × 165 W = 99 W per server. These numbers yield the following CAPEX numbers: Network: $16,444,934.00; Server: $88,890,800.00. Like in 6.1, we calculate the total critical load as Crit- ical load = number of servers × watts per server + network load. Critical load = 61,304 × 99 W + 531,483 W. Critical load = 6,600,579 W. This critical load, combined with the servers, yields the following monthly OPEX numbers: Power: $391,256; Total: $4,064,193. c. At 20% cheaper, the server cost is 0.8 × $1,450 = $1,160. Assuming a slow- down of X%, the number of servers required is 45,978/(1 – X). The network components required can be calculated through the spreadsheet once the number of servers is known. The critical load required is Critical load = num- ber of servers × watts per server + network load. Given a reduction of power Y% compared to the baseline server, the watts per server = (1 – Y) × 165 W. Using these numbers and plugging them into the spreadsheet, we can find a few points where the TCO is approximately equal. 6.4 For a constant workload that does not change, there would not be any perfor- mance advantage of using the normal servers at medium performance versus the slower but cheaper servers. The primary differences would be in the number of
S TCO^ –^ OPEX^ (^1 – 0.15 x )– CAPEX CAPEXy = ----------------------------------------------------------------------------------------
S $3,800,000^ – $560,000 1(^ – 0.15^ ×0.87)^ – $3,225, $3,255,000 0.62( ) = ---------------------------------------------------------------------------------------------------------------------------------- ≈0.
S $4,275,000^ – $1,035,000 1(^ – 0.15^ ×0.92)^ – $3,225, $3,255,000 0.62( ) = -------------------------------------------------------------------------------------------------------------------------------------- ≈0.
If we also assume, as in Figure 6.13, that the original cost per server is $1,450, a new server would cost $3,000 – $1,450 = $1,550 more, for an increase of about 109%. We can estimate the effects on TCO by considering how power and cooling infrastructure and server cost factor into monthly amortized CAPEX and OPEX, as given in Figure 6.14. Increasing the cost of power and cooling infra- structure by 17.4% gives a new monthly cost of $475,000 × 1.174 = $557, (an increase of $82,650) and increasing server cost by 109% gives a new monthly cost of $2,000,000 × 2.09 = $4,180,000 (an increase of $2,180,000). The new monthly OPEX increases by $82,650 + $2,180,000 = $2,262,650. b. We can use a similar process as in Part a, to estimate the effects on TCO for this cheaper but more power-hungry server: Nameplate server power increases by 300 – 174 = 126 W/server, or approxi- mately 72%. This translates to an increase in power and cooling of 72% × 1.45 ≈ 104%. In addition, a new server would cost $2,000 – $1,450 = $550 more, for an increase of about 38%. We can once again estimate the effects on TCO by calculating the new monthly cost of power and cooling infrastructure as $475,000 × 1.72 = $817,000 (an increase of $342,000) and the new monthly server cost as $2,000,000 × 1.38 = $2,760,000 (an increase of $760,000). The new monthly OPEX increases by $342,000 + $760,000 = $1,102,000. This option does not increase TCO by as much as that in Part a. c. If average power usage of the servers is only 70% of the nameplate power (recall in the baseline WSC it was 80%), then the average server power would decrease by 12.5%. Given a power usage effectiveness of 1.45, this translates to a decrease in server power and cooling of 12.5% × 1.45 = 18.125%. This would result in a new monthly power and cooling infrastructure cost of $475,000 × (1 – 0.18125) = $388,906.25 (a decrease of $86,093.75). 6.8 a. Assume, from Figure 6.13, that our WSC initially contains 45,978 servers. If each of these servers has a nameplate power of 300 W, the critical load power for servers is given by 45,978 × 300 = 13,793,400 W. If, in actuality, the servers had an average power consumption of 225 W, the average power load of the servers in the WSC would be 45,978 × 225 = 10,345,050 W. This means that (13,793,400 – 10,345,050)/13,793,400 = 25% of the provi- sioned power capacity remains unused. The monthly cost of power for such servers, assuming $0.07 per KWh, from Figure 6.13, and 720 hours per month, is 10,345.05 KW × 0.07 $. KWh
------------- × 720 h =$521,390.
b. If we instead assume the nameplate power of the server to be 500 W, the crit- ical load power for servers would be given by 45,978 × 500 = 22,989,000 W. If, in actuality, the servers had an average power consumption of 300 W, the average power load of the servers in the WSC would be 45,978 × 300 = 13,793,400 W. This means that (22,989,000 – 13,793,400)/22,989,000 = 40% of the provi- sioned power capacity remains unused. The monthly cost of power for such servers, assuming $0.07 per KWh, from Figure 6.13, and 720 hours per month, is. 6.9 Assuming infrastructure can be scaled perfectly with the number of machines, the per-server TCO of a data-center whose capacity matches its utilization will not change. In general, however, it depends on how a variety factors such as power delivery and cooling scale with the number of machines. For example, the power con- sumption of data-center cooling infrastructure may not scale perfectly with the number of machines and, all other things equal, could require a larger per-server TCO for adequately cooling higher data-center capacities. Conversely, server manufacturers often provide discounts for servers bought in bulk; all other things equal, the per-server TCO of a data-center with a higher capacity could be less than that of a lower capacity.
6.10 During off-peak hours the servers could potentially be used for other tasks, such as off-line batch processing jobs. Alternatively, the operators could try to sell the excess capacity by offering computing services that are priced cheaper during the off-peak hours versus peak hours. Other options to save cost include putting the servers into low-power modes, or consolidating multiple workloads onto less servers and switching off the now idle servers. If there are certain classes of serv- ers that can more efficiently serve the smaller load (such as Atom-based servers versus Xeon-based servers), then they could be used instead. However, each of these options effectively reduce compute capacity available during the more idle periods. If the workload happens to have a spike in activity (e.g., a large news event leads to significant traffic during an off-peak period), then these options run the risk of not having enough compute capacity available for those spikes. Switching to low-power modes will allow the servers to more quickly respond to higher spikes in load rather than consolidation and shutting off of servers, but will provide less cost and power savings.
6.11 There are many different possible proposals, including: server consolidation, using low-power modes, using low-power processors, using embedded-class pro- cessors, using low-power devices such as solid-state disks, developing energy- proportional servers, and others. The challenges to many of these proposals is developing models that are detailed enough to capture all of the impacts of the different operational modes, as well as having accurate workload traces to drive the power models. Based on the proposals, some advantages include lower power usage or better response times. Potential disadvantages include inflexibility, lower performance, or higher CAPEX costs.
KWh
------------- × 720 h=$695,187.
For reliability, round robin scheduling will decrease the number of jobs lost due to machine failure (assuming machine failures occur on machines run- ning jobs). Placing jobs which must communicate with one another across many machines, however, may introduce new points of failure, such as net- working equipment. b. In general, the effect of round-robin scheduling I/O-heavy workloads will depend on how data is laid out across the servers and the access patterns of the workload itself. For example, if data are replicated across different serv- ers, the scheduling decision will have less of an effect on performance than if the data are partitioned across racks. In the first case, wherever a process is scheduled, it will be able to access its data locally; in the second case, pro- cesses must be scheduled on the same rack that their data is located on in order to not pay the cost of traversing the array of racks to access their data. c. Assuming the bandwidth available at the networking hardware used to connect the servers being used is limited, and the topology of the network used to con- nect the servers is tree-like (e.g., a centralized switch connecting the racks and localized switches connecting servers within racks), scheduling the jobs in a round-robin fashion at the largest scope (array of racks) can help balance the bandwidth utilization for requests across each of the racks. If the applications are network-intensive because they communicate with one another, however, round-robin scheduling will actually create additional traffic through the switches used to connect various servers across the racks.
6.14 a. Total dataset size is 300 GB, network bandwidth 1 Gb/s, map rate is 10 s/GB, reduce rate is 20 s/GB. 30% of data will be read from remote nodes, and each output file is written to two other nodes. According to Figure 6, disk bandwidth is 200 MB/s. For simplicity, we will assume the dataset is broken up into an equal number of files as there are nodes. With 5 nodes, each node will have to process 300 GB/5 = 60 GB. Thus 60 GB × 0.3 = 18 GB must be read remotely, and 42 GB must be read from disk. Using the disk bandwidths from Figure 6.6, we calculate the time for remote data access as 18 GB/100 MB/s = 180 seconds, and the time for local data access as 42 GB/200 MB/s = 210 seconds; the data must be accessed for both the map and the reduce. Given the map rate, the map will take 60 GB × 10 s/GB = 600 seconds; given the reduce rate, the reduce will take 60 GB × 20 s/GB = 1200 seconds. The total expected execution time is therefore (180 + 210) × 2 + 600 + 1200 = 2508 seconds. The primary bottleneck is the reduce phase, while the total data transfer time is the secondary bottleneck. At 1,000 nodes, we have 300 GB/1000 = 300 MB per node. Thus 300 MB × 0.3 = 90 MB must be read remotely, and 210 MB must be read from local disk. These numbers give the following access times: network. = 90 MB/100 MB/s = 0.9 seconds, and disk = 210 MB/200 MB/s = 1.05 seconds. The map time is 300 MB × 10 s/GB = 3 seconds, and the reduce time is 300 MB × 20 s/GB = 6 seconds. The bottlenecks actually remain identical across the different node sizes as all communication remains local within a rack and the problem is divided up evenly.
b. With 40 nodes per rack, at 100 nodes there would be 3 racks. Assume an equal distribution of nodes (~33 nodes per rack). We have 300 GB/100 = 3 GB per node. Thus 900 MB must be read remotely, and there is a 2/ chance it must go to another rack. Thus 600 MB must be read from another rack, which has disk bandwidth of 10 MB/s, yielding 60 seconds to read from a different rack. The 300 MB to read from within the rack will take 300 MB/ 100 MB/s = 3 seconds. Finally the time to do the map is 30 seconds, and the reduce is 60 seconds. The total runtime is therefore (60 + 3) × 2 + 30 + 60 =
server cost $2000, the “small” servers must be $857.20 (42% cheaper) or less to achieve a cost advantage. b. Figure 6.1 gives us an idea of the availability of a cluster of nodes. With 4,286 servers, we can calculate the availability of all nodes in the cluster. Looked at in another way, if we take 1-Availability, it is the probability that at least one node is down, giving us an estimate of how much overprovisioned the cluster must be to achieve the desired query rate at the stated availability. Extrapolating, we get the Hours Outage = (4 + 447 + 447 + 447) × 1 hour + (447 + 8929) × 5 minutes = 1345 + 781 = 2126 hours. This yields 75.7% availability, or 24.3% probability that a server is down. To calculate 99% cluster availability, or 1% probability that the cluster doesn’t have enough capacity to service the requests, we calculate how many simultaneous failures we must support. Thus we need (.243)^n = 0.001, where n is the number of simultaneous failures. Thus a standard cluster needs approximately 5 extra servers to maintain the 30,000 queries per second at 99.9% availability. Com- paratively, the cluster with “small” servers will have an availability based on: Hours Outage = (4 + 1041 + 1041 + 1041 × 1.3) × 1 hour + (1041 × 1.3 +
might look at the different types of workloads being run on his or her data center and offer as an option to his or her customers the option of using Flash memory to improve the performance of workloads which perform many ran- dom accesses to data. 6.18 a. For total storage capacity, let’s assume the average size of a Netflix movie is 75 minutes (to take into account some 30-minute television shows and 2-hour movies). 75 minutes in seconds is. Taking into account each of the playback formats, per title, the storage require- ments for each of the video formats is (^) +
= 2981.25 MB. Given that there were 12,000 titles, the total storage capacity would need to be at least 35,775,000 MB. We know that there were 100,000 concurrent viewers on the site, but we do not know what playback format each of them was streaming their title in. We assume
Figure S.1 Graph of latency, bandwidth, and capacity of the memory hierarchy of a WSC.
10000000
1000000
100000 Disk bandwidth (MB/sec)
Disk bandwidth (MB/sec)
DRAM bandwidth (MB/sec)
Flash latency (μsec) PCIe latency (μsec)
PCIe bandwidth (MB/sec) Flash bandwidth (MB/sec) Local Rack Array
Disk capacity (GB)
Disk latency (μsec)
DRAM latency (μsec)
10000
1000
100
10
1
0
DRAM capacity (GB)
75 m × (^60) m---s-=4500 s
⎝⎛ 500 Kb------s-^ ×^ 4500 s^ × 8 ----------------------------- ×1MB1000 Kb-=281.25 MB⎠⎞ ⎝⎛^1000 Kb------s-^ ×^ 4500 s^ × 8 ----------------------------- ×1MB1000 Kb-=562.5 MB⎠⎞^ ⎝⎛^1600 Kb------s-^ ×^ 4500 s^ × 8 ----------------------------- ×1MB1000 Kb-=900 MB⎠⎞
⎝⎛ 2200 Kb------s-^ ×^ 4500 s^ × 8 ----------------------------- ×1MB1000 Kb-=1237.5 MB⎠⎞
d. One alternative is to connect DRAM or other fast memories such as Flash through other device channels on the motherboard such as PCIe. This can effectively increase the capacity of the system without requiring additional CPU sockets. In terms of performance, such a setup would most likely not be able to offer the same bandwidth as traditionally-connected DRAM. Power consumption depends on the interface being used; some interfaces may be able to achieve similar power consumptions as traditionally-attached DRAM. In terms of cost, such a device may be less expensive as it only involves add- ing additional memory (which would be purchased in any event) without add- ing an additional CPU and socket to address that memory. Reliability really depends on the device being used and how it is connected. e. In case (1), co-locating the memcached and storage servers would provide fast access when data needs to be brought in or removed from memcached, however, it would increase the power density of the server and require more aggressive cooling solutions and would be difficult to scale to larger capaci- ties. Case (2) would require higher latencies than case (1) when bring data in or removing data from memcached, but would be more amenable to scaling the capacity of the system and would also require cooling less power per vol- ume. Case (3) would require very long access latencies to bring data in and remove data from memcached and may be easier to maintain than case (2) due to the homogeneity of the contents of the racks (hard drive and memory failures will mainly occur in one portion of the data center).
6.20 a. We have 1 PB across 48,000 hard drives, or approximately 21 GB of data per disk. Each server has 12 hard disks. Assuming each disk can maintain its maximum throughput, and transfers data entirely in parallel, the initial read- ing of data at each local node takes 21 GB/200 MB/s = 105 seconds. Simi- larly writing data back will also take 105 seconds, assuming the data is perfectly balanced among nodes and can be provided at the total aggregate bandwidth of all of the disks per node. b. With an oversubscription ratio of 4, each NIC only gets 1/4 Gb/sec, or 250 Mb/sec. Assuming all data must be moved, the data is balanced, and all of the movement can be done in parallel, each server must handle 1 PB/4000 = 250 GB of data, meaning it must both send and receive 250 GB of data during the shuffle phase (2 × 250 GB)/(2 × 250 Mb/sec) = 8,000 seconds, or 2.22 hours. c. If data movement over the network during the shuffle phase is the bottleneck, then it takes approximately 6 hours to transfer 2 × 250 GB of data per server. This translates to each 1 Gb NIC getting approximately 93 Mb/s of bandwidth, or approximately 10:1 oversubscription ratio. However, these numbers assume only the data is being shuffled, no replicas are being sent over the network, and no redundant jobs are being used. All of these other tasks add network traffic without directly improving execution time, which implies the actual oversubscription ratio may be lower. d. At 10 Gb/s with no oversubscription, we again calculate the transfer time as sending and receiving 250 GB of data. Assuming the server still has two
NICs, we calculate the transfer time as (2 × 250 GB)/(2 × 10 Gb/sec) = 200 seconds, or 0.06 hours. e. There are many possible points to mention here. The massively scale-out approach allows for the benefits of having many servers (increased total disk bandwidth, computational throughput, any failures affect a smaller percent- age of the entire cluster) and using lower-cost components to achieve the total performance goal. However, providing enough network bandwidth to each of the servers becomes challenging, especially when focusing on low-cost com- modity components. On the other hand, a small-scale system offers potential benefits in ease of administration, less network distance between all the nodes, and higher network bandwidth. On the other hand, it may cost signifi- cantly more to have a small-scale system that provides comparable perfor- mance to the scale-out approach. f. Some example workloads that are not communication heavy include compu- tation-centric workloads such as the SPEC CPU benchmark, workloads that don’t transfer large amounts of data such as web search, and single-node ana- lytic workloads such as MATLAB or R. For SPEC CPU, a High-CPU EC instance would be beneficial, and for the others a high-memory instance may prove the most effective. 6.21 a. Each access-layer switch has 48 ports, and there are 40 servers per rack. Thus there are 8 ports left over for uplinks, yielding a 40:8 or a 5:1 oversubscrip- tion ratio. Halving the oversubscription ratio leads to a monthly Network costs of $560,188, compared to the baseline of $294,943; total costs are $3,796,170 compared to $3,530,926. Doubling the oversubscription ratio leads to monthly Network costs of $162,321, and total costs of $3,398,303. b. With 120 servers and 5 TB of data, each server handles approximately 42 GB of data. Based on Figure 6.2, there is approximately 6:1 read to intermediate data ratio, and 9.5:1 read to output data ratio. Assuming a balanced system, each system must read 42 GB of data, of which 21 GB is local, 21 GB is remote (16.8 GB in the rack, 4.2 GB in the array). For intermediate data, each system must handle 7 GB of data, of which 4.9 GB is local, 2.1 GB is remote (1.9 GB in the rack, 0.2 GB in the array). Finally for writing, each system must handle 4.4 GB of data, of which 3.1 GB is local, 1.3 GB is remote (1.2 GB in the rack, 0.1 GB in the array). We will make the simplifying assumption that all transfers happen in parallel, therefore the time is only defined by the slowest transfer. For reading, we obtain the following execution times: local = 21 GB/200 MB/s = 105 seconds, rack = 16.8 GB/100 MB/s = 168 seconds, array = 4.2 GB/10 MB/s = 420 seconds. For intermediate data: local = 4.9 GB/200 MB/s = 24.5 seconds, rack = 1.9 GB/100 MB/s = 19 sec- onds, array = 0.2 GB/10 MB/s = 20 seconds. For writing: local = 3.1 GB/ 200 MB/s = 15.5 seconds, rack = 1.2 GB/100 MB/s = 12 seconds, array = 0.1 GB/ 10 MB/s = 10 seconds. The total performance is thus 420 + 24.5 + 15.5 = 460 seconds. If the oversubscription ratio is cut by half, and bandwidth to the rack and array double, the read data time will be cut in half from 420 seconds to 210 seconds, resulting in total execution time of 250 seconds. If the oversub- scription is doubled, the execution time is 840 + 40 + 24 = 904 seconds.
help provide a picture of what code is taking the most time. At a higher level, a tool such as sar or perf would help identify the time the system is spending in different states (user versus kernel) and on different devices (CPU, memory, disk, network utilization). All of this information is critical to identifying which resources are the bottlenecks. At an even higher level, a network monitoring tool at the rack switch level can help provide a picture of network traffic and how servers are sending and receiving packets. All of this information must be combined at a cluster level to understand the bottlenecks for each search. This high level tool would need to be implemented through a cluster-level profiler that can collect the data for each individual node and switch, and aggregate them into a single report that can be analyzed. c. We want to achieve an SLA of 0.1 sec for 95% of the queries. Using the nor- mal distribution to create a cumulative density function, we find that 95% of queries will require 7 disk accesses. If disk is the only bottleneck, we must have 7 accesses in 0.1 seconds, or 0.014 seconds per access. Thus the disk latency must be 14 ms. d. With in-memory results caching, and a hit rate of 50%, we must only worry about misses to achieve the SLA. Therefore 45% of the misses must satisfy the SLA of <0.1 seconds. Given that 45 out of the remaining 50% of accesses must satisfy the SLA, we look at the normal distribution CDF to find the 45%/50% = 90 th^ percentile. Solving for that, we find the 90th percentile requires approximately 6 disk accesses, yielding a required disk latency of 0.016 seconds, or 16 ms. e. Cached content can become stale or inconsistent upon change to the state of the content. In the case of web search, this inconsistency would occur when the web pages are re-crawled and re-indexed, leading to the cached results becoming stale with respect to the latest results. The frequency depends on the web service; if the web is re-crawled every evening, then the cache would become inconsistent every night. Such content can be detected by querying the caches upon writing new results; if the caches have the data in their cache, then it must be invalidated at that time. Alternatively, the servers storing the persistent results could have a reverse mapping to any caches that may con- tain the content. If the caches are expected to frequently have their contents changed, this scheme may not be efficient due to the frequent updates at the persistent storage nodes. 6.24 a. Let’s assume that most CPUs on servers operate in the range of 10–50% utili- zation as in Figure 6.3, and that average server utilization is the average of these values, 30%. If server power is perfectly proportional to CPU utiliza- tion, the average PSU efficiency will be 75%. b. Now, the same power will be supplied by two PSUs, meaning that for a given load, half of the power will be supplied by one PSU and the other half will be supplied by the other PSU. Thus, in our example, the 30% power load from the system will be divided between the two PSU, 15% on each. This causes the efficiency of the PSUs to each be 65%, now.
c. Let’s assume the same average server utilization of 30% from Part a. In this case, each PSU will handle the load of servers for a PSU utilization of
. At this load, the efficiency of each PSU is at least 80%.
6.25 a. In Figure 6.25, we can compute stranded power by examining the normalized power of the CDF curve for a particular group of machines when the CDF is equal to 1. This is the normalized power when all of the machines are consid- ered. As we can see from Figure 6.25(b), at the cluster level, almost 30% of the power is stranded; at the PDU level, slightly more than 80% of the power is stranded; and at the rack level, around 5% of the power is stranded. At larger groups of machines, larger oversubscription may be a more viable option because of the lack of synchronization in the peak utilization across a large number of machines. b. Oversubscription could cause the differences in power stranding at different groups of machines. Larger groups of machines may provide more opportuni- ties for oversubscription due to their potential lack of synchronization of peak utilizations. Put another way, for certain workloads, it is unlikely that all machines will simultaneously require their peak rated power consumption at the cluster level, but at the per-server (PDU) level, maximum utilization is a likely occurrence. c. From Figure 6.14, referenced in the case study, the total monthly cost of a data-center provisioned for peak capacity (100% utilization) is $3,800,000. If, however, we provision the data-center for actual use (78% utilization), we would only require N'^ = 0.78 N machines, where N is the original number of servers in the data-center and the new utilization of each machine is 100% (note that we could instead choose to use any number of machines between 0.78 N and N , but in this case we choose the minimum number of machines because server cost, CAPEX, dominates total cost). With fewer machines, most costs in Figure 6.14 are reduced, but power use increases due to the increased utilization of the system. The average power utilization of the data-center increases by 100% – 80% = 20%. To estimate the effect on TCO, we conservatively scale only the cost of server hardware and power and cooling infrastructure by 0.78 and the cost of power use by 1.20 to get a new monthly cost of operation of ($2,000,000 × 0.78) + $290,000 + ($765,000 × 0.78) + $170,000 + ($475,000 × 1.20) + $85,000 = $3,271,700, for a savings of $528,300 per month. d. Let’s assume there are X servers per PDU, Y servers per rack, and Z servers per array. At the PDU level, we can afford to oversubscribe by around 30%, for a total of ⎣1.3 X ⎦ – X additional servers. Similarly, at the rack and cluster level, we can afford to oversubscribe by around ⎣1.2 Y ⎦ – Y and ⎣1.05 Z ⎦ – Z servers, respectively. The total number of additional servers we can employ is given by (⎣1.3 X ⎦ – X ) + (⎣1.2 Y ⎦ – Y ) + (⎣1.2 Z ⎦ – Z ). e. In order to make the optimization in Part d. work, we would need some way of throttling the utilization of the system. This may require additional support from the software or hardware and could result in increased service times, or, in the worst case, job starvation whereby a user’s job would not be serviced at all.
16 ----- 6 - 2 2 = 3 --- 30% × 2 23 --- =80%
c. The per-server UPS likely has lower costs, given the cost of batteries, and reduces the total power needed by the entire facility. Additionally it removes a single point of failure by instead distributing the UPS. However, if the bat- teries cannot provide the other functionality that a UPS provides (such as power conditioning), there will still be a need for additional facility equip- ment. The management model likely becomes more complex, as the adminis- trators must manage as many UPS’s as there are servers, as opposed to a single facility-wide UPS (or two if redundancy is provided). In particular, they need to ensure that each of those UPS properly work, and message the server that the power has been interrupted in case special action must be taken (such as checkpointing state and shutting down servers).
6.27 a. Total operational power = (1 + Cooling inefficiency multiplier) × IT equip- ment power. For this problem, there is an 8 MW datacenter, with 80% power usage, electricity costs of $0.10 per kWH, and cooling-inefficiency of 0.8. Thus the baseline costs are Total operational power × electricity costs = (1 + 0.8) × (8 MW × 80%) × $0.10 per kWH = $1152 per hour. If we improve cooling efficiency by 20%, this yields a cooling-inefficiency of 0.8 × (1 – 20%) = 0.64, and a cost of $1049.60 per hour. If we improve energy efficiency by 20%, this yields a power usage of 80% × (1 – 20%) = 0.64, and a cost of $921.60 per hour. Thus improving the energy efficiency is a better choice. b. To solve for this question, we use the equation (1 + 0.8) × (8 MW × 80% × (1 – x )) × $0.10 per kWH = $1049.60, where x is the percentage improvement in IT effi- ciency to break even 20% cooling efficiency improvement. Solving, we find x = 8.88%. c. Overall, improving server energy efficiency will more directly lower costs rather than cooling efficiency. However, both are important to the total cost of the facility. Additionally, the datacenter operator may more directly have the ability to improve cooling efficiency, as opposed to server energy efficiency, as they control the design of the building (e.g., can use air cooling, run at increased temperatures, etc.), but do not directly control the design of the server components (while the operator can choose low power parts, they are at the mercy of the companies providing the low power parts).
6.28 a. The COP is the ratio of the heat removed (Q) to the work needed to remove the heat (W). Air returns the CRAC unit at 20 deg. C, and we remove 10 KW of heat with a COP of 1.9. COP = Q/W, thus 1.9 = 10 KW/W. W = 5.26 KJ. In the second example, we are still removing 10 KW of heat (but have a higher return temperature by allowing the datacenter to run hotter). This situation yields a COP of 3.1, thus 3.1 = 10 KW/W. W = 3.23 KJ. Thus we save ~2 KJ by allowing the air to be hotter. b. The second scenario is 3.23 KJ/5.26 KJ = 61.4% more efficient, providing 39.6% savings. c. When multiple workloads are consolidated, there would be less opportunity for that server to take advantage of ACPI states to reduce power, as the server requires higher total performance. Depending on the most optimal point to
run all servers (e.g., if running all servers at 70% utilization is better than half of the servers at 90% and half at 50%), the combination of the two algorithms may result in suboptimal power savings. Furthermore, if changing ACPI states changes the server’s reporting of utilization (e.g., running in a lower- power state results in 80% utilization rather than 60% utilization at a higher state) then opportunities to consolidate workloads and run at better efficiency points will be missed. Thus using the two algorithms together may result in information being obscured between the two algorithms, and therefore missed opportunities for better power saving. Other potential issues are with algorithms that may have conflicting goals. For example, one algorithm may try to complete jobs as quickly as possible to reduce energy consumption and put the server into a low-power sleep mode (this “race-to-sleep” algorithm is frequently used in cell phones). Another algorithm may try to use low-power ACPI modes to reduce energy consumption. These goals conflict with each other (one tries to use maximum throughput for as brief as possible, the other tries to use minimum acceptable throughput for as long as possible), and can lead to unknown results. One potential way to address this problem is to introduce a centralized control plane that manages power within servers and across the entire datacenter. This centralized control plane could use the inputs that are provided to the algorithms (such as server utilization, server state, server temperature, datacenter temperature) and decide the appropriate action to take, given the actions available (e.g., use ACPI modes, consolidate workloads, migrate workloads, etc.). 6.29 a.
0
100
200
300
400
500
600
700
0% 20% 40% 60% 80% 100%
Power (W)
Utilization (%)
Baseline Half idle Zero idle