Home | History | Annotate | Download | only in utils

Lines Matching full:cost

38  * resource, and the corresponding cost, priority, owner ID, and conflicting keys list used
47 ClientDescriptor(const KEY& key, const VALUE& value, int32_t cost,
49 ClientDescriptor(KEY&& key, VALUE&& value, int32_t cost, std::set<KEY>&& conflictingKeys,
65 * Return the cost for this descriptor.
113 ClientDescriptor<KEY, VALUE>::ClientDescriptor(const KEY& key, const VALUE& value, int32_t cost,
115 mValue{value}, mCost{cost}, mConflicting{conflictingKeys}, mPriority{priority},
119 ClientDescriptor<KEY, VALUE>::ClientDescriptor(KEY&& key, VALUE&& value, int32_t cost,
121 mKey{std::forward<KEY>(key)}, mValue{std::forward<VALUE>(value)}, mCost{cost},
206 * the max cost allowed for this ClientManager, descriptors with non-zero cost, equal or lower
207 * priority, and a different owner will be evicted in LRU order until either the cost is less
208 * than the max cost, or all descriptors meeting this criteria have been evicted and the
215 // The default maximum "cost" allowed before evicting
325 * either conflict with this client, or contribute to the resource cost if that would
385 int32_t cost = client->getCost();
389 int64_t totalCost = getCurrentCostLocked() + cost;
430 // - The total cost including the incoming client's is more than the allowable
431 // maximum, and the client has a non-zero cost, lower priority, and a different
452 // If the total cost is too high, return the input unless the input has the highest priority