TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Understanding Hardware Transactional Memory [pdf]

34 pointsby dmitabout 9 years ago

3 comments

Animatsabout 9 years ago
This is compare-and-swap, the next generation. It&#x27;s going to be useful.<p>It&#x27;s a bit vague about what happens when you get contention and a transaction rejects. Try again immediately? Spin and try again? Wait and try again? Wait and try again with exponential backoff? All of the above, in sequence?<p>There are a few spots in Go where the concurrency isn&#x27;t airtight, such as shared maps. This allows fixing that problem.
评论 #11418792 未加载
sievebrainabout 9 years ago
What this presentation doesn&#x27;t mention is that HotSpot supports automatic conversion of synchronised blocks to TSX transactions already. So if you run the latest HotSpots on the latest Intel chips (note: TSX was disabled for some Haswells) then you are already benefiting from this!<p>What people found, if I recall correctly, was that a lot of popular software doesn&#x27;t benefit much because it wasn&#x27;t written to reduce data contention, and servers especially often contend on statistics and metrics counters. But the slides show ways to avoid that. Also, the most popular software was often already well optimised to reduce lock contention.
bajsejohannesabout 9 years ago
Here&#x27;s the talk: <a href="http:&#x2F;&#x2F;www.infoq.com&#x2F;presentations&#x2F;hardware-transactional-memory" rel="nofollow">http:&#x2F;&#x2F;www.infoq.com&#x2F;presentations&#x2F;hardware-transactional-me...</a>
评论 #11460597 未加载