Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mem: l2 cache use drrip replacement #304

Merged
merged 1 commit into from
Feb 27, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions configs/common/Caches.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,8 @@ class L2Cache(Cache):
# recvTimingResp serviceMSHR latency
response_latency = 0

replacement_policy = DRRIPRP(constituency_size = 64, team_size = 8)

cache_level = 2
enable_wayprediction = False

Expand Down
2 changes: 1 addition & 1 deletion src/mem/cache/cache.cc
Original file line number Diff line number Diff line change
Expand Up @@ -814,7 +814,7 @@ Cache::serviceMSHRTargets(MSHR *mshr, const PacketPtr pkt, CacheBlk *blk)
.missLatency[tgt_pkt->req->requestorId()] +=
completion_time - target.recvTime;
stats.cmdStats(tgt_pkt)
.missLatencyDist.sample((completion_time - target.recvTime)/500);
.missLatencyDist.sample(ticksToCycles(completion_time - target.recvTime));

if (tgt_pkt->cmd == MemCmd::LockedRMWReadReq) {
// We're going to leave a target in the MSHR until the
Expand Down
Loading