Shelving buffer

Shelving buffer

A shelving buffer is a technique used in computer processors to increase the efficiency of superscalar processors.

Background

A Superscalar processor allows the execution of a number of instructions simultaneously in the core of the processor itself, although this behavior is not to be confused with a multi-processor system. Most modern processors are superscalar.

Problems with Data Dependencies

Executing instructions in parallel (i.e. simultaneously) raises problems with data dependencies, meaning that some instructions may be dependent on the results of others, and hence care must be taken to execute in the correct order.

Take for example these sequence of instructions:

r1 = r2 + r3
r7 = r1 + r4

We have a RAW (Read After Write) data dependency here, meaning that we must wait for instruction 1 to finish before executing instruction 2, as we require the correct value of r1 (register 1). Hence these instruction cannot be executed simultaneously.

How it works?

With a superscalar processor, the instruction window of the processor fills up with a number of instructions (known as the issue rate). Depending on the scheme that the superscalar processor uses to dispatch these instruction from the window to the execution core of the CPU, we may encounter problems if there is a dependency not unlike the one shown above.

Consider an instruction window 3 instructions wide, containing i1, i2, i3 (instructions 1,2 & 3). Suppose that i2 is dependent on an instruction that has not yet finished executing, and we cannot execute it yet.

Without the use of a shelving buffer, the superscalar processor will execute i1, wait until i2 can be executed and then execute i2 and i3 simultaneously.

However with the use of a shelving buffer, the instruction window will be emptied into shelving buffers regardless of contents. The processor will then search for an appropriate number of instructions in the shelving buffers that can be executed in parallel (i.e. with no dependencies).

Hence the processor has a greater chance of running the maximum number of instructions simultaneously, and maximising throughput.


Wikimedia Foundation. 2010.

Игры ⚽ Нужно решить контрольную?

Look at other dictionaries:

  • Valve audio amplifier - technical — Circuitry and performance Characteristics of valves Valves are very high input impedance (near infinite in most circuits) and high output impedance devices. They are also high voltage / low current devices.While valves themselves are described… …   Wikipedia

  • arts, East Asian — Introduction       music and visual and performing arts of China, Korea, and Japan. The literatures of these countries are covered in the articles Chinese literature, Korean literature, and Japanese literature.       Some studies of East Asia… …   Universalium

  • Acorn Electron — The Acorn Electron is a budget version of the BBC Micro educational/home computer made by Acorn Computers Ltd. It had 32 kilobytes of RAM, and its ROM included BBC BASIC along with its operating system.The Electron was able to save and load… …   Wikipedia

  • Jack Warner — Infobox Actor name = Jack Warner birthname = Jacob Warner birthdate = birth date|mf=yes|1892|8|2 location = London, Ontario deathdate = death date and age|mf=yes|1978|9|9|1892|8|2 deathplace = Hollywood, Los Angeles, California yearsactive = 1927 …   Wikipedia

  • Sigri (village) — Sigri is a small fishing village near the western tip of Lesbos Island. Its name derives from the Greek word for security, based on the fact that it has a safe harbour. Sigri has a Turkish castle, built in 1746 during the Ottoman occupation,… …   Wikipedia

  • Military history of South America — The Battle of Chacabuco, 1817, during the Chilean War of Independence, a war often fought across harsh and difficult terrain. The military history of South America can be divided into two major periods pre and post Columbian divided by the… …   Wikipedia

  • bank — Synonyms and related words: Bank of England, Bank of France, Federal Reserve bank, Fort Knox, Indian file, Indian reservation, International Monetary Fund, Lombard Street bank, Swiss bank, World Bank, abatis, abutment, advanced work, align,… …   Moby Thesaurus

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”