I'm going to suggest that this is for performance testing, and you want to eliminate the effects of cache between runs.
In this case, what you need to know in order to do this effectively:
- L2 cache allocation size
- How many allocations are in the L2 cache
Then it is basically a matter of touching the allocation_sizebyte memory from each other until you completely clear the cache.
- wait , , , .