Simulating Resource Contention Before It Happens
Efficiently distributing a system's resources across workloads is a constant challenge, especially when those workloads interfere with one another. Facebook's open-source resctl-demo tool aims to make this problem more tractable by letting developers simulate resource conflicts and experiment with mitigation strategies in a controlled environment.
How the Demo Works
The tool guides users through realistic scenarios of resource contention—the kind that typically emerges in large-scale server deployments. Each scenario provides live demonstrations and detailed explanations of the underlying mechanisms. Because the simulated conflicts mirror real-world production issues, the strategies you develop with resctl-demo apply directly to server fleets and can be adapted for smaller devices like laptops and phones.
Why Resource Control Is Difficult
Proper resource control lets distinct tasks share a system without disrupting one another. Done well, it allows you to maximize utilization without sacrificing reliability, responsiveness, or the ability to recover from failures—even when maintenance workloads spike unexpectedly.
The difficulty is that interactions between resources and configurations are often complex and counterintuitive. What works in one setup may cause cascading problems in another. resctl-demo is designed to build an intuitive, hands-on understanding of these dynamics, shortening the path from theoretical best practices to practical, reliable deployments.
Getting Started
To lower the barrier to entry, Facebook provides two ready-made images:
- An Amazon Machine Image (AMI) that launches a fully configured instance on AWS.
- A USB drive image for installing the demo on a local machine.
The project and additional setup documentation are available on GitHub and the project website.



