continue;
}
totalfreq = (totalfreq*GC_CACHE_ADAPT_DOMINATE_THRESHOLD)/100/BAMBOO_PAGE_SIZE;
+ hotfreq/=BAMBOO_PAGE_SIZE;
if(hotfreq < totalfreq) {
// use hfh
policy.cache_mode = BAMBOO_CACHE_MODE_HASH;
}
totalfreq/=BAMBOO_PAGE_SIZE;
+ hotfreq/=BAMBOO_PAGE_SIZE;
// locally cache the page in the hotest core
// NOTE: (x,y) should be changed to (x+1, y+1)!!!
policy.cache_mode = BAMBOO_CACHE_MODE_COORDS;
continue;
}
totalfreq/=BAMBOO_PAGE_SIZE;
+ hotfreq/=BAMBOO_PAGE_SIZE;
// locally cache the page in the hotest core
// NOTE: (x,y) should be changed to (x+1, y+1)!!!
policy.cache_mode = BAMBOO_CACHE_MODE_COORDS;