Skip to content

Conversation

igchor
Copy link
Member

@igchor igchor commented Jun 8, 2023

instead of always inserting to topmost tier


This change is Reviewable

instead of always inserting to topmost tier
@igchor igchor requested a review from byrnedj June 8, 2023 18:36
@igchor igchor force-pushed the insert_top_tier branch from a75a987 to 21ef0c0 Compare June 8, 2023 18:58
@@ -496,7 +499,8 @@ CacheAllocator<CacheTrait>::allocateInternal(PoolId pid,
bool fromBgThread) {
auto tid = 0; /* TODO: consult admission policy */
for(TierId tid = 0; tid < getNumTiers(); ++tid) {
auto handle = allocateInternalTier(tid, pid, key, size, creationTime, expiryTime, fromBgThread);
bool evict = config_.insertTopTier || tid == getNumTiers() - 1;
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if insertTopTier == false and we are not on the last tier, why do we not evict the data? this is what we currently do.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Renamed the config param

@igchor igchor force-pushed the insert_top_tier branch from 21ef0c0 to 2d5208b Compare June 8, 2023 19:18
@byrnedj byrnedj merged commit 946b95b into intel:develop Jun 8, 2023
@igchor igchor deleted the insert_top_tier branch June 8, 2023 19:25
vinser52 pushed a commit that referenced this pull request Jul 17, 2023
instead of always inserting to topmost tier
byrnedj pushed a commit that referenced this pull request Jul 23, 2023
instead of always inserting to topmost tier
vinser52 pushed a commit that referenced this pull request Feb 29, 2024
instead of always inserting to topmost tier
vinser52 pushed a commit that referenced this pull request Mar 1, 2024
instead of always inserting to topmost tier
byrnedj pushed a commit that referenced this pull request May 21, 2024
instead of always inserting to topmost tier
byrnedj pushed a commit that referenced this pull request Jun 25, 2024
instead of always inserting to topmost tier
byrnedj pushed a commit that referenced this pull request Jun 26, 2024
instead of always inserting to topmost tier
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants