Refining Core Development Skills
Author

Refining Core Development Skills

Fei has over 10 years of development experience at Tencent and Sogou. Through this account, he shares his deep insights on performance.

143
Articles
0
Likes
432
Views
0
Comments
Recent Articles

Latest from Refining Core Development Skills

100 recent articles max
Refining Core Development Skills
Refining Core Development Skills
Apr 4, 2023 · Cloud Native

Understanding Container CPU Utilization: Accurate Measurement Methods and the Missing Nice/IRQ/SoftIRQ Metrics

This article explains how to correctly obtain CPU utilization inside containers, compares host and container metrics, describes the use of lxcfs and cgroup files (including cgroup V1/V2) for accurate measurement, and clarifies why container statistics omit nice, irq, and softirq fields.

Monitoringcgroupcloud-native
0 likes · 16 min read
Understanding Container CPU Utilization: Accurate Measurement Methods and the Missing Nice/IRQ/SoftIRQ Metrics
Refining Core Development Skills
Refining Core Development Skills
Mar 14, 2023 · Operations

Deep Dive into Linux cgroup CPU Subsystem and Container CPU Bandwidth Control

This article explains how Linux cgroup’s CPU controller works, covering the creation of cgroups, the kernel structures involved, how CPU time limits are configured via cfs_period_us and cfs_quota_us, how processes are attached to cgroups, and the scheduling mechanisms that enforce bandwidth limits in containers.

cgroupcontainerresource control
0 likes · 28 min read
Deep Dive into Linux cgroup CPU Subsystem and Container CPU Bandwidth Control