Towards Application Centric Carbon Emission Management
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 Good morning, everyone. My name is Sudarsun. Today, I'm going to present our ongoing work on application-centric carbon emission management. This is a joint work with my colleague, Uli, at Rutgers. So, first thing I want to kind of bring in is, like, today's data-intensive applications require more and more computing resources. For example, large-scale recommendation systems today require memory in orders of terabytes. And it's obvious that, as you kind of keep increasing memory, both the embodied as well as the operational carbon footprint is bound to increase. For example, a recent report from Micron says that for every 8 GB of DDR3 or DDR4, it would probably require 3 watts of power, and that would also lead to around 0.6 kilograms of carbon emission per GB of memory.
0:51 So, in general, however, reducing carbon, reducing DRAM capacity is not a straightforward solution, because it has correlated impact on runtime and CPU carbon footprint, which is what is going to be one of the focus of this talk. Also, the resource usage, in general, specifically DRAM, and carbon emission, also is non-linear. So, in this talk, I'm just going to focus on the impact of DRAM capacity assigned to individual applications. So, with focus on memory, one important challenge is to understand when enough is enough. Applications need more and more memory. You give more memory, and applications are going to take it. So, with carbon footprint as a main metric, we want to focus when do we kind of stop, such a way that the performance is not significantly impacted.
1:48 So, to kind of give a brief background of different works in kind of like carbon footprint, the architectural community has been pointing a lot of interesting research on hardware design and architectural innovations. Specifically, for example, some of the works on low-power processors, energy-aware memory systems, there's a lot of focus on how to kind of change some of them towards more carbon-centric computing.
2:15 Similarly, there's a lot of work on energy-efficient resource allocation, addition to talks that we have listened to today. The focus is how to optimize the resource allocation. So, the question is, can we directly take some of this work and apply it towards reducing carbon footprint also?
2:31 For example, a recent US EPA Energy Protection Agency report says that for every kilowatt hour of energy consumption, the carbon emission increases by 0.433 kilograms. This includes both a combination of dirty as well as clean energy. And we believe factors like this are kind of critical when we actually understand the actual energy consumption, actual carbon footprint cost.
3:00 Finally, there's a lot of work on like dynamic power management techniques. The question is, can we take some of this and kind of apply it towards carbon footprint? So, this work, we're going to kind of focus more on kind of like taking some results from prior work on architectural carbon modeling and see how can we kind of improve it further. So, for example, a very recent work at ISCA'22 focused on how to design better architectures and hardware design, specifically with carbon-centric model. The primary goal was, can we take different architecture processor technologies, memory technologies, and kind of understand their overall carbon footprint for a specific hardware? One of the key kind of contributions of this result was to kind of like develop a very simple model that also included both operational as well as embodied carbon footprint for every hardware.
3:54 So, here is a very simple equation that takes OPCF, which represents the operational carbon footprint, and ECF, which represents the embodied carbon footprint, and attributes it to an application, a runtime, as well as the lifetime of the overall hardware.
4:11 One of the conclusions in this work and prior work has been that embodied carbon footprint can be something sometimes larger than operational footprint. But we, to some extent, kind of like we found something that it depends on what is your source of your energy. If your energy is completely clean, maybe this, at least for the operation, this could kind of hold true. But otherwise, we find that this is not always true.
4:38 So, with that, what we need today is a more application-centric analysis of carbon footprint. What do we really mean by that is that we need to charge both the operational and embodied carbon footprint for every application on the lifetime, including the lifetime of the hardware. For example, for every application, we need to account for different hardware used, which includes both embodied and operational carbon footprint. You probably also have to understand the correlated impact. For example, if I reduce DRAM capacity, what happens to my CPU footprint, and what happens to my overall runtime of my application?
5:16 Finally, there are other complex issues also. How do we attribute these factors for, like, shared hardware? For example, when applications share memory. And similarly, softwares also kind of consume kind of carbon footprint. So, what about the OS? So, I am not going to talk about the last point today in this talk in the interest of time.
5:38 So, I will start with a very basic application-centric model, specifically with focus on CPU and DRAM, because that is kind of the focus of this talk. So, here is a very simple equation that takes both CPU and DRAM, and it attributes the runtime, the overall hardware lifetime, and the operational and the embodied cost.
6:01 Now, with respect to kind of, like, DRAM specifically, if you take DRAM energy as kind of a factor, it is a factor of the memory size times the power per GB times the runtime. And if you look at this, and for the operational carbon footprint of a DRAM, the source of energy seems to be a very important factor. For example, when we started modeling this, depending on the value that you choose, the cost of DRAM carbon footprint or the CPU carbon footprint can significantly increase or reduce. And we believe that that's something as a community that we need to probably discuss even further. So, instead of kind of going through the model a little bit more in detail, you can look at the model in our paper.
6:44 We wanted to kind of understand how do applications react for different memory capacity on first on runtime, and their kind of correlated impact on CPU carbon footprint. So, for our study, we considered two data intensive applications. One is RocksDB and Graph500. In the interest of time, I am only going to present RocksDB today, and for more Graph500 results, you can look at the paper. So, for our analysis, we use RocksDB, which is the reason why we picked this application is that it's a widely used key value store. It's CPU, memory, and IO intensive. It directly benefits from a lot of in-memory caching. And generally, in large-scale systems, it's configured in a way that the memory capacity is significantly smaller than the actual database size. For our analysis, we kind of picked a bunch of hardware and energy and carbon parameters.
7:45 Most of these parameters have been kind of obtained from prior work and large-scale governmental agency reports. For example, this value of like how to kind of convert energy to carbon conversion, which we apply for both operational as well as embodied carbon footprint, comes from the US EPA report, which is also to some extent average on both dirty and clean carbon emission.
8:10 So, for our experimental platform, we choose a dual socket platform with around 120 GB of DDR4 DIMM and a terabyte of NVMe. For our analysis, we use RocksDB, which is a widely used key-value store. We generate around 40 million keys totaling up to like 120 GB of data. And this application runs for close to an hour. So, if you assume that all the data kind of completely fits in memory, for example, if I run RocksDB and generate 120 GB of data, and if everything fits in the memory, this application is obviously going to be like an in-memory key-value store and going to run faster, but we are going to vary the memory capacity and understand the sensitivity.
8:55 So, first to understand the runtime, we consider two access patterns, and we believe access patterns are very critical when understanding the energy overheads. On my x-axis is the memory size that we use for different application runs. We start reducing the memory gradually from 120 GB of memory to 20 GB of memory. The y-axis shows the application runtime. So, the first thing that you can observe is that, sorry, the first thing that you can observe is that for sequential access patterns, although we are using a large database, even with a memory capacity that is one-sixth of the total database size, the runtime is not significantly impacted. That's because thanks to like IO caching and prefetching in modern OS, when you're doing pointed sequential queries, most of the data can be quite found in your actual memory.
9:47 So, the impact on memory is not that significant. So, that's a good news with respect to reducing carbon footprint. Now, with respect to random access, where your application is randomly accessing data, if everything fits in memory, your application is going to run faster. But as you see that once we start reducing the memory size, your application runtime increases. But the most interesting part is somewhere around 60 to 20 GB, where the application becomes extremely IO intensive, not able to find the data in memory. But overall runtime of the application does not increase significantly, which means that there is some kind of interesting data points where we can focus on like reducing carbon footprint.
10:31 Now, to understand this impact on the actual carbon footprint, I'm using the same workload. On the x-axis, we are reducing the memory all the way from 120 GB to 100 GB. The y-axis shows the CPU carbon footprint. And to some extent, the CPU carbon footprint follows the actual runtime. So, first, with sequential access workload, there is less impact on the CPU carbon footprint. With random access workload, as you can see, beyond, say, for example, when the memory is reduced beyond 80 GB, from 60 to, say, 20 GB, the runtime is not significantly impacted. As a consequence, the CPU carbon footprint is also not significantly reducing. Of course, one could argue that maybe we could apply techniques like energy scaling and so on and reduce the energy of the CPU.
11:25 But most of the prior work has shown that these applications, although are IO intensive, are also compute intensive. So, there is kind of some trade-offs on how much CPU energy can you reduce. Now, the DRAM carbon footprint is a little bit more interesting. So, it's the same kind of, like, experiment. On the x-axis, we vary the memory capacity from 120 GB all the way to 20 GB. The y-axis shows the DRAM carbon footprint. With sequential access, it's quite kind of, like, expected that if you can significantly reduce your memory capacity, then both embodied as well as operational carbon footprint can significantly reduce. And that's why you kind of see, like, up to, like, 5x reduction in the carbon footprint for sequential access. For random access overall, let's say if I use all my memory, your application is going to run significantly faster, but we believe it's kind of a hypothetical kind of setting.
12:25 But until 80 GB, your memory capacity is large enough, which means your embodied and operational carbon footprint is higher. And the overall run time is also larger. But if you kind of keep reducing the memory capacity from, say, 60 to 20 GB, then you can see, like, there are benefits in reducing DRAM carbon footprint without significant impact on the application runtime. So, more generally, we're not saying that this is going to kind of match every application, right? But in general, there is an inherent tension between, like, the actual run time and choosing DRAM capacity configuration, and it requires more work. In the interest of time, I'm not going to kind of go over the other results and show that the overall carbon footprint, I'm happy to talk later.
13:13 But based on this analysis, our future work is kind of focusing on two directions. As a lot of prior kind of talks have kind of focused, the first thing that we want to kind of focus is on redesigning both run time and operating system. More specifically, we want to kind of, like, focus on designing application or run time level configuration selectors. Basically, we want to kind of identify right configuration that's suitable for that specific application that does not impact the runtime of application too much, but also does not increase the carbon footprint. And possibly, an operating system global configuration selector that somehow manages the trade-offs across multiple applications. other work in parallel direction is that so far I have only focused on CPU and DRAM carbon footprint, but there's a huge amount of heterogeneity in systems.
14:03 That's heterogeneity both in the software, GPUs, and different types of memories and storage, but also there is software heterogeneity in terms of driven, different drivers and operating system layers managing this. So the challenge here is that with increasing heterogeneity, our configuration space to identify right configuration becomes more harder. So the goal is to find some carbon minimum configuration that does not significantly impact the runtime.
14:32 Finally, to kind of conclude, so in this kind of like talk, I've focused on specifically on reducing DRAM carbon footprint, and we have kind of looked at that the memory access patterns makes a big difference in terms of like carbon reduction, the overall carbon reduction. We've also shown that there is kind of non-linear relationship between the DRAM, overall DRAM capacity and overall carbon emission. And finally, unlike prior studies, we also observed that based on what is your source of your carbon, your energy, this can significantly kind of change the balance between embodied and operational carbon footprint. With this, I'm done. I'm happy to answer questions. Thank you.
15:43 Right. The runtime doesn't, the capacity is not reduced so much that the runtime is still high. So right now, the way we have kind of designed this model is basically taking an application and saying how much time the application really used the hardware and kind of like taking into consideration its contribution to both the operational and carbon footprint. So which means we are not kind of considered a system where like your application is not running and the system is idle. But that's a good question. Let's say what happens if an application is scheduled and it's not doing if that's what is your question. Right.
16:40 Right. So right now we are just looking at focusing on let's say I take an application provisioned in a cloud data center and it runs for it. How do we attribute both the embodied as well as operational carbon footprint to that application? Once the application is done, we are not accounting that. But that's a good question. How do we kind of like more kind of attribute also the idle time embodied carbon to all the applications more generically? So that is something that we have to kind of examine. Yeah.
17:41 No, that's a good point. Like for memory, the number of accesses, the lifetime is between 10 to 10 power 12 to 10 power 17, which means the number of accesses, you can kind of guarantee the wear and tear of the device beyond which the reliability of like DRAM is not safe. So if you're going to do less accesses, which means less data, the lifetime of the device is also going to increase.
18:08 Right. And yeah, so that's something that we have not looked at like what is the impact of cache where I don't have to kind of go to DRAM how cache sensitive my application is. But yes, that's something that we still yet to explore.