Understanding and Tuning System Performance with CPU Hardware Counters

QCon London 2026

Session performance

Understanding and Tuning System Performance with CPU Hardware Counters

Monday Mar 16 / 05:05PM GMT, Windsor (5th Fl.) at The QEII Centre, London

Abstract

Counters are fundamental to monitoring: how many requests were processed, how many CPU-seconds consumed, how many bytes sent over a network. Very likely you are already monitoring your applications and operating systems via the hundreds or thousands of counters they expose.

But did you know that modern CPUs have counters right inside the silicon circuitry? They count things like number of cache hits, or RAM accesses, or the number of instructions processed. These can give an amazingly detailed view of how the system is performing.

Historically it was impossible to access CPU hardware counters on cloud servers, as they were hidden by the hypervisor. But in the last few years, CPU manufacturers and cloud providers have added interfaces to bridge this gap

This talk looks at:

  • What are CPU hardware counters?
  • What kinds of CPU counters are most useful?
  • Using hardware counters as metrics, and via profiles.
  • Specific tools: Prometheus Node Exporter, CAdvisor, Linux Perf, PerfGo
  • Real-world examples where CPU hardware counters enable performance improvements.
  • We will focus on the Linux operating system.

By the end of the session you should:

  • Know what data is available via CPU hardware counters.
  • Be inspired to install some tools to collect and visualise the data.
  • Understand the limitations on shared cloud infrastructure.

Who is this session for?

  • Those interested in system performance.
  • Software engineers or observability architects.
  • Someone ideally familiar with modern CPU architectures - pipelining, multi-level cache, branch prediction.

Interview

It's about performance-tracking hardware built into every server CPU - how to access that information and how to use it to tune systems for efficiency.

By tuning system performance, leaders can deliver a snappier experience to their users, reduce cloud costs, and reduce carbon footprint.

It's difficult to get started, as there are many steps to follow. Then there are thousands of counters to choose from, so some understanding is needed to focus your investigation.

Try it out - find a suitable machine, fetch some hardware counters, and see what they tell you about your systems.

Talks are delivered by engineers who have built and operated production systems.

Topics

performance CPU Architecture Observability
76% senior dev or higher
1:11 speaker ratio
60+ practitioners

QCon London 2026 is a three day conference for senior software engineers, architects and team leads. An international program committee of working engineers selects every session. Patterns and practices, not products and pitches.

Share

From the same track

Monday 16 March

10:35 Windsor (5th Fl.) Session Deterministic Simulation Testing A Deterministic Simulation Testing (DST) Journey: From WASM in Go to State Machines in Rust Alfonso Subiotto Software Engineer @Polar Signals 11:45 Rutherford (4th Fl.) Unconference Unconference: Native Languages 14:45 Windsor (5th Fl.) Session Use<’lifetimes> For<’what> Ethan Brierley Senior Engineer @TrueLayer and Co-Organiser of Rust London 15:55 Windsor (5th Fl.) Session Platform Engineering Fixing the AI Infra Scale Problem by Stuffing 1M Sandboxes in a Single Server Felipe Huici CEO and Co-Founder @Unikraft, Founder and Maintainer of the Linux Foundation Unikraft Open Source Project 17:05 Windsor (5th Fl.) Session performance Understanding and Tuning System Performance with CPU Hardware Counters Bryan Boreham Distinguished Engineer @Grafana Labs, Member of the Prometheus Team, Expert in Distributed Systems and Computer Performance