GeistHaus
log in · sign up

Linux perf Examples

brendangregg.com

Examples of using the Linux perf command, aka perf_events, for performance analysis and debugging. perf is a profiler and tracer.

37 pages link to this URL
Profiling PHP in production at scale

At Wikipedia, we built an efficient sampling profiler for PHP, and use it to instrument live requests. The trace logs and flame graphs are powered by a simple setup that involves only free open-source software, and runs at low infrastructure cost. I'd like to demonstrate that profiling doesn't have

2 inbound links article en
Performance Engineering

For Parallel Applications

0 inbound links website en linux-perfScreencastMPIProfilerPythonDebugging ToolsHPCPerformance Tools
Max De Marzi

Graphs, Graphs, and nothing but the Graphs

0 inbound links website en ProblemsRelationalAIRageCypherTestingRandom
The case of the 2 million close calls

This summer, while working on my internship project, I realised that an internal CLI tool was taking too long to run. The tool purpose is not very relevant h...

Performance Showdown: Rust vs Javascript

After spending some weeks playing with Rust, I felt ready to test my skills and try some programming challenges in the [Advent Of Code](https://adventofcode.com/). My approach to tackle some of those challenges was to solve them using Javascript (I use it in my day to day) first and then port the code to Rust. While writing the port I just focus on getting the Rust code as elegant as possible to achieve that I research the Rust API's to get syntactically correct. It was after finishing porting this [puzzle](https://adventofcode.com/2018/day/5) in particular and feeling a sense of accomplishment that I decided to test how the Rust compiled code will perform against Javascript interpreter.

0 inbound links article en
Inspecting OpenJDK performance on Linux using perf

Analyzing performance can be challenging, especially when diagnosing regressions. Finding the right methods to investigate performance issues is often time-consuming and complex. You may have heard of perf, a powerful Linux tool for performance measurement, available from the kernel. This post will guide you through using perf to analyze performance on Linux, serving as a practical “quick start” guide for those new to profiling Java applications with perf. It’s not meant to be a comprehensive tutorial, as many of those already exist in the extensive documentation of perf and other excellent sources. However, the examples provided may be all you need or, at the very least, give you an idea of where to look for deeper insights.

Monitoring Processes

Introduction Recently I’ve been working on a lock-free message queue implemented using shared memory. Some of the criteria I’ve set for it are that the queue…

0 inbound links article en