Implement GClock algorithm to distinguish between hot pages and scan touches

This commit is contained in:
PThorpe92
2025-09-02 21:27:29 -04:00
parent 254a0a9342
commit 582e25241e
2 changed files with 405 additions and 167 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -2421,7 +2421,7 @@ mod tests {
})
};
let _ = thread.join();
let cache = cache.read();
let mut cache = cache.write();
let page_key = PageCacheKey::new(1);
let page = cache.get(&page_key).unwrap();
assert_eq!(page.unwrap().get().id, 1);