---
title: "Tech Tip #69: Try a lower CPU frequency for batch work"
description: "A 2 GHz cap cost 1-5% speed and saved 13-20% energy."
url: https://greencode.ai/tech-tips/69-cap-cpu-frequency-for-batch/
---

# Tech Tip #69: Try a lower CPU frequency for batch work

**A 2 GHz cap cost 1-5% speed and saved 13-20% energy.**

### The problem

Processors run at maximum frequency by default, even for batch jobs where nobody is waiting for the extra few per cent of speed. Energy rises faster than speed at the top of the range.

### The fix you can use today

- Benchmark representative jobs at a lower frequency cap.
- Make the efficient setting the default for batch queues, with an opt-out.
- Re-check when hardware or code changes.

The team behind the UK's ARCHER2 supercomputer found that a lower CPU speed cut energy by 13 to 20% for most codes they tested. GreenCode keeps advice like this in mind in its work.

### Tools that help

- [Slurm energy accounting](https://slurm.schedmd.com/acct_gather.conf.html?utm_source=greencode.ai&utm_medium=referral&utm_campaign=greencode): records the energy each job consumed, so users can look it up after the run
- [LIKWID](https://github.com/RRZE-HPC/likwid?utm_source=greencode.ai&utm_medium=referral&utm_campaign=greencode): reads hardware performance and energy counters on HPC nodes

### How GreenCode helps

GreenCode helps tackle this on the code side: it measures research code's energy before and after each change, and checks that the optimised code still gives the same results. [More on this](https://greencode.ai/benefit/improved-scientific-computation/).

### Tags

#hpc#hardware#scheduling

### Sources

- [Research software and HPC energy (ARCHER2 CPU frequency cap)](https://greencode.ai/news/research-software-hpc-energy/)
- [ARCHER2 news: impact of CPU frequency on application performance, 12 Dec 2022](https://www.archer2.ac.uk/news/2022/12/12/CPUFreq.html?utm_source=greencode.ai&utm_medium=referral&utm_campaign=greencode)

[All GreenCode Tech Tips](https://greencode.ai/tech-tips/)

#### Key Facts

- Tip **#69**
- For **Ops and infrastructure**
- Category **HPC, embedded, mobile and games**
- Format **short video**
![GreenCode](https://greencode.ai/wp-content/uploads/2024/12/greencode-logo-website-small-colours-2.webp)

Want this checked on your own system? Talk to the GreenCode team.

[Get in touch](https://greencode.ai/contact/)
