Cache Resource Allocation in Large-Scale Chip Multiprocessors.