How to limit your cloud impact, from bare metal to AI

It’s often said that if you can’t measure it, you can’t improve it. Increasingly in tech today, if you can’t measure it, it’s most likely greenwashing.

Take, for example, the recent “Greening Digital Companies” report, a survey of 200 of the world’s biggest tech companies. It says that, whilst scope 3 emissions - any company’s least direct ones, and therefore the hardest to measure - represent 81% of tech companies’ emissions, only 38% of said firms report scope 3 properly. That’s well over half of all tech emissions totally unaccounted for.

Or the recent report by The Guardian, which estimates that data center emissions are probably 662% higher than big tech companies claim, because they are not reporting the right kind of data.

Another interesting example is Accenture’s claim that moving from on-premise to the cloud can reduce your emissions by 84%. Possibly... but only if:

  • Your workloads move to countries with less carbon in their electricity (moving from on-premise in 90% low-carbon France to the cloud in 22% low-carbon electricity Ireland could actually increase your emissions)
  • Your cloud provider works to reduce its impact across the three pillars of Green IT:
  1. Data centers
  2. Hardware
  3. Software.

So let’s take a look at all three!

Data centers

If we consider that 4% of all global emissions are digital, 1% of those four comes from data centers, according to the International Energy Association (IEA). But this is just for starters. Also according to the IEA, AI, data center and cryptocurrency energy use
will double by 2026, as the demand for compute power surges worldwide.

It is as such essential to limit data centers’ impact. Whilst the first way to do that is to choose countries with the lowest-carbon electricity (cf. introduction), you can then check how efficiently your chosen cloud provider (CSP) uses energy. This is measured with Power Usage Effectiveness, or PUE. As it’s a ratio, the closer it is to one, the better it is (cf. examples, above).

However, that’s not all ! Many CSPs proudly share their low PUEs without sharing their WUE, which is how effectively they use water. Whereas both should be as low as possible, but water usage figures are far harder to come by than energy-related ones. This is because some datacenter cooling techniques, like cooling towers, can use inordinate amounts of water: some around 25 liters of water per second.

As such, when choosing your CSP, it’s essential to ask for:

  • Low PUE and WUE (any cooling towers? 🤔)
  • Alternatives to air conditioning (e.g. Scaleway/OpCore’s DC5 uses free and adiabatic cooling instead, saving 30-40% energy vs. a standard data center)
  • Data centers located in low-carbon intensity countries
  • Maximum renewable energy
  • Transparent & location-based reporting.

Hardware

By far the biggest share of digital emissions - around 75%, or 3 of the 4% mentioned above - comes from hardware (source). So it’s clear that limiting hardware’s impact has to be a top priority. How? Firstly, this has to happen across all stages of products’ existence:

Devices’ Lifecycle Analysis, or embodied carbon, can be measured with tools like that of Boavizta, a global reference made in France. Then their usage impact can be measured with:

COMPONENTS like:

  • IPMI/DCMI: measures servers’ key stats (even fan speed!)
  • lm-sensors: detects all a machine’s available sensors (including power)
  • RAPL: Intel processor power consumption standard

TOOLS like:

  • Scaphandre: measures servers’ sustainability stats
  • Powerstat: for Linux devices with RAPL CPUs
  • Energizsta: an open source tool by Boavizta
  • Manufacturer tools, e.g. Microsoft Surface Emissions Calculator.

So how do you reduce the impact of hardware, the monster in the room? By making it last for as long as possible! To take a simple example, if most people only keep their smartphones for two years, by keeping yours for three, you’re reducing its overall emissions by 50%.

When it comes to the cloud, those CSPs who make their servers last the longest do the most to reduce their hardware impact. Whereas previously, most data center servers were binned after 3-4 years, some hyperscalers can now go for four to six years (cf. table below, from AdVaes), Scaleway makes its servers last for ten years and beyond, thanks to programs such as Transformers (below, and more info here).

Since the industrialization of such programs last year, Scaleway has been able to double its number of reconditioned servers and hard drives: as such, nearly 80,000 should have been reconditioned by 2025. Thereby removing the emissions generated by making new servers, the cost of acquiring them, and reducing e-waste (today’s fastest-growing waste category). Repair, don’t replace!

Code & Software

While it’s harder to quantify the impact of code and software than that of data centers or hardware, it’s safe to say it’s felt everywhere. In data centers, for example, Intel estimates that 50% of emissions are due to under-optimized infrastructure and software.

Furthermore, the “bloatware effect” is everywhere. Be it in software, where widely-used applications such as Microsoft Office demanded 171 times more memory for the 2019 version than for the 1998 version; or in the average size of web pages, which has grown by 191% since 2013. Are these things 171 times or 191% better than they were 10-20 years ago?

So what can developers do to make a difference? Well, they can start by asking their managers why they don’t have energy efficiency or other sustainability objectives in their own projects!

Then they can consider the following:

  • Adopt Carbon-Aware Computing (shifting workloads to places and times of day when carbon intensity is the lowest)
  • Taking the Green Software Foundation’s Green Software for Practitioners course (it’s free!)
  • Monitor code efficiency with SonarQube, and its EcoCode plugin
  • Minimize cyclomatic complexity
  • Avoid bloatware (if 90% of features are unused, are they needed?)
  • Reuse existing code as far as possible
  • Make code last as long as possible (anti-obsolescence)
  • Ensure apps only process data they need to - no more, no less!

What can your cloud provider do on this front? It can and should provide software that enables you to measure the impact of your own cloud usage. This is precisely what Scaleway’s forthcoming Environmental Footprint Calculator will do, but in a more transparent and comprehensive way than other cloud calculators currently available (cf. above). Whilst others concentrate on carbon emissions, Scaleway’s will also cover water and hardware impact, and will be able to measure the latter in terms of individual hardware usage, rather than by applying average impacts across all users.

AI

The other elephant in the room since it caused both Microsoft and Google to miss their emissions reduction objectives recently, the rise of generative AI and LLMs has also raised a few environmental eyebrows. Why? Because GenAI relies on GPUs for training and (a lot of) inference, and GPUs consume on average four times more energy, and generate 2.5 times more heat, than CPUs. Whence the need for more energy, both to power said GPUs (Three Mile Island, anyone?), and to cool them.

Indeed, generating 100 words with ChatGPT (powered by GPT4) can require up to 1.5 liters in terms of cooling water (source, versus 0.5L for 20-50 prompts previously (with GPT3.5) (source). And that update to GPT4 is obligatory.

Not to mention emissions: training GPT3.5 generated an estimated 552 tCO2e, and its inference emissions could be 200x greater - (source), given ChatGPT’s millions of daily users.

Whence the following questions to ask, if you’re looking to reduce your AI impact:

  • Do I really need GenAI? Symbolic AI can do a lot, and requires 1000x less energy (source)
  • Can I use an existing model? Hugging Face has 1,000,000 and they can be fine-tuned
  • Can that model be open source? They’re transparent & measurable
  • Do I have the right cloud provider? They should favor low-carbon energy + minimal A/C & water usage
  • Are GPUs inevitable? Ampere’s AI inference CPUs = 3-5x less energy than NVIDIA GPUs
  • Can I measure my models’ impact? Try GenAI Impact/Ecologits.ai; Green-Coding.ai; CodeCarbon...

Takeaways

In conclusion, whatever your workload, from bare metal to AI, the key principles of green IT are always the same: measure transparently and comprehensively, in order to use as little resources as possible. In short:

Thanks for reading!

To find out all of the above principles in more detail, you can download our Green IT white paper here; and/or watch this blogpost as a presentation, below. We aim to please!


To find out more about Scaleway’s environmental commitments, including our real-time PUE/WUE dashboards, the Environmental Footprint Calculator, Impact reports and more, click here!

Recommended articles