Pareto optimization for cache and memory management