Understanding RAM, Hard Disks, and Computer Performance
RAM Technology: DRAM vs. SRAM
RAM technology is divided into two main types:
- Dynamic RAM (DRAM)
- Static RAM (SRAM)
DRAM
- Made with cells that store data as a charge on capacitors.
- The presence or absence of charge in a capacitor is interpreted as a binary 1 or 0.
- Requires periodic charge refreshing to maintain data storage.
- The term *dynamic* refers to the tendency of the stored charge to leak away, even with power continuously applied.
DRAM vs. SRAM: Key Differences
Both DRAM and SRAM are volatile, meaning that power must be continuously supplied to the memory to preserve the bit values.
Dynamic Cell (DRAM)
- Simpler to build, smaller.
- More dense (smaller cells = more cells per unit area).
- Less expensive.
- Requires supporting refresh circuitry.
- Tends to be favored for large memory requirements.
- Used for main memory.
Static Cell (SRAM)
- Faster.
- Used for cache memory (both on and off-chip).
Magnetic Disk Technology
A disk is a circular platter constructed of nonmagnetic material, called the *substrate*, coated with a magnetizable material. Traditionally, the substrate has been an aluminum or aluminum alloy material. Recently, glass substrates have been introduced.
Benefits of Glass Substrates
- Improvement in the uniformity of the magnetic film surface to increase disk reliability.
- A significant reduction in overall surface defects to help reduce read-write errors.
- Ability to support lower fly heights.
- Better stiffness to reduce disk dynamics.
- Greater ability to withstand shock and damage.
Disk Performance Parameters
When the disk drive is operating, the disk is rotating at a constant speed. To read or write, the head must be positioned at the desired track and at the beginning of the desired sector on that track. Track selection involves moving the head in a movable-head system or electronically selecting one head on a fixed-head system.
Once the track is selected, the disk controller waits until the appropriate sector rotates to line up with the head.
Key Performance Metrics
- Seek Time: In a movable-head system, the time it takes to position the head at the track.
- Rotational Delay (Rotational Latency): The time it takes for the beginning of the sector to reach the head.
- Access Time: The sum of the seek time and the rotational delay; the time it takes to get into position to read or write.
- Transfer Time: Once the head is in position, the read or write operation is performed as the sector moves under the head. This is the data transfer portion of the operation.
Common Misconceptions and Clarifications
- During disk read/write, the head remains stationary while the platter rotates. False
- RAID is used to increase the performance of a hard disk. True
- The long-term scheduler decides which process will be executed next by the processor. False
- The long-term scheduler controls the degree of multiprogramming. True
- The actual location of an instruction or data is called a logical address. False
Why are Inter-Track Gaps Needed on a Hard Disk?
To avoid interference from neighboring data.
Hard Drive Read and Write Mechanism
The write mechanism exploits the fact that electricity flowing through a coil produces a magnetic field. The traditional read mechanism exploits the fact that a magnetic field moving relative to a coil produces an electrical current in the coil.
R/W Heads in a Disk with ‘n’ Tracks
- Fixed head: One head per track.
- Movable head: One head per surface.