Tag

cgroup

1 views collected around this technical thread.

Raymond Ops
Raymond Ops
May 31, 2025 · Operations

Master Docker Container Management: Run, Stop, Resource Limits & Best Practices

This guide walks through Docker container fundamentals, covering how to run containers with CMD or ENTRYPOINT, keep them alive, attach or exec into them, stop/start/restart, pause/unpause, remove, apply memory, CPU and block I/O limits, and explains the underlying cgroup and namespace technologies that enforce isolation and resource control.

Container ManagementDevOpsDocker
0 likes · 18 min read
Master Docker Container Management: Run, Stop, Resource Limits & Best Practices
System Architect Go
System Architect Go
Dec 11, 2024 · Cloud Native

Kubernetes CPU Configuration and Linux CFS Interaction

This article explains how Kubernetes resource requests and limits map to Linux cgroup settings via the CFS scheduler, illustrates the underlying calculations for cpu.shares and cpu.cfs_quota_us, and discusses the impact on programming languages such as Go and Java within containers.

CFSCPUJava
0 likes · 5 min read
Kubernetes CPU Configuration and Linux CFS Interaction
IT Services Circle
IT Services Circle
Jul 8, 2024 · Cloud Native

Understanding Cloud Native: A Historical and Technical Overview of Container Technology

This article introduces the "You Call This Thing Cloud Native" series by tracing the evolution of container technology—from early virtual machines and Linux namespaces to Docker’s image system—explaining why containers surged in popularity around 2013 and what fundamentals readers should grasp.

ContainersDockerTechnology History
0 likes · 7 min read
Understanding Cloud Native: A Historical and Technical Overview of Container Technology
Bilibili Tech
Bilibili Tech
Jun 4, 2024 · Big Data

Improving Resource Utilization and Isolation in Bilibili Big Data Clusters with the Amiya Over‑commit Component

By deploying the self‑developed Amiya over‑commit component together with kernel‑level cgroup memory isolation, explicit task priorities, OOM‑priority killing, and asynchronous reclamation, Bilibili’s big‑data clusters boosted daily resource utilization by about 15 %, eliminated DataNode OOM kills, cut memory‑reclaim latency to zero, and achieved a further 9 % overall efficiency gain.

OOM Prioritybig datacgroup
0 likes · 18 min read
Improving Resource Utilization and Isolation in Bilibili Big Data Clusters with the Amiya Over‑commit Component
Mike Chen's Internet Architecture
Mike Chen's Internet Architecture
Apr 19, 2024 · Cloud Native

Understanding Docker: Architecture, Core Components, and Underlying Mechanisms

This article explains Docker’s core architecture—including images, containers, and registries—and details how Linux namespaces, cgroups, and UnionFS work together to provide resource isolation, limitation, and lightweight virtualization, while also offering promotional links to extensive architecture and interview collections.

ContainersDockerUnionFS
0 likes · 6 min read
Understanding Docker: Architecture, Core Components, and Underlying Mechanisms
OPPO Kernel Craftsman
OPPO Kernel Craftsman
Mar 8, 2024 · Operations

Evolution and Mechanisms of Linux I/O Schedulers (Kyber, MQ‑Deadline, BFQ)

From legacy spinning-disk optimizations to modern SSD-focused QoS, Linux’s I/O scheduler landscape has evolved through noop, deadline, cfq and now multiqueue designs such as Kyber, MQ-Deadline, and BFQ, each employing distinct latency, deadline, and budget-fairness algorithms, supporting cgroup/ionice priorities, and complemented by numerous experimental out-of-tree implementations.

BFQI/O schedulerKyber
0 likes · 10 min read
Evolution and Mechanisms of Linux I/O Schedulers (Kyber, MQ‑Deadline, BFQ)
Tencent Cloud Developer
Tencent Cloud Developer
May 31, 2023 · Cloud Computing

TencentOS "Wujing": Server Memory Multi-Level Offloading Solution for Cloud Data Centers

TencentOS “Wujing” provides a server‑memory multi‑level offloading framework that uses kernel‑side reclamation, heat‑aware page classification, SWAP balancing, and CXL promotion to shift cold pages to cheaper storage, cutting data‑center memory use by up to 50 % while preserving performance.

DAMONLinux KernelMemory Optimization
0 likes · 14 min read
TencentOS "Wujing": Server Memory Multi-Level Offloading Solution for Cloud Data Centers
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.

CPU utilizationcgroupcloud 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.

CPULinuxcgroup
0 likes · 28 min read
Deep Dive into Linux cgroup CPU Subsystem and Container CPU Bandwidth Control
OPPO Kernel Craftsman
OPPO Kernel Craftsman
Feb 17, 2023 · Fundamentals

Fundamental Overview of Linux cgroup Architecture and Initialization (Kernel 5.10)

The article explains Linux cgroup architecture and initialization in kernel 5.10, covering its hierarchical composition, key data structures like css_set, the two‑phase boot‑time setup, creation of cgroups, and task assignment mechanisms for both cgroup v1 and v2.

Linuxcgroupkernel
0 likes · 14 min read
Fundamental Overview of Linux cgroup Architecture and Initialization (Kernel 5.10)
OPPO Kernel Craftsman
OPPO Kernel Craftsman
Jan 6, 2023 · Fundamentals

CFS Group Scheduling: Purpose, Configuration, and Kernel Implementation Details

The article explains why Linux’s Completely Fair Scheduler introduced group scheduling, how Android configures task groups via cpu.shares and Process.java, and details the kernel structures (task_group, sched_entity, cfs_rq) and algorithms for weight calculation, load measurement, propagation, and hierarchical load balancing.

CFS schedulingLinux kernelLoad Balancing
0 likes · 28 min read
CFS Group Scheduling: Purpose, Configuration, and Kernel Implementation Details
ByteDance SYS Tech
ByteDance SYS Tech
Dec 30, 2022 · Operations

How Linux PSI Quantifies Resource Bottlenecks and Boosts Performance

This article explains Linux's Pressure Stall Information (PSI) mechanism, its /proc and cgroup interfaces, how to monitor CPU, memory, and I/O pressure, and presents code‑level optimizations to reduce PSI overhead and improve system performance.

LinuxPSIPerformance Monitoring
0 likes · 11 min read
How Linux PSI Quantifies Resource Bottlenecks and Boosts Performance
37 Interactive Technology Team
37 Interactive Technology Team
Aug 15, 2022 · Operations

Understanding Linux cgroups and Controlling Process CPU Usage

The article introduces Linux cgroups as a kernel feature for limiting resources, explains their terminology and functions, and demonstrates a hands‑on experiment that creates a CPU cgroup, sets cpu.cfs_quota_us to restrict a process to roughly 25 % CPU usage, confirming effective resource control.

CPU LimitingLinuxcgroup
0 likes · 7 min read
Understanding Linux cgroups and Controlling Process CPU Usage
Bilibili Tech
Bilibili Tech
Jun 17, 2022 · Information Security

Container Escape Techniques, Exploits, and Mitigation Strategies

The article explains how attackers can break out of Docker containers by exploiting misconfigurations, vulnerable Docker components, kernel bugs, or Kubernetes RBAC errors, illustrates real‑world exploits such as host‑proc mounts and CVE‑2019‑5736, and provides mitigation steps like limiting privileges, updating software, and securing configurations.

Container SecurityDockerKubernetes
0 likes · 15 min read
Container Escape Techniques, Exploits, and Mitigation Strategies
Cloud Native Technology Community
Cloud Native Technology Community
Dec 2, 2021 · Cloud Native

Understanding cgroup and namespace in Linux for Cloud‑Native Containers

This article explains the role of Linux cgroup and namespace technologies in providing resource isolation and security for containers, traces their historical development from early chroot mechanisms to modern Docker and Kubernetes, and details cgroup architecture, core files, migration, delegation, and practical usage examples.

DockerLinuxcgroup
0 likes · 17 min read
Understanding cgroup and namespace in Linux for Cloud‑Native Containers
360 Tech Engineering
360 Tech Engineering
Oct 9, 2021 · Cloud Native

Using LXCFS to Provide Accurate /proc Data Inside Containers

This article explains the problem of inaccurate /proc information in container environments, introduces LXCFS as a FUSE‑based solution that maps cgroup data to /proc, and provides step‑by‑step instructions for installing, mounting, and using LXCFS with Docker and Kubernetes.

ContainersFUSEKubernetes
0 likes · 7 min read
Using LXCFS to Provide Accurate /proc Data Inside Containers
Tencent Architect
Tencent Architect
Sep 29, 2021 · Cloud Native

How TencentOS “Ruyi” Solves Page‑Cache Overuse in Container Environments

This article explains the challenges of uncontrolled page‑cache growth in containerized workloads, reviews community attempts to limit it, and details TencentOS “Ruyi” memory‑QoS solutions—including cgroup‑level page‑cache limits, implementation details, and observed performance effects.

TencentOScgroupcontainer
0 likes · 10 min read
How TencentOS “Ruyi” Solves Page‑Cache Overuse in Container Environments
Refining Core Development Skills
Refining Core Development Skills
Sep 24, 2021 · Operations

Limiting CPU Usage of a Third‑Party SDK with cgroup and cpuset on Linux

This article demonstrates how to accurately measure and restrict the CPU consumption of a CPU‑intensive third‑party SDK by creating and configuring cgroup and cpuset groups, binding the process to a single core, and verifying the limits with stress testing tools.

CPU Limitingcgroupcpuset
0 likes · 7 min read
Limiting CPU Usage of a Third‑Party SDK with cgroup and cpuset on Linux
Tencent Architect
Tencent Architect
Sep 14, 2021 · Cloud Native

How TencentOS “Ruyi” Achieves Network QoS for Mixed Online/Offline Workloads

This article explains TencentOS “Ruyi” network QoS, detailing its resource isolation concepts, tc+htb and cgroup configurations, performance testing, and the advantages of the Ruyi netqos scheme over traditional tc solutions for mixed online and offline container workloads.

TencentOScgroupcloud native
0 likes · 10 min read
How TencentOS “Ruyi” Achieves Network QoS for Mixed Online/Offline Workloads
Aikesheng Open Source Community
Aikesheng Open Source Community
Sep 14, 2021 · Databases

Testing MySQL open_files_limit: Which Configuration Takes Effect – my.cnf, systemd Service, or Docker Limits

This article presents a systematic investigation of MySQL's open_files_limit setting across three scenarios—conflict between my.cnf and systemd service, effectiveness when using mysqld_safe, and the impact of Docker's own limits—revealing which source actually controls the maximum number of open files.

DockerMySQLcgroup
0 likes · 10 min read
Testing MySQL open_files_limit: Which Configuration Takes Effect – my.cnf, systemd Service, or Docker Limits