Transactional Memory: Lo bueno y lo posiblemente feo
El gran Greg Pfister tiene un artículo en su blog sobre memoria transaccional, soportada por la próxima familia de chips de Intel, Haswell. Explica qué es y para qué puede servir:
With the usual lock semantics, you could simply have one coarse lock around the whole table: Only one person, read or write, gets in at any time. This works, and is simple, but all access to the table is now serialized, so will cause a problem as you scale to more processors.
Alternatively, you could have a lock per hash bucket, for fine-grained rather than coarse locking. That’s a lot of locks. They take up storage, and maintaining them all correctly gets more complex.
Or you could do either of those – one lock, or many – but also get out your old textbooks and try once again to understand those multiple reader / single writer algorithms and their implications, and, by the way, did you want reader or writer priority? Painful and error-prone.
On the other hand, suppose everybody – readers and writers – simply says “Transaction On!” (I keep wanting to write “Flame On!”) before starting a read or a write; then does a “Commit!” when they exit. This is only as complicated as the single coarse lock (and sounds a lot like an “atomic” keyword on a class, hint hint).
Lo que se viene!!!
- noviembre 8, 2012 – Computación científica de alto desempeño en plataformas cluster, grid y cloud computing
12:06 pm, General - noviembre 10, 2012 – SC12
8:00 am, General - noviembre 12, 2012 – SCCG 2012
9:00 am, General
- noviembre 8, 2012 – Computación científica de alto desempeño en plataformas cluster, grid y cloud computing
Recent Forum Posts
admin replied Obvio que soy un esquizofréni... 1 year ago.
admin replied Me encantan 1 year ago.
admin started ¿Qué opinan de los foros? 1 year ago.Recent Post
Reciente
- dvadell en Premio ICTP para Pablo Mininni
- marianarojas en Un poco de chismerio supercomputacionil
- marianarojas en Séptimas Jornadas Argentinas de Data Mining
- marianarojas en GPU Programming in MATLAB
- marianarojas en Nobel de física 2012 acerca a la computación cuántica
Saving...


