DynamoRIO / DynamoRIO/dynamorio

Support for realistic TLB size

Open
#6,232 1 comment 0 reactions 0 assignees View on GitHub
Component-DrMemtrace
Dominant language
C
Stars
3.2k
Forks
629
Avg merge
2d 15h
Merged PRs (30d)
31

Description

When I was trying to simulate a realistic Skylake CPU using Drcachesim, I found that I can not create a TLB with 1536 entries in Drcachesim. Drcachesim only allows TLBs size to be a power of two, which seems like an odd requirement to me, considering that quite a few Intel CPUs in recent years have had non-PO2 TLB sizes.

I would like to use Drcachesim to model my CPU as accurately as possible to better analyze program performance issues. I'd like to know the reason why Drcachesim disallows non-PO2 TLB sizes? Is there workaround to get around it?

https://github.com/DynamoRIO/dynamorio/blob/b420b135b2f394dec44da57cfee290d919f238bb/clients/drcachesim/common/options.cpp#L440-L446

---

This issue may be related to #4489

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.