Linux Namespaces and cgroups: The Foundation of Container Technology

Overview Linux Namespaces and cgroups: The Foundation of Container Technology is an essential skill in SRE operations. In production environments, mastering these techniques can significantly improve system stability and operational efficiency. Why Linux Namespaces and cgroups Matters As systems grow in scale and complexity, traditional operations approaches struggle to meet the demands of modern distributed systems. Linux Namespaces and cgroups helps operations teams: Rapid Problem Resolution: Systematic tools and methods reduce troubleshooting time Improved System Visibility: Establish comprehensive monitoring and observability Proactive Fault Prevention: Identify and fix potential risks before they cause outages Resource Optimization: Allocate and schedule resources efficiently Core Concepts and Principles Basic Concepts The core of Linux Namespaces and cgroups lies in establishing standardized processes and automated toolchains....

June 28, 2026 · 3 mins · 576 words · XuBaojin

Cloud Native Security: Container Security, Image Scanning, and Runtime Protection

Overview Cloud Native Security: Container Security, Image Scanning, and Runtime Protection is an essential skill in SRE operations. In production environments, mastering these techniques can significantly improve system stability and operational efficiency. Why Cloud Native Security Matters As systems grow in scale and complexity, traditional operations approaches struggle to meet the demands of modern distributed systems. Cloud Native Security helps operations teams: Rapid Problem Resolution: Systematic tools and methods reduce troubleshooting time Improved System Visibility: Establish comprehensive monitoring and observability Proactive Fault Prevention: Identify and fix potential risks before they cause outages Resource Optimization: Allocate and schedule resources efficiently Core Concepts and Principles Basic Concepts The core of Cloud Native Security lies in establishing standardized processes and automated toolchains....

October 26, 2025 · 3 mins · 572 words · XuBaojin

cgroup v2 Complete Guide: From Architecture Principles to Production Practices

Overview In today’s era of cloud-native and containerized technologies, Linux cgroups (control groups) serve as the kernel-level foundation for resource isolation and limiting. From Docker container memory limits to Kubernetes Pod CPU Requests/Limits, the underlying mechanism relies on cgroups. However, cgroup v1’s multi-hierarchy architecture, inconsistent controller behavior, and confusing thread model have caused numerous operational headaches in production. cgroup v2, as a complete reimagining of v1, adopts a unified hierarchy architecture that fundamentally addresses v1’s design flaws....

July 23, 2024 · 23 mins · 4791 words · XuBaojin