ARMV8中PRFM操作的特定流量是多少?
在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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
预取完全取决于时机。您无法保证“等待直到数据到达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 ...
... 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.