Hello, Deepika,
Prefetches are currently only considered useful when they are not late. To add
late prefetches to the useful ones you will have to modify
serviceMSHRTargets(), so that in the case MSHR::Target::FromCPU the prefetcher
is notified when the MSHR of a blk->wasPrefetched() is serviced.
By default hits are not notified to the prefetcher; therefore, usefulPrefetches
is not updated. To update the number of useful prefetches you have to set
prefetch_on_access=True in the cache. This does not seem correct, so I've
uploaded a proposed fix for review:
https://gem5-review.googlesource.com/c/public/gem5/+/38177/1.
Minor note: if you are using the develop branch, or have applied commit
https://gem5-review.googlesource.com/c/public/gem5/+/35699 locally, it must be
fixed with the following patch:
https://gem5-review.googlesource.com/c/public/gem5/+/38176
Regards,Daniel #yiv9065000498 P {margin-top:0;margin-bottom:0;}I want to
calculate the prefetch accuracy for stride prefetcher. I saw that there are two
variables usefulPrefetches and issuedPrefetches in Base Pefetcher. These are
used in Queued Prefetcher class to calculate prefetch accuracy. I tried using
them for stride prefetcher as well. But the value of usefulPrefetches is always
0. Is this a bug or am I understanding something wrong?
Best Regards,Deepika_______________________________________________
gem5-users mailing list -- [email protected]
To unsubscribe send an email to [email protected]
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s