Analyzing And Managing Shared Cache In Chip Multi-Processors