External Memory
External Memory
William Stallings
Computer Organization
and Architecture
9th Edition
+ Chapter 6
External Memory
+
Magnetic Disk
+
Electric pulses are sent to the write
head & resulting magnetic patterns
are recorded on the surface below, For writing electricity flows
with different patterns for positive through a coil produces a
and negative data magnetic field
Magnetic Read
An electric current in the
and Write wire induces a magnetic
Mechanisms field across the gap, which
then magnetizes a small
area of the recording
medium
The write head is made of
magnetizable material
(rectangular doughnut
+
shape) with a gap along
one side and a few turns
of conducting wire along
the opposite side
Reversing the direction of
the current reverses the
direction of the
magnetization on the
recording medium
+
MR Sensor
The
read head consists of a partially shielded
magnetoresistive (MR) sensor.
Advantage:
Individual blocks of data can be directly addressed by track
and sector.
To move the head from its current location to a specific
address, it takes a short movement of the head to a specific
track and
a short wait for the proper sector to spin under the head.
Cylinders
+
+
Timing of Disk I/O Transfer
+ Disk Performance Parameters
When the disk operates, it rotates at a constant
speed
Seek time
On a movable–head system, the time it takes to position the
head at the track
Transfer time
Once the head is in position, the read or write operation is
then performed as the sector moves under the head
This is the data transfer portion of the operation
+ Consists of 7 levels
27
Table 6.3 RAID Levels
For
applications with a high transfer rate, two things are
required:
1. A high transfer capacity must exist along the path between host
memory and the individual disk drives
2. The application must make I/O requests that use the disk array
efficiently
+ RAID Level 0
RAID 0 for High I/O Request Rate
Once the failed drive is replaced, the missing data can be restored
on the new drive and operation resumed
In the event of a disk failure, all of the data are still available in what
is referred to as reduced mode
Thus each strip write involves two reads and two writes
+ RAID Level 5
Characteristics
1 2 3 4 5
Chunk 0 Chunk 1 Chunk 2 Chunk 3 Parity
Chunk 4 Parity 5
Chunk Chunk 6 Parity Chunk 7
Chunk 8 Chunk 9 Parity Chunk 10 Chunk 11
Chunk 12 Parity Chunk 13 Chunk 14 Chunk 15
Parity Chunk 16 Chunk 17 Chunk 18 Chunk 19
46
+ RAID 5 - Write Operation
1. Read old 2. Write 3. XOR old and 4. Read 5. XOR old parity with
data. new data new data to create old parity partial product, writing
“Partial Product”. data. out result as new parity.
XOR XOR
1 2 3 4 5
Chunk 0 Chunk 1 Chunk 2 Chunk 3 Parity
47
+
RAID Level Review
RAID 0 - Data striping, Non-redundant.
High Performance, Low Availability
RAID 1 - Mirroring
Moderate Performance, Expensive High Availability
RAID 1/0 - Striping and Mirroring
High Performance, Expensively High Availability
RAID 3 - Striping, single parity disk.
High Bandwidth Performance, Cheap Availability
RAID 5 - Striping, rotating parity disk.
High Thruput Performance, Cheap Availability
48
+ RAID Level 6
Characteristics
Memory
+
Figure 6.10
Flash Memory Operation
+
Flash Memory
Initially,
the floating gate does not interfere with
the operation of the transistor.
+
Flash Memory
The two gates are separated from each other by a thin dielectric
material (oxide layer).
A memory device
made with solid state Two distinctive
components, and used Flash memory types of flash
as a replacement to a memory:
hard disk.
A type of NOR
semiconductor •Unit of access is a bit
memory used in •High-speed random access
consumer electronic •Used to store cell phone OS
products like smart and on Windows computers
phones, GPS, MP3 the BIOS program
players, digital
cameras, USB devices
Solid state: an
electronic
circuitry built with NAND
semiconductors •Basic unit is 16/32 bits
Cost and •Reads/writes in small blocks
•Used in USB flash drives, memory
performance evolved cards, and in SSDs
and now it is feasible •Does not provide random-access
to replace HDDs to external address bus.
•Data read is block-wise.
SSD Compared to HDD
SSDs have the following advantages over HDDs:
Table
High-performance input/output operations per second
6.5
(IOPS)
Durability
Longer lifespan
+
+
SSD
Organization
+
SSD
On the host system, OS invokes file system to access
data on the disk. File system invokes I/O driver which
provides the host to access the particular SSD product.
Thank You