https://bugs.kde.org/show_bug.cgi?id=380942

Josef Weidendorfer <josef.weidendor...@gmx.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
     Ever confirmed|0                           |1

--- Comment #2 from Josef Weidendorfer <josef.weidendor...@gmx.de> ---
Nice!

State transitions look good.
Getting read of the empty Ir simulation can be done after merging.

But to really distinguish between true and false sharing, remembering the last
access is not really enough. It may identify true sharing as false sharing.

E.g. multiple accesses from the same thread could cover all of a cache line,
yet it is identified as false sharing if the first access of another thread
does not overlap with the last access of the original thread.

The real solution would be to maintain a bitmap (on a 64-bit architecture,
using a 64-bit integer for a cacheline size of 64 bytes is a perfect match).
Updating the bitmap may be slightly slower, but checking for overlap is
just an AND operation.
I actually do that in the simulator for "cache use"; we can copy it from
there.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to