Exam 1 Flashcards
Code Motion
Code motion is when you reduce the frequency that a computation is performed. Especially moving code out of loop
Strength Reduction
Reduction in strength is when you replace a costly operation with a simpler one. Ie, replacing multiplication with addition.
In-Lining
In-lining is an optimization technique that may be used to improve performance when a small function is called from within a high iteration loop
Loop-unrolling
Loop unrolling is when you move code outside of a loop and expand it to minimize the number of instructions that are executed; the performance improvement comes from the fact that fewer instrs are being executed
Superscalar architecture
Can issue and execute multiple instructions in one cycle; they’re retrieved from a sequential instruction stream and are usually scheduled dynamically. Can take advantage of instruction level parallelism
Speculative execution
Speculative execution is an optimization where the system performs a task way ahead of time, that may or may not be needed, in order to prevent a delay from occurring when and if the work is actually needed.
RAS and CAS
Row Address Strobe
Column Address Strobe
Platters
Construct the disk; consist of two sides called surfaces
Surfaces
Make up platters and are coated with magnetic recording material
Cylinders
The collection of tracks on all the surfaces that are equidistant from the center of the spindle
Rotational rate
Measured in RPM; how fast the spindle spins on the platter
Track
Located on surfaces in concentric rings
Sector
How each individual track is partitioned
Recording density
(bits/in) The number of bits that can be squeezed into a 1 inch segment of the track
Track density
(tracks/in) The number of tracks that can be sequeezed into a 1-inch segment of the radius extending from the center of the platter
Areal density
The product of the recording density and the track density
Disk capacity
bytes/sector * average # sectors/track * # tracks/surface * #surfaces/platter * # platters/disk
Seek time
The time required to move the arm over the track that contains the target sector