Skip to main content

What is the difference between hard and soft quotas in cgroups v2?

Senior Docker
Quick Answer cgroups v2 uses a unified hierarchy. Soft quota (memory.low) is a best-effort lower bound รขโ‚ฌโ€ memory below this is less likely to be reclaimed under pressure. Hard quota (memory.max) is the hard ceiling รขโ‚ฌโ€ processes are killed if they exceed it. v2 also adds memory.high (soft max that triggers throttling before killing).

Answer

Hard quotas strictly enforce limits; soft quotas allow temporary bursts.
S
SugharaIQ Editorial Team Verified Answer

This answer has been peer-reviewed by industry experts holding senior engineering roles to ensure technical accuracy and relevance for modern interview standards.

Want to bookmark, take notes, or join discussions?

Sign in to access all features and personalize your learning experience.

Sign In Create Account

Source: SugharaIQ

Ready to level up? Start Practice