Tag

perf

0 views collected around this technical thread.

Beijing SF i-TECH City Technology Team
Beijing SF i-TECH City Technology Team
May 30, 2024 · Operations

Root Cause Analysis of CPU Sys Spikes and Memory Pressure in Linux Services

This article investigates two real‑world performance incidents—one caused by excessive disk I/O from a misconfigured Filebeat and another by kernel memory‑fragmentation bugs triggered by a trace feature—detailing observations, Linux diagnostic commands, analysis, and practical remediation steps.

CPULinuxOps
0 likes · 15 min read
Root Cause Analysis of CPU Sys Spikes and Memory Pressure in Linux Services
Deepin Linux
Deepin Linux
May 22, 2024 · Operations

Using Linux perf for Performance Profiling and Analysis

This article introduces Linux perf, explains how to install it, demonstrates basic commands such as perf‑list, perf‑stat, perf‑top, perf‑record and perf‑report, and shows how to combine perf with flame‑graphs to locate CPU‑bound hotspots and other performance bottlenecks in applications and the kernel.

CPULinuxPerformance Profiling
0 likes · 16 min read
Using Linux perf for Performance Profiling and Analysis
Refining Core Development Skills
Refining Core Development Skills
Jun 20, 2023 · Operations

Understanding Linux Software Performance Events and Using perf for Profiling

This article explains how software performance events in the Linux kernel affect application performance, demonstrates how to list, count, and trace these events with perf, and shows how to visualize the results using FlameGraph to pinpoint bottlenecks such as cache misses, context switches, and page faults.

CPULinuxcontext switches
0 likes · 10 min read
Understanding Linux Software Performance Events and Using perf for Profiling
Refining Core Development Skills
Refining Core Development Skills
May 30, 2023 · Fundamentals

Using Flame Graphs for CPU Performance Analysis with perf

This article explains how to generate and interpret flame graphs for CPU performance profiling on Linux, covering the use of perf for sampling, the underlying kernel mechanisms, and the processing steps with Brendan Gregg's FlameGraph scripts to visualize hot functions.

CPU ProfilingPerformance analysisperf
0 likes · 10 min read
Using Flame Graphs for CPU Performance Analysis with perf
政采云技术
政采云技术
May 23, 2023 · Operations

Understanding Linux Kernel Tracing: Probes, Kprobes, Uprobes, Tracepoints, ftrace, Perf, and eBPF

This article explains the concepts and mechanisms behind Linux kernel tracing tools—including ftrace, perf, kprobes, uprobes, tracepoints, ftrace, perf events, and eBPF—showing how probes are injected, how trace data is collected, and which technology to choose for different debugging and performance scenarios.

KprobesLinuxeBPF
0 likes · 50 min read
Understanding Linux Kernel Tracing: Probes, Kprobes, Uprobes, Tracepoints, ftrace, Perf, and eBPF
ByteDance SYS Tech
ByteDance SYS Tech
Nov 1, 2022 · Operations

How eBPF Can Cut Container Network Latency by Up to 82%

Using eBPF to bypass traditional bridge, netfilter, and routing steps, this article demonstrates how container network packet forwarding can be accelerated, reducing receive and transmit latency by around 40‑82%, with detailed perf‑ftrace analysis, code examples, and performance comparisons of three forwarding modes.

Container NetworkingLinux KerneleBPF
0 likes · 14 min read
How eBPF Can Cut Container Network Latency by Up to 82%
OPPO Kernel Craftsman
OPPO Kernel Craftsman
Jul 1, 2022 · Operations

Linux Kernel Performance Profiling: A Comprehensive Guide to On-CPU and Off-CPU Analysis

This comprehensive guide explains Linux kernel performance profiling—both on‑CPU and off‑CPU—by stressing the need to target the critical 3 % of code, covering throughput, latency and power metrics, scalability laws, flame‑graph visualizations, perf and eBPF tools, lock‑contention analysis, and further reading recommendations.

Flame GraphLinux KernelPerformance Profiling
0 likes · 27 min read
Linux Kernel Performance Profiling: A Comprehensive Guide to On-CPU and Off-CPU Analysis
Aikesheng Open Source Community
Aikesheng Open Source Community
Mar 1, 2022 · Databases

Diagnosing MySQL Replication Lag Caused by Page Compression Using perf and pstack

The article explains how a MySQL 5.6 master‑slave setup experienced growing replication lag on an off‑site replica, how the issue was traced to page‑compression on a large table using show slave status, perf and pstack, and how disabling compression resolved the delay.

MySQLReplicationTroubleshooting
0 likes · 4 min read
Diagnosing MySQL Replication Lag Caused by Page Compression Using perf and pstack
NetEase LeiHuo Testing Center
NetEase LeiHuo Testing Center
Jan 28, 2022 · Operations

Game Pressure Testing: Execution Steps, Analysis Tools, and Result Evaluation

This article provides a comprehensive guide to game pressure testing, covering the full workflow from requirement communication and test planning to execution, performance analysis using tools like LuaProfiler, Perf, and VTune, and detailed result interpretation with case studies.

LuaProfilerPerformance analysisStress Testing
0 likes · 10 min read
Game Pressure Testing: Execution Steps, Analysis Tools, and Result Evaluation
vivo Internet Technology
vivo Internet Technology
Oct 13, 2021 · Databases

Performance Analysis and Optimization of Redis Cluster CLUSTER SLOTS Command

In large Redis clusters the original CLUSTER SLOTS implementation traversed every master and all 16,384 slots, causing ~52 % CPU usage and high MGET latency during migrations, but redesigning it to iterate the pre‑built slot array reduced complexity to O(total slots), cutting execution time from 2 ms to 0.17 ms and eliminating the CPU hotspot, a fix now merged into Redis 6.2.2.

C++ClusterJava
0 likes · 20 min read
Performance Analysis and Optimization of Redis Cluster CLUSTER SLOTS Command
Aikesheng Open Source Community
Aikesheng Open Source Community
Oct 8, 2021 · Databases

Diagnosing Sudden Increase in MySQL File Handle Count

This article explains how to diagnose a sudden rise in MySQL file handle usage by reproducing the issue with large tables, using Linux perf to trace open system calls, analyzing hash join behavior, and querying performance_schema.file_instances to pinpoint the underlying cause.

DiagnosisFile HandlesHash Join
0 likes · 2 min read
Diagnosing Sudden Increase in MySQL File Handle Count
Aikesheng Open Source Community
Aikesheng Open Source Community
Sep 3, 2021 · Databases

Diagnosing MySQL Memory Spikes Using perf and mmap Monitoring

This tutorial demonstrates how to reproduce a MySQL memory‑spike bug, monitor the process with Linux perf to capture mmap system calls, and analyze the resulting perf.out to identify which SQL statements trigger large memory allocations, while also discussing the method’s limitations.

LinuxMMAPMemory Profiling
0 likes · 5 min read
Diagnosing MySQL Memory Spikes Using perf and mmap Monitoring
360 Smart Cloud
360 Smart Cloud
Mar 4, 2021 · Operations

Understanding Linux Tracing Systems: Data Sources, Collection Mechanisms, and Front‑ends

This article explains how Linux tracing tools such as kprobes, uprobes, tracepoints, eBPF, perf, ftrace, sysdig, SystemTap and LTTng fit together, describing their data sources, collection mechanisms and front‑ends, and offers guidance on choosing the right tool for low‑overhead debugging and performance analysis.

KprobesLinux tracingeBPF
0 likes · 16 min read
Understanding Linux Tracing Systems: Data Sources, Collection Mechanisms, and Front‑ends
Aikesheng Open Source Community
Aikesheng Open Source Community
Dec 10, 2019 · Operations

Profiling Software with perf and Flame Graphs: A Step‑by‑Step Guide

This article explains how to install perf and FlameGraph tools on Linux, capture profiling data from MySQL using various perf record options, convert the binary output to a readable script, and generate an SVG flame graph for visual performance analysis, including example commands and interpretation tips.

LinuxMySQLPerformance analysis
0 likes · 8 min read
Profiling Software with perf and Flame Graphs: A Step‑by‑Step Guide
NetEase Game Operations Platform
NetEase Game Operations Platform
Nov 2, 2019 · Operations

Understanding Linux CPU Usage, Scheduling, and Performance Monitoring

This article explains how Linux reports CPU usage with tools like top, the meaning of the fields in /proc/stat, how utilization percentages are calculated, the concepts of run queues, load average, context switching, multi‑core scheduling, and how to use perf and taskset for deeper performance analysis.

CPULinuxOps
0 likes · 15 min read
Understanding Linux CPU Usage, Scheduling, and Performance Monitoring
NetEase Game Operations Platform
NetEase Game Operations Platform
Sep 13, 2019 · Operations

Detailed Analysis of a GitLab Runner Performance Bottleneck

This article documents a multi‑stage investigation of intermittent GitLab Runner build timeouts and hangs, describing the background, VM configuration, successive diagnostic steps using strace, iotop, perf, and storage‑driver adjustments, and concludes with performance test results and lessons learned.

CI/CDDevOpsDocker
0 likes · 8 min read
Detailed Analysis of a GitLab Runner Performance Bottleneck
NetEase Game Operations Platform
NetEase Game Operations Platform
Jan 30, 2019 · Operations

Effective Python Debugging Techniques: Print, Logging, IDE Debuggers, GDB, Perf, Strace, and Inject Debugger

This article explores practical Python debugging methods—from simple print statements and structured logging to powerful IDE debuggers, GDB, perf, strace, and the inject debugger pylane—providing code examples, best‑practice guidelines, and tips for improving observability and performance in production systems.

GDBPythondebugging
0 likes · 20 min read
Effective Python Debugging Techniques: Print, Logging, IDE Debuggers, GDB, Perf, Strace, and Inject Debugger
Efficient Ops
Efficient Ops
Dec 25, 2018 · Fundamentals

Why %CPU Is Misleading: Understanding the Real Meaning of CPU Utilization

This article explains why the traditional %CPU metric can be deceptive, describes how CPU stalls and memory bottlenecks affect perceived utilization, and offers practical guidance on using IPC and performance counters to obtain a more accurate view of system performance.

CPU stallsCPU utilizationIPC
0 likes · 10 min read
Why %CPU Is Misleading: Understanding the Real Meaning of CPU Utilization
Tencent Cloud Developer
Tencent Cloud Developer
Mar 16, 2018 · Operations

Introduction to Linux Performance Profiling Tools: Perf, gprof, and Valgrind

This article introduces three popular Linux performance profiling tools—Perf, gprof, and Valgrind—explaining their installation, basic command‑line usage, and how to visualize results with flame graphs, call graphs, or KCachegrind, while comparing their intrusiveness, startup methods, and output formats.

Flame GraphLinuxPerformance Profiling
0 likes · 10 min read
Introduction to Linux Performance Profiling Tools: Perf, gprof, and Valgrind
High Availability Architecture
High Availability Architecture
Sep 7, 2017 · Operations

How to Identify and Diagnose Packet Drops on Linux

This article explains how to detect whether inbound or outbound packets are being dropped on a Linux system, shows how to use netstat, dropwatch, and perf to pinpoint the cause, and provides step‑by‑step commands and example outputs for debugging packet loss.

Linux networkingdebuggingdropwatch
0 likes · 5 min read
How to Identify and Diagnose Packet Drops on Linux