Linux Cache Aware Scheduling Extended for Better Performance: 360% in MySQL
3 hours ago
- #Linux Performance
- #Cache Scheduling
- #Kernel Optimization
- Cache Aware Scheduling (CAS) was recently merged into Linux 7.2 to enhance performance by colocating tasks that share data within the same last-level cache (LLC) domain, improving cache locality and reducing misses.
- Current CAS uses an LLC-centric aggregation model but struggles with workloads that don't fit within a single LLC domain, as it can't effectively extend to higher-level domains, leading to poor locality preservation.
- Hygon has proposed new patches to extend CAS into a topology-aware, hierarchical task aggregation system that dynamically expands and contracts across scheduling domains based on workload demands.
- Benchmark results for these patches show significant performance improvements: up to 49% in Hackbench, 20% in Schbench, and as much as 360% in MySQL.