54 (
const MaxCapacityPartitioningPolicyParams ¶ms):
56 blkSize(params.blk_size), partitionIDs(params.partition_ids),
57 capacities(params.capacities)
60 if (this->
partitionIDs.size() != this->capacities.size()) {
61 fatal(
"MaxCapacity Partitioning Policy configuration invalid: ids and "
62 "capacities arrays are not equal lengths");
74 if (!(cap_frac >= 0 && cap_frac <= 1)) {
75 fatal(
"MaxCapacity Partitioning Policy for PartitionID %d has "
76 "Capacity Fraction %f outside of [0,1] range", partition_id,
80 const uint64_t allocated_block_cnt = cap_frac * total_block_cnt;
83 DPRINTF(PartitionPolicy,
"Configured MaxCapacity Partitioning Policy "
84 "for PartitionID: %d to use portion of size %f (%d cache blocks "
85 "of %d total)\n", partition_id, cap_frac, allocated_block_cnt,
A replaceable entry is a basic entry in a 2d table-like structure that needs to have replacement func...