HotCarbon 2023

Peeling Back the Carbon Curtain: Carbon Optimization Challenges in Cloud Computing

Jaylen Wang (Carnegie Mellon University); Udit Gupta (Cornell University); Akshitha Sriraman (Carnegie Mellon University / Google)

This transcript was made by AI. The open source speech recognition model Whisper (large-v3-turbo) transcribed the recording with faster-whisper. Names and technical terms were checked against the paper, but it can still contain mistakes. The recording is the reference.

0:00 Thank you, everybody. So today, I'm really excited to be presenting some of my work on understanding and overcoming obstacles related to server lifetime extensions, specifically those that support web services, and also some of the challenges that we found and think broadly extend in terms of measurement, and some of that has been kind of discussed in the first session, and I'd love to kind of dive into that as well. So, it's kind of not to kind of repeat what's been said before, but computing has a carbon catch, and that's what we're trying to address, in that it adds kind of already pressure to a scenario where we're already likely to overshoot the 1.5 degrees Celsius mark over pre-industrial levels, and in the most recent IPCC report, they make clear effects on migration to food production to species extinction.

0:44 And data centers, as has been mentioned, puts a big strain on this, where it contributes around 1% of global electricity usage and is projected to get up to around 7% to 10% by 2030. And so, this kind of just urgently points to the fact that we need ways to reduce these data center carbon emissions. Okay. So, what contributes to these data center emissions, then? What we can look at is we can look at data from Facebook's data centers from 2018, and we can see that operational emissions without using any renewables does dominate. But as kind of has been mentioned, as we move towards using renewables, embodied emissions really becomes kind of the major share. And so, what this points towards is that as renewables increase, embodied kind of becomes the limiting factor that needs to be kind of addressed today and more going forward.

1:36 And so, how do we actually lower these embodied emissions? One thing we can look at is we can look at kind of how servers are handled in clouds today, in that a server might be purchased at some point. It's often underutilized within the data center, but it'll go on to be used for one, two, and around three to five years, even though, I guess, as Daniel mentioned, these kind of lifetimes are something that we're still trying to look at. But at some point, it'll kind of be decommissioned, and it might be recycled or thrown away. But this is kind of where the new manufacturing emissions are incurred. And so, the point is that we must kind of extend these server lifetimes in order to kind of amortize the embodied carbon for longer and pay fewer of these manufacturing emissions.

2:22 So, then what can we look at in terms of what might drive these shortened server lifetimes? One thing we can look at is processor performance over time. So, just looking at a simple example, over these six years, you can see a 2x, over 2x application speed up. And so, this is something that's really important to data center operators, to any kind of service operators that they're going to want to take advantage of. And so, our goal is to try to figure out how can we still achieve acceptable performance on older hardware to kind of increase the server lifetimes. Okay. So, through this talk, what I'll first cover is kind of a characterization of server generations running different web services. And we find kind of a few operating regions where you can still kind of get use for older hardware.

3:05 And then secondly, we propose kind of a scheduler idea to kind of optimize specifically microservice placement on older hardware. And then finally, we want to kind of pose a discussion in terms of challenges in actually measuring carbon savings when you're factoring things like lifetime and embodied carbon. Okay. So, starting with the characterization, the first thing we wanted to see is how do end-to-end services perform on older hardware when compared to new. And so, what we did is we used DeathStarBench and an open source suite of microservices and distribute them across a set of new servers as shown in blue. And then repeat the same experiment for old servers as in green. And so, the results here are shown. So, on the y-axis, you have 99 percentile tail latency, lower is better.

3:48 And on the x-axis, you have different input rates for different request rates. And in the green, you have older server performance. And in the blue, you have newer server. And the red dotted line shows the service level objective as kind of defined based off of the performance of the newer server. And so, what you can see is that, unsurprisingly, the newer server performs better kind of across all loads. But there's a non-trivial kind of load period, specifically at low loads, where the older server can still kind of satisfy the SLO. And so, potentially, you can get away with using older servers. And using newer servers in this situation would actually might be a carbon inefficiency, as you could still gain useful lifetime from the older servers during these periods.

4:28 And so, with end-to-end services kind of characterized, we wanted to look at how to actually specific microservices, kind of taking advantage of the distributed model, perform on older servers. And so, starting with the same experiment, again, all new. But then we actually take a single microservice and then run it on a single older server, and then kind of compare the performance and repeat for all the microservices. And so, kind of same y-axis, same x-axis. The results here are shown. And the black line is what shows the performance of the all-new configuration. And then each of the other lines shows that kind of labeled microservice, that there's a subset of them, when that microservice is distributed on an older server. And what you can see is that some microservices are less tolerant to older server placement, but some are more.

5:14 And so, what this points to is that potentially placing all microservices on new hardware could be another carbon inefficiency, as we could have, again, gotten some useful lifetime by putting that microservice on an older hardware. Okay, so, with that characterization, moving on to the scheduler. So, the question then becomes, how do we actually then kind of take advantage and solve these carbon inefficiencies through the characterization? So, kind of the goal would be, given some application profiling, so getting these kind of load conditions and places where microservices can perform well on older hardware, taking load conditions and a set of hardware that you're trying to use, pass it into some system, and at the output, get out maybe instance capacities that you want to use, microservice placement, et cetera.

5:58 And so, what this points towards is some type of scheduler, but in particular, a carbon-aware scheduler. So, one that can, again, take in these inputs and be carbon-aware. And so, this just points to that we kind of need this intelligent carbon-aware scheduling. And so, this is kind of ongoing work that I'm trying to do. But one key point that can't be overlooked is, how do we actually measure the resulting carbon emissions of, like, a scheduler's decision-making? And so, this is very much an open question. And so, this leads into the last part of my talk, which is looking at challenges we face during kind of trying to measure our carbon and measuring the carbon emissions of the scheduler and how this kind of broadly impacts systems' carbon measurement in general.

6:36 And so, what we wanted to do is first look at kind of what methods exist currently to measure carbon impact. And so, we wanted to break it down first on the operational side and embodied side. And on the operational side, as was mentioned greatly in the first session, there are kind of different power meters you can use. And in terms of carbon intensities, you can sweep over different values, look at different kind of traces over time. And so, we kind of argue that operational in general is a bit easier. But embodied is kind of where things are still in flux, and there have been questions today that have kind of showed that there's a lot of work that's needed for this. We kind of break it down into three methods that we've seen.

7:14 But there's kind of some lifetime mass-based embodied accounting that is kind of workload agnostic. Then, secondly, there's kind of focusing on the workload, doing this kind of time-sharing and time-slicing that we've seen in terms of looking at a workload's time it takes, and then apportioning the embodied carbon across that. And then, finally, you have kind of a more metric-driven approach where you're trying to maximize the number of workload runs you can do within the lifetime, and then also kind of saying that embodied carbon in the second lifetime is zero. So, what we find is that, okay, we can use these existing methods to maybe evaluate whether our scheduler actually comes out in the green in terms of actual carbon savings. And so, that's what I set out to do.

7:54 So, what I took is a situation in which, let's say we have a set of old servers that we're using, now old servers that we're using to service our workload, and basically at the end of a refresh cycle. So, we're looking to buy some new servers to improve the performance of our service. And so, the first option is kind of the option that's maybe more naive. So, using no scheduling, we can use all new servers, just kind of refresh the entire fleet. The second option is that maybe with scheduling, kind of with the smarter scheduling that we propose, you can maybe get away with using one older server, so buying one fewer newer server. And so, each of them kind of has their own carbon benefit.

8:32 So, the first, as mentioned before, is that newer servers generally have better energy efficiency, but the bottom case saves the embodied carbon of the new server. And so, the question then becomes, does it actually save carbon by going from the top to the bottom? And so, using existing methods, we actually find that in cases, especially with renewables, the energy efficiency, the boost in energy efficiency doesn't outweigh the actual embodied cost of the server. And kind of with kind of this first pass, using the measurement methods, we find around like a 3.5% savings per server that you're able to keep around through the lifetime. And so, while there's a lot more work that needs to go into this, this just points to the fact that lifetime extension is promising in terms of saving carbon.

9:16 But the question then becomes, using existing methods, they're not perfect. And so, going back to the embodied methods in particular, they fall short in a number of ways. And so, some things you want to outline is that, first of all, they all kind of use static lifetime. So, you can see they all are kind of, they all utilize a lifetime-based approach. But the lifetime is something they'll take, for example, three, four, five years, something that they use statically. They maybe sweep it, but it doesn't depend on factors that might actually impact the lifetime. So, in terms of your system decisions, they might impact reliability. It might impact performance. And these are all things that should go into the lifetime and that your lifetime that you're including in your metric should adjust for.

9:55 Secondly, they rely on accurate and open LCA's, lifecycle analyses. And these are things that are still not entirely open to the research community. And that's not to their fault, but that's something that needs to be addressed. And finally, they also don't attract kind of a nuanced thing where, for example, if you're taking kind of a public cloud approach, if you're putting more demand on maybe older VMs, there needs to be a further understanding of how that actually impacts downstream embodied costs in terms of server procurement and et cetera. There's more in our paper that we outline, and so I definitely recommend you taking a look. But in general, we pose that future research really needs to rely on these better metrics. And so, as a kind of a first-order priority, we need to kind of get a hold of what's going on here.

10:40 And I'd love to talk further with people and get started on brainstorming on that. So, with that, that's my presentation. And thank you so much for listening. And, yeah, I'd love to take a question or two. All right.

10:58 Thanks, Brian. Nice talk, Jaylen. Excellent, super interesting work. It seems like one of the things you've shown is that it's possible to take, say, microservices and run them on old processors and still meet quality of service requirements. But doesn't that implicitly drive a faster growth rate, in some sense, in the power per unit service delivered by the cloud? When we did a study a couple of years ago to find out why people were still upgrading in this, you know, latter stages of Moore's Law and so on, we found that the primary reason data center folks were upgrading were performance density, right, per unit space, and energy efficiency. So, your formulation seems to require that the power growth of the cloud, which is already very fast, right, is going to be accelerated by this lifetime extension.

11:43 Is that right? So, your question is, like, how do you kind of reason about the balance between kind of power growth, but maybe you're saving in terms of, like, are you taking, like, a cost approach or literally just power density within the, like, right, yeah, right, right, yeah. So, there's kind of, that's what I kind of tried to show with what I did for my initial calculation, is that there's this kind of tradeoff between, yeah, like, higher operational emissions and operational power and kind of the embodied cost. If you kind of wanted to put it all together, you would try to create some type of cost model between the two and try to balance that. But what we found, at least from an emissions perspective, we didn't, obviously, we don't have a full cost model, is that you can actually come out in the green in terms of saving the embodied cost of preventing kind of buying a new server.

12:39 Did you equate them, right? This is, I mean. Did you equate embodied carbon and operational carbon in units of carbon? Yeah. So, that's related to the comment that we were talking about. Right. But taking over the lifetime of the server, I guess, sure. I think that's a good question in terms of when it can and maybe cannot be equated. If you were to derate by some other factor, not one-to-one, but three-to-one or something like that, then you might have a very different result. Is that fair? Yes. And I think that's something that I think is, again, I think that kind of drives into this better metrics approach and that you would, this is kind of an optimization problem. So, the optimization would be driven kind of by whatever metric you're looking at, however you're trying to balance it, and then kind of where the break-even point, that would kind of depend on what you would be using.

13:25 So, we've got time for one or two more questions. Got any? More of a comment to Andrew's question. I suppose you could run the depreciated service, the old ones, only when your operational carbon is zero. So, basically, when you're… Yeah, so that's another thing in that, basically, yeah, I think like in kind of production or the way the scheduler would work is it would try to record like carbon intensities because that would kind of impact, again, kind of the relative weighting of like where that break-even point would be. And so, maybe you could be more aggressive in terms of scheduling on older servers at certain periods where maybe carbon intensities are lower and then be less aggressive at other points. So, that's that by consideration, yeah.

14:20 Okay, question from Tamar. And just a note, while this question is being asked, could our next speakers please prepare? Yeah, the question is, how did you get to the numbers in the second chart that shows that in the future, it's going to be 83%, I believe, embodied carbon? So, those are numbers I'm actually pulling from a previous paper from Udit Gupta et al. from 2018, but I think those are numbers published by like Facebook, so I'm not sure. So, it's Facebook-specific or is it more about the industry, the ICT industry? Is it Facebook-specific? It's Facebook-specific, yeah. Because that will not reflect the situation for any owner of a data center for that because no one has the money that Facebook has to buy their own, you know, farms, to build their own wind farms and so on.

15:16 So, it's very, so this result is very specific to Meta. I think, I mean, I think Daniel kind of pointed the same, similar point in the previous. So, I think it maybe is something that reflects like to large hyperscalers specifically, but hyperscalers still drive a large portion of the workloads that are running today and are continually increasing in terms of their loads. So, I think that's a fair point in terms of these types of optimizations might not work kind of across like computing platforms, but in terms of maybe at the hyperscaler level, it's something that is definitely pertinent.

15:53 All right. With that, let's, if you have any questions, save them for the session at the end. Otherwise, let's thank our speaker. Thank you.