Parallel Computing
605
A major problem with such interconnection
schemes is known as cache coherency. If
processors cache data in memory, there is the possibility that one processor could have a
datum in its cache while another processor updates the memory version of that datum. In
order to manage this possibility, a cached copy would have to be invalidated whenever
such an update occurs. Achieving this invalidation requires communication from the
memory to the processor, or some kind of vigilance (called "snooping") in the
interconnection switch. On the other hand, a distributed memory computer does not incur
the cache coherency problem, but rather trades this for a generally longer access time for
remote data.
Distributed memory multiprocessors bet on a high degree of locality, in the sense that
most accesses will be made to local memory, in order to achieve performance. They also
mask latency of memory accesses by switching to a different thread when a remote
access is needed.
Do'stlaringiz bilan baham: