Because L2s are write-back caches. For reads, if it is a miss, L2 will have to go to the memory to get the value. But for writes, they stop at L2 as long as L2 has room to hold the values (enough ways in the set). Once you run out of that, i.e. capacity misses, L2 will have to replace the line and writeback the data to the memory. In short, as long as there's enough room in L2, i.e. L2 is big enough to hold the entire working set of the application, you'll never see any writebacks.
Byn On Apr 6, 2010, at 6:22 AM, Xing Zhang wrote: Hi Byn,
Thank you for reply.
You're right. I checked the cache size. To my geat surprise, the default L2 cache size is set to 16 megabytes. After setting it to 256K, I did got the write request.
But i still have a question. In the trace file, the ratio of write requests to total becomes smaller while cache size is set bigger. With 16 megabytes of cache size, there is even no write request, but still read request. How to explain it?
Thank you again.
Xing
2010/4/6 Byn Choi <bynchoi1@xxxxxxxxxxxx>
My guess is either or both:
1. Caches are too big. 2. Simulation didn't run for long enough.
So that, in the end, there wasn't any writeback requests issued down to the memory controller. Just as a sanity check, try running it for a while with really small caches.
Byn
On Apr 5, 2010, at 8:16 PM, Xing Zhang wrote:
Hi,
I want to get memory access trace of memory subsystem. I did it by adding some code to issueRequest in MemoryControl.c(ruby/system). The MemoryConrol.[hC] models memory controller component, I think it's the right place to trace memory request. But the result turned out what I got were only memory Read requests, none Write request.
Does anyone know why? Is there anything wrong?
Thanks in advance.
Xing
_______________________________________________ Gems-users mailing list Gems-users@xxxxxxxxxxx
https://lists.cs.wisc.edu/mailman/listinfo/gems-users Use Google to search the GEMS Users mailing list by adding "site:https://lists.cs.wisc.edu/archive/gems-users/" to your search.
_______________________________________________ Gems-users mailing list Gems-users@xxxxxxxxxxx https://lists.cs.wisc.edu/mailman/listinfo/gems-users
Use Google to search the GEMS Users mailing list by adding "site:https://lists.cs.wisc.edu/archive/gems-users/" to your search.
_______________________________________________ Gems-users mailing list Gems-users@xxxxxxxxxxx https://lists.cs.wisc.edu/mailman/listinfo/gems-users Use Google to search the GEMS Users mailing list by adding "site:https://lists.cs.wisc.edu/archive/gems-users/" to your search.
|
|