Treehouse: A Case For Carbon-Aware Datacenter Software

Thomas E. Anderson, Adam Belay, Mosharaf Chowdhury, Asaf Cidon, Irene ZhangACM SIGEnergy Energy Informatics Review 2022 · DOI

TL;DR

The exponential growth in datacenter energy consumption, driven by the end of Dennard scaling and increasing demand, is unsustainable. This paper proposes "Treehouse," a software-centric approach to make datacenters carbon-aware by providing developers with fine-grained visibility into energy usage and enabling informed trade-offs between performance and carbon emissions.

What Problem Does This Paper Address?

The paper tackles the growing environmental impact of datacenters. As Moore's Law slows and Dennard scaling ends, the energy efficiency gains that once automatically offset increasing demand are diminishing. Datacenters already consume a significant portion of global electricity, and this trend is projected to worsen. Current systems lack mechanisms to track and control carbon emissions at the application level, making it difficult for developers and operators to make energy-conscious decisions. This is exacerbated by the fact that optimizing for energy efficiency often comes at the cost of performance, and there's no standardized way to manage this trade-off. Furthermore, the static provisioning of resources in current cloud environments leads to inefficiency and energy waste, especially for applications with bursty workloads.

Methods

Treehouse introduces three foundational software abstractions to address these challenges:

  • Energy Provenance: This mechanism tracks both direct and indirect energy usage of an application. It aims to provide developers with visibility into the full lifecycle energy footprint, including usage by the operating system, storage, network, and remote servers. This is achieved by using machine learning models trained on measured resource usage to estimate energy consumption, and then annotating communication events (like RPCs) with this information.
  • Application-Level SLAs (Service-Level Agreements): This interface allows developers to express their performance expectations and tolerance for energy-saving optimizations. This enables system software to make informed decisions about scheduling and resource allocation, navigating the "energy-performance Pareto curve." The goal is to allow for intelligent trade-offs, especially for applications with tighter latency constraints where moving workloads to greener locations or times isn't feasible.
  • μfunctions (Microfunctions): This abstraction proposes a fungible, fine-grained unit of execution that can be provisioned and de-provisioned at microsecond scales. This addresses software bloat and resource stranding by allowing for dynamic resource allocation that closely matches application demand. μfunctions are designed to be decoupled from static resource groupings (like containers or VMs) and can run on heterogeneous computing resources, including accelerators.

The paper also outlines a research agenda focusing on minimizing software bloat, enabling interchangeable compute and memory resources, and developing energy-aware scheduling policies.

Datasets

Not discussed in the paper. The paper focuses on proposing new abstractions and a research agenda rather than presenting empirical results on specific datasets.

Key Insights and Ideas

  • Carbon as a First-Class Resource: The paper argues for treating energy and carbon as fundamental resources alongside compute, memory, and storage, necessitating a shift in how software is designed and managed.
  • The End of Automatic Efficiency: The slowing of Moore's Law and Dennard scaling means that improvements in energy efficiency are no longer a given, requiring explicit software-driven efforts.
  • Visibility is Key: Developers currently lack the tools to understand the carbon impact of their decisions. Providing this visibility through "energy provenance" is a crucial first step.
  • Informed Trade-offs: The proposed SLA interface allows for intelligent balancing of performance and energy consumption, moving beyond a one-size-fits-all optimization approach.
  • Microsecond-Scale Granularity: The μfunction abstraction is designed to handle the increasingly fine-grained and bursty nature of modern datacenter applications, enabling more efficient resource utilization.
  • Beyond CPUs: The research agenda explicitly considers the use of accelerators (GPUs, FPGAs) and heterogeneous memory, highlighting the need for software that can leverage diverse hardware for energy efficiency.

Key Results

Not discussed in the paper. This paper presents a conceptual framework and a research agenda, not empirical results from a deployed system.

Limitations and Future Work

The authors acknowledge several areas for future research and development:

  • Linux Adaptation vs. Clean Slate OS: They plan to explore both incrementally adapting Linux for μfunctions and designing a completely new, non-POSIX operating system.
  • Integration of μfunctions: Developing an RPC-based API for μfunctions, including SLA and energy budget definitions, and exploring computation shipping for improved locality.
  • Heterogeneous Resource Management: Designing systems that can effectively manage and co-optimize interchangeable compute and memory resources across diverse hardware.
  • Optimization Speed: The challenge of performing optimization-based resource allocation within microsecond timeframes is noted, suggesting approximation and memoization techniques.
  • Software Bloat Reduction: Continued optimization of existing software layers and exploring hardware offloading for data paths.
  • Energy-Aware Scheduling: Developing sophisticated scheduling algorithms that consider energy sources, μfunction SLAs, and co-optimize compute and storage.

The paper emphasizes that Treehouse is a foundational project, and much of the work described is part of an ongoing research agenda.

Summary updated

BibTeX
@misc{anderson2022treehouse,
  author = {Thomas E. Anderson and Adam Belay and Mosharaf Chowdhury and Asaf Cidon and Irene Zhang},
  title = {{Treehouse: A Case For Carbon-Aware Datacenter Software}},
  year = {2022},
  eprint = {2201.02120},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2201.02120},
}
Figure