ARMV8中PRFM操作的特定流量是多少?

发布于 2025-02-01 05:10:01 字数 178 浏览 4 评论 0原文

在ARM中, PRFM 支持预取数据以缓存。

如果我首先使用PLDL2keep将数据预取到L2缓存,请等待数据到达L2缓存。然后,PLDL1keek用于获取相同的数据, prfm 是否从内存或L2缓存获取数据?

也就是说,数据预取分级是可行的吗?

In ARM, prfm supports prefetching data to cache.

If I prefetch data to L2 cache using PLDL2KEEP first, wait until the data reaches L2 cache. Then PLDL1KEEP is used to fetch the same data, does prfm get data from memory or L2 cache?

That is, is data prefetch grading feasible?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

梦醒时光 2025-02-08 05:10:01

预取完全取决于时机。您无法保证“等待直到数据到达L2缓存”。您无法保证确保数据停留在缓存中,直到到达那里后需要它为止。

所以 ...

PRFM是否从内存或L2缓存获取数据?

... 这取决于。如果是在缓存中,您将从缓存中获取数据。如果不是,那么您将从内存中获取数据。鉴于预购只是一个提示。

Prefetch is entirely timing dependent. You have no guaranteed way to "wait until the data reaches L2 cache". You have no guaranteed way to ensure data stays in the cache until you need it once it gets there.

So ...

does prfm get data from memory or L2 cache?

... it depends. If it's in cache you'll get data from cache. If it's not then you'll get data from memory. Or not at all, given that prefetch is just a hint.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文