Sharing-aware resource management for multicore systems