languages

languages

143 bookmarks
Newest
Phantom Menace: memory leak that wasn't there · FlakM blog
Phantom Menace: memory leak that wasn't there · FlakM blog
I share the story of a frustrating debugging journey with a Rust application that was migrated to Kubernetes. Everything seemed fine until a suspected memory leak caused our application to scale uncontrollably. I dove deep into tracing memory usage with eBPF, heaptrack, and jemalloc profiling tools. The real twist came when I discovered that the memory leak was a phantom menace - a misinterpretation of Kubernetes memory metrics rather than a genuine issue. This post details the steps I took, the tools I used, and the lessons I learned about problem-solving, metric accuracy, and effective debugging in containerized environments.
·flakm.com·
Phantom Menace: memory leak that wasn't there · FlakM blog
One Billion Row Challenge in Golang - From 95s to 1.96s
One Billion Row Challenge in Golang - From 95s to 1.96s
In the One Billion Row Challenge, the task is to write a program capable of reading an 1-billion-line file (with around 13GB), process and aggregate temperature readings from various weather stations, and present a report of the results on console. In this article, I share my experience attempting the challenge with Golang, providing the details of how I achieved 1.96 seconds.
·r2p.dev·
One Billion Row Challenge in Golang - From 95s to 1.96s