Tagged articles
50 articles
Page 1 of 1
MaGe Linux Operations
MaGe Linux Operations
Mar 10, 2026 · Operations

How to Diagnose and Fix Memory Leaks in a Containerized Image Thumbnail Service

This guide walks through a systematic, step‑by‑step process for identifying, analyzing, and resolving memory‑related incidents in a high‑traffic thumbnail generation service running in Kubernetes, covering everything from initial symptom checks with free and vmstat to deep dives using smem, pmap, smaps, perf, and post‑mortem verification.

memory leakperfsmem
0 likes · 30 min read
How to Diagnose and Fix Memory Leaks in a Containerized Image Thumbnail Service
Deepin Linux
Deepin Linux
Dec 2, 2025 · Fundamentals

Why CPU Cache Misses Slow Down Your Linux System—and How to Fix Them

CPU caches bridge the speed gap between processors and memory, but cache misses can dramatically degrade performance, especially under high concurrency or big‑data workloads; this article explains cache architecture, common miss causes, diagnostic tools like perf and cachestat, and practical optimization techniques for Linux systems.

CPU cacheLinux performanceMESI Protocol
0 likes · 44 min read
Why CPU Cache Misses Slow Down Your Linux System—and How to Fix Them
Linux Kernel Journey
Linux Kernel Journey
Nov 19, 2025 · Fundamentals

How Tracepoint and kprobe Enable Precise Linux Kernel Source Tracing

This article explains the technical principles behind Linux kernel tracing, covering static tracepoints and dynamic kprobes, demonstrating their use with ftrace and perf, and detailing the underlying macro implementations and low‑level mechanisms that make kernel source tracking possible.

KprobeLinux tracingftrace
0 likes · 20 min read
How Tracepoint and kprobe Enable Precise Linux Kernel Source Tracing
MaGe Linux Operations
MaGe Linux Operations
Oct 18, 2025 · Operations

10 Proven Causes of Linux CPU Spikes and How to Diagnose Them Fast

Learn a step‑by‑step Linux CPU high‑usage diagnostic guide covering ten root causes, quick monitoring commands, deep analysis with top, ps, strace, perf, and flamegraphs, plus practical remediation and long‑term monitoring setup using sar and Prometheus to prevent future spikes.

CPULinuxPrometheus
0 likes · 22 min read
10 Proven Causes of Linux CPU Spikes and How to Diagnose Them Fast
Deepin Linux
Deepin Linux
Jul 21, 2025 · Operations

Master Linux CPU Performance: Metrics, Tools, and Optimization Strategies

This comprehensive guide explains Linux CPU performance fundamentals, key metrics like load average and utilization, common bottlenecks, and step‑by‑step usage of tools such as top, htop, vmstat, iostat, perf, and stress, followed by practical tuning techniques and real‑world case studies for developers and system administrators.

CPU performanceLinuxhtop
0 likes · 61 min read
Master Linux CPU Performance: Metrics, Tools, and Optimization Strategies
Deepin Linux
Deepin Linux
Jul 8, 2025 · Operations

Unlock Linux NUMA Performance: A Practical Multithreaded Tuning Guide

This article explains the fundamentals of NUMA architecture, why it matters for multithreaded Linux applications, and provides step‑by‑step practical guidance—including kernel internals, memory allocation policies, useful commands, and performance‑monitoring tools—to help developers optimize memory locality and boost overall program efficiency.

LinuxNUMAmultithreading
0 likes · 37 min read
Unlock Linux NUMA Performance: A Practical Multithreaded Tuning Guide
Liangxu Linux
Liangxu Linux
Jun 29, 2025 · Operations

Essential Linux Performance Monitoring Tools and How to Use Them

This guide introduces a comprehensive set of Linux performance monitoring utilities—including vmstat, iostat, dstat, iotop, pidstat, top, htop, mpstat, netstat, ps, strace, uptime, lsof, and perf—explaining their purpose, key options, and example commands for effective system analysis and optimization.

Performance MonitoringSystem Toolsiostat
0 likes · 14 min read
Essential Linux Performance Monitoring Tools and How to Use Them
Liangxu Linux
Liangxu Linux
Jun 18, 2025 · Fundamentals

Why Page Faults Kill Performance and How to Measure Them on Linux

The article explains what page faults are, why they become performance killers, and provides practical Linux tools and tuning steps—perf, vmstat, ftrace, swappiness, mlock, and swapoff—to quantify and mitigate both major and minor page faults.

Memory Managementftracepage faults
0 likes · 7 min read
Why Page Faults Kill Performance and How to Measure Them on Linux
Linux Code Review Hub
Linux Code Review Hub
Apr 5, 2025 · Operations

Inside Linux Perf: How the Kernel’s Powerful Tracing Tool Works

The article introduces Linux’s built‑in performance analysis tool perf, explains its event‑driven sampling, tracing and profiling capabilities, shows how to install it on various distributions, demonstrates common commands with real code examples, and discusses practical scenarios for locating and optimizing kernel and application performance issues.

BenchmarkingSystem optimizationflamegraph
0 likes · 36 min read
Inside Linux Perf: How the Kernel’s Powerful Tracing Tool Works
Linux Kernel Journey
Linux Kernel Journey
Apr 3, 2025 · Operations

How Perf Works: Inside Linux Kernel’s Powerful Tracing and Profiling Tool

This article explains the Linux kernel’s perf utility, covering its architecture, key features such as lightweight event sampling, tracing, profiling and debugging, step‑by‑step installation, common commands with real code examples, and how to use perf and flame graphs to locate and optimise performance bottlenecks.

BenchmarkLinuxProfiling
0 likes · 35 min read
How Perf Works: Inside Linux Kernel’s Powerful Tracing and Profiling Tool
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.

CPULinuxflamegraph
0 likes · 16 min read
Using Linux perf for Performance Profiling and Analysis
Open Source Linux
Open Source Linux
Sep 27, 2023 · Fundamentals

Master Linux Kernel Debugging: Tools, Filesystems, and Tracing Techniques

This article provides a comprehensive overview of Linux kernel debugging, covering core tools such as printk, ftrace, trace‑cmd, kprobe, systemtap, kgdb, kgtp, perf, as well as pseudo filesystems like procfs, sysfs, debugfs and relayfs, and introduces additional tracers including LTTng, eBPF, Ktap, dtrace4linux, OL DTrace and sysdig.

KGDBKprobeLinux
0 likes · 28 min read
Master Linux Kernel Debugging: Tools, Filesystems, and Tracing Techniques
Liangxu Linux
Liangxu Linux
Jul 23, 2023 · Operations

Master Linux perf: From Basics to Advanced Profiling and Flame Graphs

This comprehensive guide introduces Linux perf, explains its core components, walks through essential commands, demonstrates real‑world use cases such as CPU, memory, and I/O analysis, shows how to generate flame graphs, and provides advanced tips and troubleshooting for accurate performance profiling on Linux systems.

BenchmarkLinuxflamegraph
0 likes · 24 min read
Master Linux perf: From Basics to Advanced Profiling and Flame Graphs
MaGe Linux Operations
MaGe Linux Operations
Jul 2, 2023 · Operations

Master Linux Performance: Using perf for Profiling and Optimization

Linux perf is a powerful, flexible profiling tool that lets developers and system administrators monitor hardware and software events, analyze CPU, memory, and I/O performance, generate flame graphs, and troubleshoot bottlenecks across single processes, containers, and multi‑core systems, with extensive commands and advanced techniques.

Linuxflame graphperf
0 likes · 28 min read
Master Linux Performance: Using perf for Profiling and Optimization
MaGe Linux Operations
MaGe Linux Operations
Nov 14, 2022 · Fundamentals

How to Boost Linux Pipe Throughput from 3.5 GiB/s to 65 GiB/s

Using a step‑by‑step example program, this article shows how to dramatically improve Linux pipe read/write performance—from an initial 3.5 GiB/s to 65 GiB/s—by applying zero‑copy techniques, ring buffers, paging insights, vmsplice/splice system calls, huge pages, and busy‑loop optimizations.

LinuxZero Copyhugepages
0 likes · 29 min read
How to Boost Linux Pipe Throughput from 3.5 GiB/s to 65 GiB/s
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.

Linux kernelcontainer networkingeBPF
0 likes · 14 min read
How eBPF Can Cut Container Network Latency by Up to 82%
Liangxu Linux
Liangxu Linux
Oct 13, 2022 · Operations

Essential Linux Performance Monitoring Tools and How to Use Them

This article provides a comprehensive guide to Linux performance monitoring, covering essential tools such as vmstat, iostat, dstat, iotop, pidstat, top/htop, mpstat, netstat, ps, strace, perf and sar, with usage examples, command syntax, and explanations of the metrics they report.

LinuxPerformance MonitoringSystem Tools
0 likes · 16 min read
Essential Linux Performance Monitoring Tools and How to Use Them
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.

Linux kernelThroughputeBPF
0 likes · 27 min read
Linux Kernel Performance Profiling: A Comprehensive Guide to On-CPU and Off-CPU Analysis
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.

CClusterJava
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 handlesmysql
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.

Database PerformanceLinuxmemory profiling
0 likes · 5 min read
Diagnosing MySQL Memory Spikes Using perf and mmap Monitoring
Liangxu Linux
Liangxu Linux
Jun 2, 2021 · Operations

Mastering Linux Multi‑Core Scheduling: Strategies, Algorithms, and Performance Optimizations

This article explains Linux's sophisticated scheduling system for multi‑core, SMP, and NUMA architectures, describes global, clustered, partitioned, and arbitrary schedulers, details scheduling domains and load‑balancing mechanisms, and provides practical performance‑tuning techniques using tools like perf, flame graphs, and various kernel optimizations.

BFSCFSCPU optimization
0 likes · 31 min read
Mastering Linux Multi‑Core Scheduling: Strategies, Algorithms, and Performance Optimizations
Liangxu Linux
Liangxu Linux
May 20, 2020 · Operations

Master Linux System Performance: Top, Perf, Sar, Vmstat, and More

This guide walks through dozens of Linux performance‑monitoring utilities—including top, perf, sar/ksar, mpstat, uptime, vmstat, pidstat, htop, atop, glances, nmon, pcp‑gui, collectl, and colplot—explaining what each tool measures, how to invoke it, key command‑line options, sample outputs, and where to find further documentation.

Performance MonitoringSystem Toolsperf
0 likes · 21 min read
Master Linux System Performance: Top, Perf, Sar, Vmstat, and More
Huawei Cloud Developer Alliance
Huawei Cloud Developer Alliance
Oct 30, 2019 · Operations

Master CPU & Memory Subsystem Tuning on Kunpeng Processors: Tools & Strategies

This article introduces practical CPU and memory subsystem performance tuning for Kunpeng processors, covering optimization concepts, key parameters, common monitoring tools such as top, perf and numactl, and detailed methods like NUMA binding, prefetch control, timer tuning, TLB page size adjustment, and thread concurrency optimization.

CPU tuningKunpengLinux performance
0 likes · 15 min read
Master CPU & Memory Subsystem Tuning on Kunpeng Processors: Tools & Strategies
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
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 stallsIPCPerformance Monitoring
0 likes · 10 min read
Why %CPU Is Misleading: Understanding the Real Meaning of CPU Utilization
MaGe Linux Operations
MaGe Linux Operations
Apr 5, 2018 · Operations

Master Linux Performance Tuning with Perf: From Basics to Advanced Profiling

This article introduces Linux’s built‑in Perf tool, explains its architecture and hardware counters, walks through practical examples—including basic commands, statistical summaries, real‑time monitoring, and detailed call‑graph analysis—while providing C code samples and visual illustrations to help developers pinpoint and optimize performance bottlenecks.

CPU optimizationLinux profilingperf
0 likes · 23 min read
Master Linux Performance Tuning with Perf: From Basics to Advanced Profiling
UCloud Tech
UCloud Tech
Oct 27, 2017 · Cloud Computing

How to Debug Windows I/O Performance Issues in Virtualized Cloud Environments

This article walks through diagnosing and fixing severe Windows I/O performance degradation in a virtualized cloud host by using perf, systemtap, QEMU tracing, and kernel tweaks, revealing that excessive ACPI timer and APIC accesses cause costly VM exits and how enabling the Hyper‑V timer restores expected IOPS.

IO performanceKVMQEMU
0 likes · 10 min read
How to Debug Windows I/O Performance Issues in Virtualized Cloud Environments
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.

DebuggingLinux networkingPacket Loss
0 likes · 5 min read
How to Identify and Diagnose Packet Drops on Linux
MaGe Linux Operations
MaGe Linux Operations
Jul 12, 2017 · Operations

Master Linux Performance Monitoring: Essential Tools and Commands

This article provides a comprehensive guide to Linux performance monitoring, covering essential tools such as vmstat, iostat, dstat, iotop, pidstat, top/htop, netstat, ps, strace, perf, and advanced tracing utilities, with usage examples and interpretation of their output.

LinuxPerformance MonitoringeBPF
0 likes · 14 min read
Master Linux Performance Monitoring: Essential Tools and Commands
ITPUB
ITPUB
Jun 18, 2017 · Operations

Master Linux Performance: Essential Monitoring Tools and Practical Usage

This article provides a comprehensive guide to Linux performance analysis, covering background concepts, detailed explanations of tools such as vmstat, iostat, dstat, iotop, pidstat, top/htop, mpstat, netstat, ps, strace, lsof, perf, and sar, along with practical command examples and usage tips.

Performance MonitoringSystem Toolsdstat
0 likes · 16 min read
Master Linux Performance: Essential Monitoring Tools and Practical Usage
21CTO
21CTO
Jun 18, 2016 · Backend Development

How to Debug Rare Core Dumps in High‑Concurrency Nginx: Tools & Strategies

This article shares a detailed post‑mortem of debugging extremely rare core dumps and memory leaks in a high‑concurrency Nginx HTTPS implementation, covering root‑cause analysis, custom stress‑test frameworks, and the use of tools such as gdb, valgrind, AddressSanitizer, perf and flame graphs to locate and fix the issues.

Debuggingasancore dump
0 likes · 21 min read
How to Debug Rare Core Dumps in High‑Concurrency Nginx: Tools & Strategies