Lec1 Q
Lec1 Q
Q: Consider a shared bus parallel computer built using 32 bit RISC processors running at 2 GHz which
carry out one instruction per clock cycle. Assume that 15% of the instructions are loads and 10% are
stores. Assume:
• 0.95 hit rate to cache for read and write through caches.
• The bandwidth of the bus is given as 20 GB/s.
• Each processor executes 2 billion cycles per second (2 GHz), with one instruction per cycle.
1. 1.How many processors can the bus support without getting saturated?
2. 2.If caches are not there how many processors can the bus support assuming the main memory
is as fast as the cache?
Solution:
In such a system, multiple processors share a common memory and access it via a shared
communication bus. Each processor has a local cache to reduce the frequency of memory accesses, as
cache hits don’t require bus usage. If there are too many processors, the bus may become saturated,
meaning it reaches its maximum data transfer capacity, which can limit the number of processors that
can be supported efficiently.
With cache
Number of processors which can be supported = the total bus bandwidth / Number of Transactions to
Main Memory (per Second) for a processor
• The problem assumes a write-through cache; hence, all stores go to memory directly. This
means all store instructions require bus access.
2. Number of write Transactions to Main Memory
= writes percentage * processor cycles per second
= 0.1 * (2 * 109) = 0.2 * 109 write transactions per second