Deepin Linux
Deepin Linux
Jan 10, 2026 · Operations

Master Linux Process Load Balancing with cgroups and taskset: A Step‑by‑Step Guide

This article explains how to use Linux's built‑in cgroups and taskset tools to monitor, limit, and bind process workloads, providing detailed commands, subsystem explanations, collaborative usage strategies, real‑world case studies, and troubleshooting tips for improving system performance and stability.

LinuxPerformance optimizationProcess Management
0 likes · 29 min read
Master Linux Process Load Balancing with cgroups and taskset: A Step‑by‑Step Guide
Deepin Linux
Deepin Linux
Jan 3, 2026 · Operations

Boost Linux Performance: Master CPU Affinity and Scheduling

This article explains the fundamentals of Linux CPU affinity, compares soft and hard binding, shows how to use taskset, sched_setaffinity, numactl and cgroup cpuset, and provides real‑world case studies for servers, game frameworks, Nginx and Hadoop clusters.

CPU schedulingLinux performancecgroups
0 likes · 36 min read
Boost Linux Performance: Master CPU Affinity and Scheduling
Liangxu Linux
Liangxu Linux
Aug 4, 2024 · Fundamentals

Unlock CPU Performance: Master Hyper‑Threading and Affinity on Linux

This article explains hyper‑threading fundamentals, distinguishes physical, logical, and CPU cores, shows how to query CPU topology on Linux, introduces the concept of CPU affinity, demonstrates using the taskset command and related syscalls, and provides C API examples for setting process and thread affinity.

Hyper-threadingLinuxcpu_affinity
0 likes · 14 min read
Unlock CPU Performance: Master Hyper‑Threading and Affinity on Linux
Liangxu Linux
Liangxu Linux
May 14, 2024 · Fundamentals

Mastering CPU Affinity and Hyper‑Threading on Linux

This guide explains the concepts of Hyper‑Threading, physical vs logical CPUs, how to query CPU information on Linux, and provides detailed instructions for using the taskset command and related programming APIs to set and retrieve CPU affinity for processes and threads.

Linuxcpu_affinitymultithreading
0 likes · 12 min read
Mastering CPU Affinity and Hyper‑Threading on Linux
ITPUB
ITPUB
Jun 20, 2017 · Cloud Computing

How to Bind KVM vCPU to Specific Host CPUs with taskset

This guide explains processor affinity, shows how to isolate host CPUs using the isolcpus kernel parameter, and provides step‑by‑step commands to launch a KVM guest and bind its vCPU threads to dedicated CPUs with taskset, including verification techniques and useful tips.

KVMcpu_affinitytaskset
0 likes · 14 min read
How to Bind KVM vCPU to Specific Host CPUs with taskset
ITPUB
ITPUB
Nov 15, 2016 · Operations

How to Fix CPU0 Overload on Multi‑Core Web Servers Using taskset and PHP‑FPM

This article shows how to detect a CPU0 load imbalance on a multi‑core web server, confirms PHP‑FPM as the cause with mpstat and pidstat, and provides a Bash script that uses taskset to evenly distribute PHP‑FPM processes across all CPUs, plus a cron tip to keep the setting persistent.

cpu_affinitympstatphp-fpm
0 likes · 6 min read
How to Fix CPU0 Overload on Multi‑Core Web Servers Using taskset and PHP‑FPM