Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
57 views52 pages

Slide CA Chapter 3 Memory Systems Lecture 5

This document discusses computer memory systems, specifically external memory such as magnetic disks. It describes the components and operation of magnetic disks, including the disk platter, read/write heads, and data formatting and organization on the disk. Different types of disk heads and classifications are also covered, such as fixed vs movable heads, single vs double-sided disks, and disk portability as removable or non-removable.

Uploaded by

TIẾN VŨ VĂN
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
57 views52 pages

Slide CA Chapter 3 Memory Systems Lecture 5

This document discusses computer memory systems, specifically external memory such as magnetic disks. It describes the components and operation of magnetic disks, including the disk platter, read/write heads, and data formatting and organization on the disk. Different types of disk heads and classifications are also covered, such as fixed vs movable heads, single vs double-sided disks, and disk portability as removable or non-removable.

Uploaded by

TIẾN VŨ VĂN
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 52

COMPUTER ARCHITECTURE

Chapter 3

Memory Systems
Lecture 5: External Memory
• Magnetic Disk
• RAID
• Solid State Drives
• Optical Memory
• Magnetic Tape
Magnetic Disk
• A disk is a circular platter constructed of nonmagnetic material, called
the substrate, coated with a magnetizable material
• Traditionally the substrate has been an aluminium or aluminium alloy
material
• Recently glass substrates have been introduced
• Benefits of the glass substrate:
• 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
Magnetic Read and Write Mechanisms

• Data are recorded on and later retrieved from the disk via a conducting coil named the head
• In many systems there are two heads, a read head and a write head
• During a read or write operation the head is stationary while the platter rotates beneath it
• Write mechanism:
• The write mechanism exploits the fact that electricity flowing through a coil produces a magnetic field
• An electric current in the wire induces a magnetic field across the gap, which in turn magnetizes a small area of the
recording medium
• Reversing the direction of the current reverses the direction of the magnetization on the recording medium
• The write head itself is made of easily magnetizable material and is in the shape of a rectangular doughnut with a gap along
one side and a few turns of conducting wire along the opposite side
• Read mechanism:
• The traditional read mechanism exploits the fact that a magnetic field moving relative to a coil produces an electrical current
in the coil.
• When the surface of the disk rotates under the head, it generates a current of the same polarity as the one already recorded.
• The structure of the head for reading is in this case essentially the same as for writing and therefore the same head can be
used for both.
Read
current

MR
sensor Write current

h Shield
dt
k wi
ac
Tr

Inductive
N write element
S
S
N
N
S
Magnetization S
N
N
S
S
N
N
S
Recording
medium

Figure 6.1 Inductive Write/Magnetoresistive Read Head


Data Organization and Formatting
Rotation
Inter-track gap Track

Inter-sector gap
S6 •••

S6 •••
Track sector
Sector •••

SN
S6

S5

SN
S5

SN
S5
S4

S1
S4

S1
S3 S2

S4

S1
S3 S2

S3 S2

Read-write head
(1 per surface)

Platter

Direction of
Cylinder Spindle Boom
arm motion

Figure 6.2 Disk Data Layout


Track Zone
Sector

(a) Constant angular velocity (b) Multiple zone recording

(Vận tốc góc không đổi) (Ghi nhiều vùng)

Figure 6.3 Comparison of Disk Layout Methods


index

physical sector 0 physical sector 1 physical sector 29


sector

gap ID gap data gap gap ID gap data gap gap ID gap data gap
1 field 2 field 3 1 field 2 field 3 1 field 2 field 3
0 0 1 1 29 29
bytes 17 7 41 515 20 17 7 41 515 20 17 7 41 515 20

600 bytes/sector

synch track head sector synch


CRC data CRC
byte # # # byte

bytes 1 2 1 1 2 1 512 2

Figure 6.4 Winchester Disk Format (Seagate ST506)


Physical Characteristics of Disk Systems
+ Characteristics
Head motion Disk Portability
• Fixed-head disk • Non-removable disk
• One read-write head per track • Permanently mounted in the disk drive
• Heads are mounted on a fixed ridged • The hard disk in a personal computer
is a non-removable disk
arm that extends across all tracks
• Removable disk
• Movable-head disk • Can be removed and replaced with
• One read-write head another disk
• Head is mounted on an arm • Advantages:
• The arm can be extended or retracted • Unlimited amounts of data are available
with a limited number of disk systems
• Double sided disk • A disk may be moved from one computer
system to another
• Magnetizable coating is applied to
both sides of the platter
• Floppy disks and ZIP cartridge disks
are examples of removable disks
Disk
Classification

Head Mechanism The head mechanism provides a


• The head must generate or sense an classification of disks into three types
electromagnetic field of sufficient 1. The read- write head has been positioned a fixed
magnitude to write and read properly distance above the platter, allowing an air gap
2. The head actually comes into physical contact
• The narrower the head, the closer it with the medium during a read or write
must be to the platter surface to operation
function 3. Winchester Heads
• A narrower head means narrower • Winchester heads are used in sealed drive assemblies that
tracks and therefore greater data are almost free of contaminants.
density • They are designed to operate closer to the disk’s surface
than conventional rigid disk heads, thus allowing greater
• The closer the head is to the disk the data density
greater the risk of error from • The head is actually an aerodynamic foil that rests lightly
on the platter’s surface when the disk is motionless.
impurities or imperfections • The air pressure generated by a spinning disk is enough to
make the foil rise above the surface.
Table 6.2
Typical Hard Disk Drive Parameters
Characteristics Seagate Seagate Seagate Seagate Laptop
Enterprise Barracuda XT Cheetah NS HDD
Application Enterprise Desktop Network Laptop
attached storage,
application
servers
Capacity 6 TB 3 TB 600 GB 2 TB
Average seek 4.16 ms N/A 3.9 ms read 13 ms
time 4.2 ms write
Spindle speed 7200 rpm 7200 rpm 10, 075 rpm 5400 rpm
Average latency 4.16 ms 4.16 ms 2.98 5.6 ms
Maximum 216 MB/s 149 MB/s 97 MB/s 300 MB/s
sustained
transfer rate
Bytes per sector 512/4096 512 512 4096
Tracks per 8 10 8 4
cylinder (number
of platter
surfaces)
Cache 128 MB 64 MB 16 MB 8 MB
Disk Performance Parameters
• When the disk drive is operating the disk is rotating at constant speed
• To read or write the head must be positioned at the desired track and at the beginning of the
desired sector on the 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
• Seek time (thời gian tìm kiếm)
• On a movable–head system, the time it takes to position the head at the track

• Rotational delay (rotational latency) (trễ quay)


• The time it takes for the beginning of the sector to reach the head

• Access time (thời gian truy cập)


• The sum of the seek time and the rotational delay
• The time it takes to get into position to read or write

• Transfer time (thời gian truyền)


• 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
Lecture 5: External Memory
• Magnetic Disk
• RAID
• Solid State Drives
• Optical Memory
• Magnetic Tape
• Consists of 7 levels
RAID • Levels do not imply a hierarchical relationship
but designate different design architectures
that share three common characteristics:
Redundant Array of
Independent Disks 1) Set of physical disk drives viewed by the
operating system as a single logical drive
2) Data are distributed across the physical drives of
an array in a scheme known as striping
3) Redundant disk capacity is used to store parity
information, which guarantees data recoverability
in case of a disk failure
Table 6.3
RAID Levels
Disks Large I/O Data Small I/O Request
Category Level Description Data Availability Transfer
Required Rate
Capacity
Lower than single Very high for both
Striping 0 Nonredundant N Very high
disk read and write
Higher than single Up to twice that of a
Higher than RAID
disk for read; single disk for read;
Mirroring 1 Mirrored 2N 2, 3, 4, or 5; lower
similar to single similar to single disk
than RAID 6
disk for write for write
Much higher than
Redundant via Hamming single disk; Highest of all Approximately twice
2 N+m
code comparable to listed alternatives that of a single disk
RAID 3, 4, or 5
Parallel access
Much higher than
single disk; Highest of all Approximately twice
3 Bit-interleaved parity N+1
comparable to listed alternatives that of a single disk
RAID 2, 4, or 5
Similar to RAID 0
Much higher than Similar to RAID 0 for
for read;
4 Block-interleaved parity N+1 single disk; read; significantly
significantly
comparable to lower than single disk
lower than single
RAID 2, 3, or 5 for write
disk for write
Much higher than Similar to RAID 0 Similar to RAID 0 for
Independent
Block-interleaved single disk; for read; lower read; generally lower
access 5 N+1
distributed parity comparable to than single disk than single disk for
RAID 2, 3, or 4 for write write
Similar to RAID 0 Similar to RAID 0 for
Block-interleaved dual Highest of all for read; lower read; significantly
6 N+2
distributed parity listed alternatives than RAID 5 for lower than RAID 5 for
write write

N = number of data disks; m proportional to log N


strip 0 strip 1 strip 2 strip 3
strip 4 strip 5 strip 6 strip 7
strip 8 strip 9 strip 10 strip 11
strip 12 strip 13 strip 14 strip 15

(a) RAID 0 (non-redundant)

strip 0 strip 1 strip 2 strip 3 strip 0 strip 1 strip 2 strip 3


strip 4 strip 5 strip 6 strip 7 strip 4 strip 5 strip 6 strip 7
strip 8 strip 9 strip 10 strip 11 strip 8 strip 9 strip 10 strip 11
strip 12 strip 13 strip 14 strip 15 strip 12 strip 13 strip 14 strip 15

(b) RAID 1 (mirrored)

b0 b1 b2 b3 f0(b) f1(b) f2(b)

(c) RAID 2 (redundancy through Hamming code)

Figure 6.6 RAID Levels (page 1 of 2)


b0 b1 b2 b3 P(b)

(d) RAID 3 (bit-interleaved parity)

block 0 block 1 block 2 block 3 P(0-3)


block 4 block 5 block 6 block 7 P(4-7)
block 8 block 9 block 10 block 11 P(8-11)
block 12 block 13 block 14 block 15 P(12-15)

(e) RAID 4 (block-level parity)

block 0 block 1 block 2 block 3 P(0-3)


block 4 block 5 block 6 P(4-7) block 7
block 8 block 9 P(8-11) block 10 block 11
block 12 P(12-15) block 13 block 14 block 15
P(16-19) block 16 block 17 block 18 block 19

(f) RAID 5 (block-level distributed parity)

block 0 block 1 block 2 block 3 P(0-3) Q(0-3)


block 4 block 5 block 6 P(4-7) Q(4-7) block 7
block 8 block 9 P(8-11) Q(8-11) block 10 block 11
block 12 P(12-15) Q(12-15) block 13 block 14 block 15

(g) RAID 6 (dual redundancy)

Figure 6.6 RAID Levels (page 2 of 2)


Logical Disk

strip 0 strip 0 strip 1 strip 2 strip 3


strip 1 strip 4 strip 5 strip 6 strip 7
strip 2 strip 8 strip 9 strip 10 strip 11
• Mảng RAID 0 gồm strip 3 strip 12 strip 13 strip 14 strip 15
n đĩa strip 4

• Dữ liệu được chia strip 5


Physical Physical Physical Physical
thành các strip (gồm strip 6 Disk 0 Disk 1 Disk 2 Disk 3

các block, sector strip 7


hoặc unit) phân bố strip 8
lần lượt trên các đĩa. strip 9
Array
Management
• Ưu điểm: với một strip 10
Software
yêu cầu truy cập dữ strip 11

liệu gồm nhiều strip 12

strip, có tối đa n strip 13


strip có thể được xử strip 14
lý song song, giảm strip 15
thời gian giao tiếp
I/O khá lớn.
Figure 6.7 Data Mapping for a RAID Level 0 Array
25
RAID R
a
Level 0 i
d

RAID 0 cho Dung lượng truyền dữ liệu cao RAID 0 cho Tốc độ yêu cầu
0 I/O cao

• Các ứng dụng muốn có tốc độ truyền tải cao,  Đối với yêu cầu I/O riêng lẻ yêu cầu lượng nhỏ
phải đáp ứng hai yêu cầu: dữ liệu, thời gian I/O phụ thuộc vào thời gian
1. Phải có dung lượng truyền tải cao trên tìm kiếm và độ trễ quay
toàn bộ đường dẫn giữa bộ nhớ máy chủ  Mảng đĩa có thể cung cấp tốc độ thực thi I/O cao
và các ổ đĩa riêng lẻ
bằng cách cân bằng tải I/O trên nhiều đĩa
2. Ứng dụng phải tạo ra các yêu cầu I/O để  Nếu kích thước strip lớn, có thể xử lý song song
điều khiển mảng đĩa một cách hiệu quả
nhiều yêu cầu I/O đợi, để giảm thời gian xếp
hàng cho mỗi yêu cầu
27
R
a
RAID i
d
Level 1
Dự phòng (redundancy): dữ liệu thêm vào để 1đảm bảo việc lưu
Đặc điểm trữ tin cậy trong bộ nhớ (có khả năng phát hiện, sửa lỗi, khôi
phục dữ liệu khi bị lỗi)
• RAID 1 khác với RAID 2 đến 6 trong
cách thức dự phòng Hiệu quả
• Khả năng dự phòng đạt được bằng cách
đơn giản sao chép tất cả dữ liệu • Một yêu cầu đọc có thể được phục vụ bởi một
trong hai đĩa có chứa dữ liệu yêu cầu
• Data striping được sử dụng nhưng mỗi
dải logic được ánh xạ tới hai đĩa vật lý • Dễ khắc phục sai sót. Khi một ổ đĩa hỏng, dữ
riêng biệt sao cho mỗi đĩa trong mảng liệu có thể được truy cập từ ổ đĩa thứ hai
đều có một đĩa nhân bản có chứa cùng • Cung cấp bản sao thời gian thực của tất cả dữ
một dữ liệu liệu
• RAID 1 có thể được thực hiện mà • Có thể đạt được tốc độ yêu cầu I/O cao nếu hầu
không cần data striping (không phổ hết các yêu cầu là Đọc
biến) • Nhược điểm chủ yếu là chi phí
R
a
RAID i
d

Level 2 2

Đặc điểm Hiệu quả

• Sử dụng kỹ thuật truy nhập song • Trên các bit tương ứng trên mỗi đĩa dữ liệu và các bit Mã
song: tất cả các đĩa đều cùng sửa lỗi được tính mã được lưu trữ trong các vị trí bit tương
tham gia vào việc xử lý một yêu ứng trên các đĩa parity
cầu đọc/ghi. • Sử dụng Hamming SEC-DEC
• Số lượng đĩa dự phòng tỷ lệ thuận với log của số đĩa dữ
• Trục của các ổ đĩa được đồng bộ liệu
sao cho các đầu đĩa ở vị trí như • Khi đọc/ghi dữ liệu, các mã CRC được tính toán – ghi
nhau trên đĩa vào bất kỳ thời cùng lúc với dữ liệu
điểm nào • Chỉ hiệu quả trong môi trường xảy ra nhiều lỗi đĩa
• Sử dụng data striping
• Strip rất nhỏ, thường bằng 1
byte hoặc 1 word
R
RAID a
i

Level 3 d

Đặc điểm  Trong trường hợp ổ đĩa bị hỏng, toàn bộ mảng đc


thiết lập chế độ reduced mode, ổ đĩa dự phòng
• Chỉ cần 1 đĩa dự phòng, không cần được truy cập để phục hồi dữ liệu.
quan tâm độ lớn mảng đĩa  Đĩa hỏng đc thay thế và được ghi dữ liệu đã phục
hồi lên đó
• Sử dụng truy cập song song, kỹ thuật
strip, tuy nhiên kích thước strip nhỏ
Hiệu năng
• Thay vì dùng mã sửa lỗi, một bit chẵn
lẻ đơn giản được tính toán cho một • Có thể đạt được tốc độ truyền dữ liệu rất cao
tập các bit riêng ở cùng vị trí trên tất • Một yêu cầu truy cập vào/ra có thể được đáp
cả các đĩa dữ liệu ứng bằng việc truyền dữ liệu song song
• Trong một môi trường định hướng giao dịch,
hiệu suất bị ảnh hưởng
R
a
RAID i
d
Level 4 4

Đặc điểm
• Sử dụng kỹ thuật truy cập độc lập: cho phép nhiều yêu cầu I/O riêng biệt có thể được
đáp ứng song song
• Sử dụng data striping
• Strip có kích thước khá lớn
• Dự phòng: Dải chẵn lẻ - parity strip tương tự cách tính RAID 3  đặt trên đĩa dự
phòng.
R
a
i
RAID d

Level 4 4

• RAID 4 liên quan đến “a write penalty” khi yêu cầu ghi I/O có kích thước nhỏ được
thực hiện.
• Mỗi lần ghi xảy ra, phần mềm quản lý mảng phải cập nhật không chỉ dữ liệu người dùng mà còn cả
các bit chẵn lẻ tương ứng > Do đó, mỗi lần ghi dải bao gồm hai lần đọc và hai lần ghi
• Trường hợp yêu cầu ghi I/O lớn phải thực hiện trên nhiều đĩa, Dải chẵn lẻ sẽ được
tính toán lại toàn bộ.
• Do các hoạt động ghi đĩa đều cần phải ghi lại trên đĩa dự phòng  dễ gây hiện tượng
nút cổ chai
R
a
i
RAID Level 5 d

5
Đặc điểm 6

• Được tổ chức theo cách tương tự như RAID 4


• Chỉ khác ở sự phân bố Dải chẵn lẻ trên tất cả các đĩa
• Một phân bổ điển hình là cơ chế điều phối xoay vòng round-robin
• Việc phân phối Dải chẵn lẻ trên tất cả các ổ đĩa tránh được khả năng nút cổ chai I/O
của RAID 4
R
a
i
RAID Level 6 d

5
Đặc điểm 6

• Hai thuật toán tính Dải chẵn lẻ (P và Q) riêng được thực hiện và được lưu trữ trong
các khối riêng biệt trên các đĩa khác nhau
• Ưu điểm: tính sẵn sàng dữ liệu cực cao (khả năng khôi phục lại dữ liệu cao)
• Dữ liệu chỉ bị mất nếu ba ổ đĩa bị hỏng cùng lúc trong khoảng thời gian cần thiết để
sửa chữa (MTTR - mean time to repair)
• Chịu một write penalty đáng kể do mỗi lần ghi đều tính toán và ghi lại hai Dải chẵn
lẻ
So sánh RAID
Level Ưu điểm Nhược điểm Ứng dụng
Cải thiện hiệu suất truy cập I/O bằng Nếu dữ liệu trên 1 ổ Sản xuất và biên tập video
cách phân phối tải I/O ra nhiều kênh đĩa hỏng --> toàn bộ Chỉnh sửa ảnh
và đĩa dữ liệu sẽ hỏng hết Các ứng dụng yêu cầu băng thông
0 Không tính parity (ko có Dự phòng) cao
Thiết kế đơn giản
Dễ thực hiện
Dữ liệu được dự phòng 100%: không Số lượng đĩa dự Kế toán
cần phải tính toán lại dữ liệu trong phòng nhiều nhất Tính toán lương
trường hợp lỗi, chỉ cần sao lưu từ đĩa Tài chính
1
dự phòng Bất kỳ ứng dụng nào yêu cầu
Chịu được nhiều lỗi ổ đĩa tính sẵn sàng dữ liệu rất cao
Thiết kế hệ thống đơn giản
Tốc độ truyền dữ liệu cực kỳ cao Nếu kích thước Không còn được sử dụng do
Tốc độ truyền dữ liệu càng cao thì tỷ lệ strip nhỏ --> tỷ lệ không hiệu quả về mặt thương
giữa số lượng đĩa dữ liệu/số lượng đĩa số đĩa mã sửa mại
2 mã sửa lỗi càng lớn lỗi/số đĩa dữ liệu
Thiết kế bộ điều khiển tương đối đơn cao --> không hiệu
giản so với mức RAID 3, 4, và 5 quả
40
41
So sánh RAID

Level Ưu điểm Nhược điểm Ứng dụng


Tốc độ đọc /ghi rất Tốc độ tối đa của một Sản xuất video và live streaming
cao transaction bằng tốc độ của Chỉnh sửa hình ảnh
Tỷ lệ số đĩa mã sửa một ổ đĩa đơn (nếu trục đĩa Chỉnh sửa video
lỗi /số đĩa dữ liệu được đồng bộ) Ứng dụng chế bản in (Illustrator,
3 thấp Thiết kế bộ điều khiển khá ...)
--> Hiệu quả cao phức tạp Bất kỳ ứng dụng nào yêu cầu băng
thông cao

Tốc độ đọc rất cao Thiết kế bộ điều khiển phức Không còn được sử dụng do không
Tỷ lệ số đĩa mã sửa tạp hiệu quả về mặt thương mại
lỗi /số đĩa dữ liệu Tốc độ ghi thấp nhất và số
4 thấp lần ghi (write penalty) cao
--> Hiệu quả cao Phục hồi dữ liệu khó khăn và
không hiệu quả trong trường
hợp đĩa lỗi
42
So sánh RAID

Level Ưu điểm Nhược điểm Ứng dụng


Tốc độ đọc rất cao Thiết kế bộ điều khiển File and application
Tỷ lệ số đĩa mã sửa lỗi phức tạp nhất servers
/số đĩa dữ liệu thấp Khó khăn để khôi phục dữ Database servers
--> Hiệu quả cao liệu trong trường hợp đĩa Web, e-mail, and
5
Tốc độ đường truyền cao lỗi (so với mức RAID 1) news servers
Intranet servers
Most versatile RAID
level
Khả năng sửa lỗi và Thiết kế bộ điều khiển Giải pháp hoàn hảo cho
phục hồi dữ liệu rất cao, phức tạp nhất các ứng dụng quan trọng
có thể phục hồi trong Việc tính toán parity phức
trường hợp nhiều đĩa bị tạp
6
lỗi (chỉ không phục hồi
được nếu có 3 đĩa lỗi
cùng một thời điểm)
Lecture 5: External Memory
• Magnetic Disk
• RAID
• Solid State Drives
• Optical Memory
• Magnetic Tape
Solid State Drives (SSD)

• The term solid state refers to electronic circuitry built with


semiconductors.
• An SSD is a memory device made with solid state components
that can be used as a replacement to a hard disk drive.
• The SSDs now on the market and coming on line use NAND
flash memory.
SSD Compared to HDD

• SSDs have the following advantages over HDDs:


• High-performance input/output operations per second (IOPS)
• Durability
• Longer lifespan
• Lower power consumption
• Quieter and cooler running capabilities
• Lower access times and latency rates
Practical Issues
There are two practical issues peculiar to SSDs that are not faced by HDDs:

• SDD performance has a • Flash memory becomes unusable after a certain


tendency to slow down as the number of writes
device is used • Techniques for prolonging life:
• The entire block must be read • Front-ending the flash with a cache to delay
and group write operations
from the flash memory and placed
in a RAM buffer • Using wear-leveling algorithms that evenly
distribute writes across block of cells
• Before the block can be written • Bad-block management techniques
back to flash memory, the entire
block of flash memory must be • Most flash devices estimate their own
erased remaining lifetimes so systems can
anticipate failure and take preemptive action
• The entire block from the buffer is
now written back to the flash
memory
Lecture 5: External Memory
• Magnetic Disk
• RAID
• Solid State Drives
• Optical Memory
• Magnetic Tape
Compact Disk Read-Only Memory
(CD-ROM)
• Audio CD and the CD-ROM share a similar technology
• The main difference is that CD-ROM players are more rugged and
have error correction devices to ensure that data are properly transferred
• Production:
• The disk is formed from a resin such as polycarbonate
• Digitally recorded information is imprinted as a series of microscopic pits
on the surface of the polycarbonate
• This is done with a finely focused, high intensity laser to create a master disk
• The master is used, in turn, to make a die to stamp out copies onto
polycarbonate
• The pitted surface is then coated with a highly reflective surface, usually
aluminum or gold
• This shiny surface is protected against dust and scratches by a top
coat of clear acrylic
• Finally a label can be silkscreened onto the acrylic
Protective
acrylic Label

Land
Pit
Polycarbonate Aluminum
plastic

Laser transmit/
receive

Figure 6.9 CD Operation


Layered

Sector

Mode
MIN

SEC
00 FF . . . FF 00 Data ECC

12 bytes 4 bytes 2048 bytes 288 bytes


SYNC ID Data L-ECC

2352 bytes

Figure 6.10 CD-ROM Block Format


+
 CD-ROM is appropriate for the distribution of large
amounts of data to a large number of users
CD-ROM
 Because the expense of the initial writing process it is not
appropriate for individualized applications
 The CD-ROM has two advantages:

• The optical disk together with the information stored on it


can be mass replicated inexpensively

• The optical disk is removable, allowing the disk itself to be


used for archival storage

 The CD-ROM disadvantages:


• It is read-only and cannot be updated

• It has an access time much longer than that of a magnetic


disk drive
CD Recordable CD Rewritable
(CD-R) (CD-RW)
• Write-once read-many • Can be repeatedly written and overwritten
• Accommodates applications in • Phase change disk uses a material that has two
which only one or a small number significantly different reflectivities in two different
of copies of a set of data is needed phase states
• Disk is prepared in such a way that • Amorphous state
it can be subsequently written • Molecules exhibit a random orientation that
once with a laser beam of modest- reflects light poorly
intensity
• Medium includes a dye layer • Crystalline state
which is used to change • Has a smooth surface that reflects light well
reflectivity and is activated by a
high-intensity laser • A beam of laser light can change the material
from one phase to the other
• Provides a permanent record of
large volumes of user data • Disadvantage is that the material eventually and
permanently loses its desirable properties
• Advantage is that it can be rewritten
Label

Protective layer
(acrylic)
1.2 mm
Reflective layer thick
(aluminum)
Polycarbonate substrate Laser focuses on polycarbonate
(plastic) pits in front of reflective layer.

(a) CD-ROM - Capacity 682 MB

Polycarbonate substrate, side 2

Semireflective layer, side 2

Polycarbonate layer, side 2

Fully reflective layer, side 2

Fully reflective layer, side 1 1.2 mm


thick
Polycarbonate layer, side 1

Semireflective layer, side 1 Laser focuses on pits in one layer


on one side at a time. Disk must
Polycarbonate substrate, side 1 be flipped to read other side.

(b) DVD-ROM, double-sided, dual-layer - Capacity 17 GB

Figure 6.11 CD-ROM and DVD-ROM


CD 2.11 µm

Data layer
Beam spot Land

Pit 1.2 µm
0.58 µm
Blu-ray
Track

laser wavelength
= 780 nm

0.1 µm
1.32 µm
DVD

405 nm

0.6 µm

650 nm

Figure 6.12 Optical Memory Characteristics


Lecture 5: External Memory
• Magnetic Disk
• RAID
• Solid State Drives
• Optical Memory
• Magnetic Tape
Magnetic Tape
• Tape systems use the same reading and recording techniques as disk systems
• Medium is flexible polyester tape coated with magnetizable material
• Coating may consist of particles of pure metal in special binders or vapor-
plated metal films
• Data on the tape are structured as a number of parallel tracks running
lengthwise
• Serial recording
• Data are laid out as a sequence of bits along each track
• Data are read and written in contiguous blocks called physical records
• Blocks on the tape are separated by gaps referred to as inter-record gaps
Track 2

Track 1

Track 0

Direction of
Bottom read/write
edge of tape

(a) Serpentine reading and writing

Track 3 4 8 12 16 20

Track 2 3 7 11 15 19

Track 1 2 6 10 14 18

Track 0 1 5 9 13 17
Direction of
tape motion

(b) Block layout for system that reads/writes four tracks simultaneously

Figure 6.13 Typical Magnetic Tape Features


Summary
Lecture 5 External Memory

• Magnetic disk • RAID


• Magnetic read and write • RAID level 0
mechanisms • RAID level 1
• Data organization and • RAID level 2
formatting • RAID level 3
• RAID level 4
• Physical characteristics • RAID level 5
• Disk performance parameters • RAID level 6
• Solid state drives • Optical memory
• SSD compared to HDD • Compact disk
• SSD organization • Digital versatile disk
• Practical issues • High-definition optical disks
• Magnetic tape
Câu hỏi ôn tập

1. Ưu điểm của việc sử dụng chất nền thủy tinh trong sản xuất đĩa từ là gì?
2. Dữ liệu được ghi lên đĩa từ như thế nào?
3. Dữ liệu được đọc ra từ đĩa từ như thế nào?
4. So sánh hai kỹ thuật CAV vận tốc góc không đổi và ghi nhiều vùng.
5. Định nghĩa track, cylinder và sector.
6. Kích thước điển hình của sector là bao nhiêu?
7. Định nghĩa các thuật ngữ: thời gian tìm kiếm, trễ quay, thời gian truy cập
và thời gian truyền?
8. Những đặc điểm chung của các cấp độ RAID là gì?
9. Trình bày điểm khác biệt giữa đĩa CD và DVD?
• Images and content in this lecture refer to the book and Lecture
slides “Computer Organization and Architecture”, 10th Edition,
by William Stallings.
THANK YOU

You might also like