How much CPU & Memory?

Make It Work

Feb 29 2024 • 35 mins

This episode looks into the observability tool Parca & Polar Signals Cloud with Frederic Branczyk and Thor Hansen. We discuss experiences and discoveries using Parca for detailed system-wide performance analysis, which transcends programming languages.

We highlight a significant discovery related to kube-prometheus and the unnecessary CPU usage caused by Prometheus exporter's attempts to access BTRFS stats, leading to a beneficial configuration change for Kubernetes users globally.

We also explore Parca Agent's installation on Kubernetes 1.28 running on Talos 1.5, the process of capturing memory profiles with Parca, and the efficiency of the Parca Agent in terms of memory and CPU usage.

We  touch upon the continuous operation of the Parca Agent, the importance of profiling for debugging and optimization, and the potential of profile-guided optimizations in Go 1.22 for enhancing software efficiency.

🎬 Screensharing videos that go with this episode:

  1. First impressions: Parca Agent on K8s 1.28 running as Talos 1.5
  2. See where your Go code allocates memory
  3. How to debug a memory issue with Parca?
  4. See which line of your Go code allocates the most memory

🎁 Access the audio & all videos as a single conversation at makeitwork.gerhard.io

LINKS

EPISODE CHAPTERS

  • (00:00) - Intro
  • (02:21) - kube-prometheus discovery & fix
  • (06:29) - Parca Agent on K8s 1.28 running as Talos 1.5
  • (06:49) - How to capture memory profiles with Parca?
  • (08:42) - pprof.me
  • (10:42) - Data retention in Parca
  • (11:42) - A real-world memory issue debugging example
  • (16:05) - How much memory is Parca Server expected to use?
  • (17:39) - How much memory is the Parca Agent expected to use?
  • (19:42) - What about Parca Agent CPU usage?
  • (21:57) - Is Parca Agent meant to run continously?
  • (23:03) - Other Parca stories worth sharing
  • (25:19) - What are the things that you are looking forward to in 2024?
  • (27:23) - Golang Profile Guided Optimisations with Parca
  • (30:22) - Frederic's surprise screen share
  • (34:02) - Wrap-up

You Might Like

Acquired
Acquired
Ben Gilbert and David Rosenthal
Darknet Diaries
Darknet Diaries
Jack Rhysider
Hard Fork
Hard Fork
The New York Times
Marketplace Tech
Marketplace Tech
Marketplace
Search Engine
Search Engine
PJ Vogt, Audacy, Jigsaw
WSJ’s The Future of Everything
WSJ’s The Future of Everything
The Wall Street Journal
Rich On Tech
Rich On Tech
Rich DeMuro
TechStuff
TechStuff
iHeartPodcasts
The Vergecast
The Vergecast
The Verge
Fortnite Emotes
Fortnite Emotes
Lawrence Hopkinson
Waveform: The MKBHD Podcast
Waveform: The MKBHD Podcast
Vox Media Podcast Network