1. A method for operating a cache memory that has been partitioned into two or more partitions for one or more corresponding entities, comprising: in a partitioning mechanism in the cache memory, performing operations for: partitioning one or more of the partitions in the cache memory into two or more sub-partitions for one or more sub-entities of a corresponding entity; and using a corresponding sub-partition for memory accesses by the one or more sub-entities.