Docsity

Faster Processing with Multithreaded Processors: Explicit-Rotation Scheduling, Slides of Computer Architecture and Organization

Partial preview of the text

Download Faster Processing with Multithreaded Processors: Explicit-Rotation Scheduling and more Slides Computer Architecture and Organization in PDF only on Docsity!

Multithreaded Processors

 A) Introduction

 B) Processor Architecture

 C) Instruction Scheduling Strategy

 D) Static Code Scheduling

 E) Estimation

 F) Conclusion

 G) References

A) Introduction

Why do we present multithreaded processor architecture?

The generation of high quality images requires great processing power. Furthermore , modelling the real world as faithfully as possible , intensive numerical computations are also needed.This architecture could run such a graphics system.

To give an example ; Simulation results show that by executing 2 and 4 threads in parallel on a nine-functional-unit processor , a 2.02 and a 3.72 times speed- up , respectively , can be achieved over a conventional RISC processor.

Introduction

Single Thread Execution has some disadvantages :

Each thread executes a number of data accesses and

conditional branches. In the case of a distrubuted shared

memory system ;

1. Low processor utilization can result from long latencies

due to remote memory access.

2. Low utilization of functional units within a processor

can result from inter-instruction dependencies and

functional operation delays.

Introduction

 Concurrent Multithreading

Attemps to remain active during long latencies due to remote memory access.

When a thread encounters an absence of data , the processor rapidly switches between threads.

 Parallel Multithreading

Within a processor is a latency hiding technique at the instruction level.

When an instruction from a thread is not able to be issued because of either a control or data dependency within the thread , an independent instruction from another thread is executed.

Processor Architecture

 The processor is provided with several instruction queue unit and

decode unit pairs , called thread slots.

 Each thread slot , associated with a program counter , makes up a

logical processor.

Instruction queue unit : Has a buffer which saves some instructions succeeding the instruction indicated by the program counter.

Decode Unit : Gets an instruction from an instruction queue unit and decodes it. Branch instructions are executed within the decode unit.

Processor Architecture

 Issued instructions are dynamically scheduled by instruction

schedule units and delivered to functional units.

 When an instruction is not selected by an instruction schedule unit ,

it is stored in a standby station and remains there until it is

selected.

Large Register Files : Diveded into blocks , each of which is used as

a full register set private to a thread. Each bank has two read ports and one write port. When a thread is executed the bank allocated for the thread is logically bound to the logical processor.

Queue Registers : Special registers which enable communications

between logical processors at the register-transfer level.

Processor Architecture

 Instruction Pipeline

 S ; This stage is inserted for the dynamic scheduling in instruction schedule units. Required operands are read from registers in stage S.

 EX ; This stage is dependent on the kind of instruction.

 W ; Result value is written back to a register.

C) Instruction Scheduling Strategy

 Dynamic inst. scheduling policy is presented in the inst. schedule unit which works in one of two modes :

  1. Implicit-rotation mode : Priority rotation occurs at a given # of cycles. (rotation interval) as shown in figure 4.
  2. Explicit-rotation mode : Rotation of priority is controlled by software. The rotation is done when a change-priority instruction is executed on the logical processor with the highest priority.

D) Static Code Scheduling

Main Goal : The complier reorders the code without consideration of

other threads , and concentrates on shortening the the processing time

each thread.

A new algorithm which makes the most of the function standby station

and instruction schedule units has been developed.

Algorithm employs a resource reservation table and standby table.

Static Code Scheduling

 Resource Reservationtion Table

  1. To avoid resource conflicts.
  2. To tell the complier when the instruction in the standby station

is executed.

 Standby Table

  1. Stores the instructions which are not issued.

Explicit-rotation mode enables the complier to know which instruction is selected.

Estimation

 1.83 times speed-up is gained by parallel execution by using 2 thread slots although all of the hardware of a single-threaded processor is not duplicated in processor.  By using 4 thread slots 2.89/1.83 = 1.58 we gain less effective increase.  When 8 thread slots are provided , the utilization of the busiest functional unit , load/store unit , becomes 99%. This is the reason why speed up is saturated at only 3.22 times.  Addition of another load/store unit improves speed-up ratios by 10.4~79.8 %.

Estimation

 Stand-by stations improve the speed-up ratio by 0~2.2%.

 In the case of application programs whose thread is rich in fine- grained parallelism , greater improvement can be achieved.

Estimation

 Strategy B is overall superior to other strategies. It achieves the performance improvement by 0~19.3 %.

 The object code contains three load instructşons and store instruction , so at least (3+1)*2=8 cycles are required for one iteration.

F) Conclusion

  1. 2-threaded , 2 load/store unit processor achieves a factor of 2. speed up over a sequential machine and 4 threaded processor achieves a factor of 3.72.
  2. A new static code scheduling algorithm has been developed , which is derived from idea of software pipelining.
  3. Poor variety of tested programs ( ex: cache effects ...) is the weak point.
  4. Working on evaluating finite cache effects and the detailed degisn of the processor help us to confirm the effectiveness of architecture.