May 2026 Summaries
2 posts from Polar Signals
Filter
Month:
Year:
Post Summaries
Back to Blog
Addressing the challenges of truncated stack traces in PyTorch Lightning training workloads, the text explores two key issues related to eBPF profiling and stack unwinding. The first issue involves read errors caused by memory being paged out during long-running workloads, which can be mitigated by recording faulted pointers and continuing the stack walk, allowing the OS to handle page faults in user space. The second issue is the BPF tail call limit, which restricts the number of transitions between Python and native code, leading to stack truncation. By combining Python and native unwinders into a single BPF program, the solution eliminates excessive tail calls, enabling full stack unwinding within the instruction budget constraints. Dynamic loop tuning via RODATA variables optimizes the instruction budget for both debug-on and debug-off modes, allowing for deeper stack processing. This approach not only resolves the PyTorch-specific problem but also enhances eBPF profiling for large stacks across various languages, demonstrating a significant advancement in handling complex workloads.
May 20, 2026
2,220 words in the original blog post.
Polar Signals Cloud is a powerful tool for continuous profiling of CPU, Memory, and GPUs, which sophisticated engineering teams use to analyze data through visualizations like Flamegraphs and implement code improvements. Recently, OAuth for AI Agents was introduced, simplifying authentication for users by eliminating the need for long-lived tokens. This enhancement has enabled new use cases, such as utilizing Polar Signals MCP within the "Routines" feature of Claude Code on both web and desktop. A notable example is the "Daily Perf Review & Optimization" routine, which analyzes profiling data daily to suggest architectural improvements and create pull requests for significant CPU usage enhancements. This approach has led to substantial performance gains, such as a 20% improvement in workload allocation, demonstrating the potential for autonomous performance optimization. Interested users can explore these capabilities with a free 14-day trial of Polar Signals Cloud.
May 06, 2026
443 words in the original blog post.