The Illusion of Reduction: How Software Carbon Metrics Mask Global Footprints
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:01 So, next up, we have Prateek Sharma presenting the work, The Illusion of Reduction, How Software Carbon Metrics Mask Global Footprints. Thank you. Thank you. So, the people responsible for this, along with myself, are Abel Souza, who's somewhere in cyberspace on Zoom, Mohammad Shahrad, who is in the back, and Changyuan Lin from British Columbia. This talk will focus on carbon metrics and how sometimes, in some situations, they can provide a misleading idea about the impact of various carbon optimizations. So, you know, this is the fifth year of HotCarbon, and I would say that the last five years have been pretty good for green computing. There has been a surge of interest, and I claim that a big part of this increase in interest is that we have new metrics, right?
0:56 We have gone sort of beyond energy, right, to have metrics like SCI or software carbon intensity. So, you take energy, combine that with the grid carbon intensity, which is a nice dynamic parameter to obtain operational carbon. And the last few years, we have been looking at embodied carbon and factoring that in into the total application carbon footprint. So, these metrics are widely used for all kinds of reporting and compliance and dashboards, and also from a systems research perspective on, you know, trying to understand and analyze various pieces of our cyber infrastructure. So, importantly, this talk will focus on how these metrics are related with the operational optimizations, right? So, once the infrastructure is in place, you can do a lot of software optimizations to reduce the carbon footprint, like right-sizing and temporal and spatial shifting, et cetera.
1:56 But the application is running as part of a larger system context, right? It sits underneath some middleware and data centers and cloud platforms. And so, any intervention that you may perform at the application level or a subsystem level, here we call that a local change. So, Delta C of A may be different from the global change that you observe of the carbon change at the system level. So, that we call as Delta C of S. And, you know, for this talk, I hope to sort of convince you that, you know, sustainability is inherently a system-wide property, right? And so, we should perhaps care a bit more about the latter global change, Delta C of S, instead of just always looking at the application level micro view.
2:51 And so, from that perspective, we take more of a causal profiling perspective to see, look, how do current metrics like SCI, how do they affect the causal strength of the application level versus the system level footprints? And how do they change as a result of various common optimizations? So, this work is, you know, highly influenced by classic causal profiling from performance, right? Where we know that in large, complex distributed systems, improving the performance of one component may not necessarily improve the performance of the overall system. So, in this simple example, multi-thread application, you make some code improvements to optimize one thread. And if all those three threads are behind a barrier, your end-to-end latency will not change. So, similarly, you know, carbon is a much more holistic metric.
3:42 It takes into account this embodied factor. And so, our investigation started with this promising insight. Okay. So, the first part of this talk, I will focus on trying to show through some simple constructions and empirical data, some examples of inconsistencies and anomalies that may arise, where the local change in carbon footprint may diverge from the global change. And in the latter part, so the spoiler alert, we have no good answers to this, but at least a first point of discussion for the community, to understand what SCI is missing and one of our proposed fixes, which is these carbon footprint context cards. Okay. So, let's begin with a very simple example. We have one VM running on one server. The VM is allocated exactly half of all the server's resources, half the number of CPUs, cores, memory, IO, et cetera.
4:46 So, C of A is going to be the operational part of the application plus half of the embodied, half of the server's embodied footprint. And C of S is the system footprint here. It's going to be larger because it has the unallocated embodied footprint as well. So, now, let's say we do right sizing, right? So, magically, we sort of run the VM on a server exactly the size. So, in this case, what happens, the application footprint remains the same. Nothing in it has changed, the operational or the embodied part, but the system-wide footprint does drop here. So, this is the first example of sort of non-conservation of carbon, right? So, we have made an intervention and the system-level footprint has dropped, which is good. This is what we want, but the application footprint has not changed, right?
5:41 So, this is one example of this incentive misalignment where the application does not have the right incentive to take part in this optimization. So, I think that carbon conservation is a very nice property to have, right? If we did have that, it's useful for validating carbon footprints. Depending on the context, either the application level or the system-level footprint may be easier to measure. And then you can validate the other footprint using that. It also gives us causality, always, if we could always have carbon conservation. So, I can see some, you know, gears turning in your head, perhaps, that the crux of the issue is that this is happening because of the gap between the resources is allocated to applications versus what is actually being used, right?
6:31 And SCI focuses on resource allocation and not use. Now, you could close this gap with some kind of reclamation mechanisms, right? Of course, but this depends on the abstraction that the application is being deployed under. So, you know, either VMs or deflatable VMs, containers, serverless functions, each have different capabilities and overheads with this reclamation. And in large-scale systems, these kind of resource holes are pervasive and unavoidable. You know, when multidimensional bin packing, you will always end up having some stranded resources. And these holes can also arise as a result of optimizations themselves, right? So, if you do some kind of consolidation, you may still end up having the same number of unused resources that you had earlier. So, this is one example of the sunk carbon fallacy from a couple of years ago.
7:23 All right. So, that was the first scenario, an example of misalignment. Let's look at a second scenario. So, here, again, very simple batch application, runs for time T, consumes constant power W, right? And the area here is the total energy consumed. So, now, we're going to do, we're going to reduce the, we're going to do parallel descalings. That means reduce the number of parallel cores or whatever such that the total power consumption drops down to W by 2. So, half the power. Because of Amdahl's law, this application is going to run for time 2T minus S, right? So, it's going to have, so, the red is a smaller area, a slightly smaller area. So, and it's using less energy. So, that's good. So, which means that our operational emissions have decreased.
8:16 But now, I need to think of this in a car analogy perspective, right? So, the blue thing is you're driving fast. You're having a higher miles per, you're having a lower miles per gallon and you're reaching your destination faster. And the red case is you're using a more fuel efficient car, right? Which is having less emissions. But if you consider the embodied, if you add the embodied cost into the mix, because you're spending less time in your fast car, you get less, you get charged less for that, right? Sort of counter-intuitively. So, this shows the sort of a skewed trade-off between time spent on a resource versus the resources that you're actually using, right? Because you're having time in both the embodied fraction, in both the embodied component and the operational component, we sort of have this time double counting aspects.
9:14 So, this sort of incentivizes using and provisioning more than larger hardware, right? And using them for shorter periods of time. And it also incentivizes using abstractions like serverless computing, which deallocate resources after every request. So, even though the operational efficiency of serverless applications may be lower, because of SCI-like semantics, they may end up having lower footprint compared to always-on services, even though the operational part is the same. Okay. So, now moving on to what happens when we look at the operational component of footprints. And here we are going to focus, you know, mainly on the energy consumption, keeping the grid intensity constant. So, even within a single server, of course, we have power that flows through various power conversion units with their own efficiencies and inefficiencies and nonlinearities.
10:12 Now, typically or conventionally, it's easier to measure power at the smaller scales like the CPU in comparison with the larger server or the rack scale. But sort of this has a trade-off here, right, because the energy measurement boundary of what you decide to measure your energy at, that will determine both the absolute value as well as the relative change after optimizations, as I'll show in a bit. A lot of these power conversion components also have, you know, nonlinear efficiency curves. So, for example, the power supply unit has this inverted U-shape where at lower output loads, it has lower efficiency. So, in some cases, you may implement some energy saving optimization that may push your power supply unit to a more inefficient state and you may end up losing a lot of what you had initially thought.
11:08 So, to illustrate this a little bit further, here's a simple scenario. This is one desktop, it's running a kernel compile. It has three phases. In the first phase, all CPU cores are being used. The two lines to consider and pay focus to focus on is a blue line which shows the CPU power consumption measured using RAPL and the red line which shows the system-level power consumption, which is at the power supply unit. Right? And then the system moves to an idle state. And so, if you want to look at what is the power consumption of this workload at full utilization, if you just look at the CPU-level power difference, we get 20 watts. If you look at the server-level power consumption change, we get a change of 60 watts.
11:54 Right? So, this is 20 watts that the CPU consumes, plus, as we found out here, a lot of the cooling overhead. Right? So, the cooling fans kicked in for this workload. So, this is classic trade-off here. Yes, CPU-level power, easy to measure, but can mask a lot of the other overheads that are there. Just to sort of emphasize this point further, if you look at other sort of multi-tenant interactive workloads, so, in this case, we have, you know, four functions running. Again, at lower utilization, you have higher footprint because the idle overhead has to be amortized. And then, as the load increases, at the extreme right end, the energy footprint increases again because of the cooling tax and the frequency scaling, which is nonlinear. Right?
12:50 All this to say that the system load is an important piece of context when looking at these footprints and seeing what changes may occur. All right. So, coming to the metrics, right? So, SCI has, or SCI-like approaches which combine the operational and embodied have become very popular and rightly so. You know, it's fairly minimal. It's easy to implement, easy to measure and report. You get one nice number. But on the flip side, it is under-specified. You know, it leaves a lot of important contextual assumptions to the user, right? And everybody makes these assumptions implicitly and may not always report them, right? So, we think that there are four important missing pieces of what the workload model is that has a big impact on the footprint, the system elasticity of both the system and the workload, what the measurement boundaries are for the power measurements and the load of the system.
13:59 So, if we were to incorporate this additional metadata into our carbon reporting, it would at least help us contextualize what the numbers we are reporting. Right? So, how do we do this? Here's one possible way. We could have carbon reporting levels. So, level one is just the SCI number. And level two is SCI plus some additional metadata that the user has access to. Level three could be that plus what the resource provider can provide. And finally, perhaps, some more standardized or machine-readable and machine-comparable standards for comparing footprints. So, you know, inspired by things like artifact evaluation checklists and machine learning model cards and nutrition labels where providing such context is important, you know, we think this carbon footprint context cards might be one way to provide this context.
14:59 This has six dimensions for the user to fill in when they report the carbon number. From the embodied attribution, who is responsible for unallocated resources, what the measurement boundary is, how the shared components are attributed, and so on. And for each, we have some common options that the users can select. Like, for example, for the embodied attribution, it can either be proportional to the allocation or the usage or some other mechanism. Okay. So, to conclude, I think that all of us here want to reduce the global carbon consumption, the system-wide carbon consumption. But local interventions may not always lead to the same linear response that we hope for. And metrics play a large role in how we think about optimizations and how we evaluate them.
16:06 And so maybe, and because SCI has these edge cases which lead to this misaligned incentives, perhaps adding context would be the first step towards fixing some of these issues. Okay. So, with that, you know, the goal is, you know, to make carbon metrics and optimizations more actionable and comparable. But first step, we need context. And context cards, perhaps, could be the first step towards this. Looking forward to more discussions as to what dimensions are also important and what can be added. And so happy to have the discussion here and answer your questions and comments. Thank you. Yeah. I think that's asking a lot of right questions. One question that may be hard is the one of incentives. Like, you know, you're talking about, let's add more context.
17:13 But there is, for example, thinking of a cloud provider perspective. If you do, say, I don't know, serverless computing, it's hiding a lot, right? And so how do you conciliate, like, exposing this context but at the same time not revealing the, because by hiding the provider has flexibility to do very different things, right? So how do you conciliate these things? That's a tough question. So that's a trade-off here, right? Like, how many, and we discussed a lot about this, like, you know, how many more dimensions do we need? We can make this super fine-grained, but we want to keep this minimal to an extent. Perhaps I think the important or some of the important properties are the system elasticity, right? Which is something that the providers would have to provide.
18:07 Meaning, you know, what the workload pressure is and how elastic the system itself is in terms of scaling up and down hardware resources. I think with those two things, it should be enough to disambiguate at least these classes of issues. But you're right. There's a lot of underlying context and comparing across two different providers and numbers from two different providers will expose a lot more of those challenges. Yeah. So what do you think that researchers need to do with this kind of context card and how does it fit towards this whole system-level optimization? Right. So I think the first step, if we could make some conscious efforts to, you know, just as we do with artifact evaluation, you know, what are the assumptions? What are the inputs?
19:07 If we could provide some inputs in our research, then that would be a first step. And second, of course, you know, please suggest what kind of other questions and what things are missing and how we could eliminate some redundant questions here perhaps or make this process easier and simpler for everyone to adopt. Yeah. This is our first step. We're here to solicit and start the community discussion of what that would look like.