SlideShare uma empresa Scribd logo
1 de 31
Baixar para ler offline
Database System Concepts, 7th Ed .
©Silberschatz, Korth and Sudarshan
See www.db-book.com for conditions on re-use
Chapter 12: Physical Storage Systems
Machine Translated by Google
Classification of Physical Storage Media
• Cost per unit of data
ÿ Factors affecting choice of storage media include
• non-volatile storage:
• Speed with which data can be accessed
• Reliability
ÿ Can differentiate storage into:
• volatile storage: loses contents when power is switched off
ÿ Contents persist even when power is switched off.
ÿ Includes secondary and tertiary storage, as well as batter-backed
up main-memory.
Database System Concepts - 7th Edition ©Silberschatz, Korth and Sudarshan
12.2
Machine Translated by Google
12.3
Database System Concepts - 7th Edition ©Silberschatz, Korth and Sudarshan
Storage Hierarchy
Machine Translated by Google
• Also called on-line storage •
Eg, flash memory, magnetic disks
ÿ primary storage: Fastest media but volatile (cache, main memory). ÿ
secondary storage: next level in hierarchy, non-volatile, moderately fast
• also called off-line storage and used for archival storage •
eg, magnetic tape, optical storage • Magnetic tape ÿ Sequential
access, 1 to 12 TB capacity ÿ A few drives with many tapes ÿ
Juke boxes with petabytes (1000's of TB) of storage
ÿ tertiary storage: lowest level in hierarchy, non-volatile, slow access time
access time
Database System Concepts - 7th Edition ©Silberschatz, Korth and Sudarshan
12.4
Storage Hierarchy (Cont.)
Machine Translated by Google
ÿ SATA 3 supports data transfer speeds of up to 6 gigabits/sec
• SAS (Serial Attached SCSI)
In Storage Area Networks (SAN), a large number of disks are connected
by a high-speed network to a number of servers
ÿ SAS Version 3 supports 12 gigabits/sec
• SATA (Serial ATA)
In Network Attached Storage (NAS) networked storage provides a file
system interface using networked file system protocol, instead of
providing a disk system interface
ÿ Supports data transfer rates of up to 24 gigabits/sec
ÿ Works with PCIe connectors to support lower latency and higher
transfer rates
Storage Interfaces
Database System Concepts - 7th Edition ©Silberschatz, Korth and Sudarshan
12.5
ÿ Disks usually connected directly to computer system
ÿ Disk interface standards families
ÿ
• NVMe (Non-Volatile Memory Express) interface
ÿ
Machine Translated by Google
Photo of magnetic disk drive
Schematic diagram of magnetic disk drive
©Silberschatz, Korth and Sudarshan
12.6
Database System Concepts - 7th Edition
Magnetic Hard Disk Mechanism
Machine Translated by Google
ÿ Each track is divided into sectors.
2000 (on outer tracks)
head
th track of all the platters
consists of
ÿ Surface of platter divided into circular tracks
i i
Magnetic Disks
• disk arm swings to position head on right track
ÿ Head-disk assembly
• Typical sectors per track: 500 to 1000 (on inner tracks) to 1000 to
• Over 50K-100K tracks per platter on typical hard disks
• platter spins continually; data is read/written as sector passes under
• Sector size typically 512 bytes
• one head per platter, mounted on a common arm.
ÿ Read-write head
• A sector is the smallest unit of data that can be read or written.
• multiple disk platters on a single spindle (1 to 5 usually)
ÿ To read/write a sector
ÿ Cylinder
Database System Concepts - 7th Edition ©Silberschatz, Korth and Sudarshan
12.7
Machine Translated by Google
ÿ Disk controller – interfaces between the computer system and the disk
drive hardware.
• Computes and attaches checksums to each sector to verify that
data is read back correctly
• Performs remapping of bad sectors
• Ensures successful writing by reading back sector after writing it
ÿ If data is corrupted, with very high probability stored checksum
• accepts high-level commands to read or write a sector •
initiates actions such as moving the disk arm to the right track and
actually reading or writing the data
won't match recomputed checksum
Magnetic Disks (Cont.)
Database System Concepts - 7th Edition ©Silberschatz, Korth and Sudarshan
12.8
Machine Translated by Google
ÿ 4 to 10 milliseconds on typical disks
ÿ Average latency is 1/2 of the above latency.
• Seek time – time it takes to reposition the arm over the correct track. ÿ Average seek
time is 1/2 the worst case seek time.
to the disk.
appear under the head.
ÿ Access time – the time it takes from when a read or write request is issued to when data
transfer begins. Consists of:
ÿ Data-transfer rate – the rate at which data can be retrieved from or stored
• Rotational latency – time it takes for the sector to be accessed to
Performance Measures of Disks
Database System Concepts - 7th Edition ©Silberschatz, Korth and Sudarshan
12.9
• 25 to 200 MB per second max rate, lower for inner tracks
• Overall latency is 5 to 20 msec depending on disk model
• Would be 1/3 if all tracks had the same number of sectors, and
we ignore the time to start and stop arm movement
ÿ 4 to 11 milliseconds on typical disks (5400 to 15,000 rpm)
Machine Translated by Google
ÿ Disk block is a logical unit for storage allocation and retrieval •
4 to 16 kilobytes typically
Performance Measures (Cont.)
ÿ Sequential access pattern •
Successive requests are for successive disk blocks •
Disk seek required only for first block ÿ Random
access pattern • Successive requests are for blocks that
can be anywhere on disk • Each access requires a seek
• Transfer rates are low since a lot of time is wasted in seeks
ÿ I/O operations per second (IOPS)
• Number of random block reads that a disk can support per second •
50 to 200 IOPS on current generation magnetic disks
ÿ Smaller blocks: more transfers from disk
ÿ Larger blocks: more space wasted due to partially filled blocks
12.10
Database System Concepts - 7th Edition ©Silberschatz, Korth and Sudarshan
Machine Translated by Google
“theoretical MTTF” of 500,000 to 1,200,000 hours for a new disk
ÿ Mean time to failure (MTTF) – the average time the disk is expected to
ÿ Eg, an MTTF of 1,200,000 hours for a new disk means that given
1000 relatively new disks, on an average one will fail every 1200
hours
run continuously without any failure.
• Typically 3 to 5 years
Performance Measures (Cont.)
• MTTF decreases as disk ages
• Probability of failure of new disks is quite low, corresponding to a
12.11
Database System Concepts - 7th Edition ©Silberschatz, Korth and Sudarshan
Machine Translated by Google
• requires page-at-a-time read (page: 512 bytes to 4 KB)
Flash Storage
ÿ Not much difference between sequential and random read
ÿ 20 to 100 microseconds for a page read
• Page can only be written once
• used widely for storage, cheaper than NOR flash
ÿ NOR flash vs NAND flash
ÿ Solid state disks
• Use standard block-oriented disk interfaces, but store data on multiple flash storage devices
internally
• Transfer rate of up to 500 MB/sec using SATA, and up to 3 GB/sec
using NVMe PCIe
ÿ NAND flash
ÿ Must be erased to allow rewrite
Database System Concepts - 7th Edition ©Silberschatz, Korth and Sudarshan
12.12
Machine Translated by Google
• remapping carried out by flash translation layer
ÿ Flash translation table tracks mapping
ÿ Erase happens in units of erase block
ÿ Remapping of logical page addresses to physical page addresses avoids
waiting for erase
Flash Storage (Cont.)
• wear leveling
• Erase block typically 256 KB to 1 MB (128 to 256 pages)
• also stored in a label field of flash page
ÿ After 100,000 to 1,000,000 erases, erase block becomes unreliable and cannot
be used
• Takes 2 to 5 millisecs
Database System Concepts - 7th Edition 12.13 ©Silberschatz, Korth and Sudarshan
Machine Translated by Google
ÿ Typical 4KB reads:
ÿ Random reads/writes per second •
Typical 4 KB reads: 10,000 reads per second (10,000 IOPS) •
Typical 4KB writes: 40,000 IOPS • SSDs support parallel reads
SSD Performance Metrics
• 400 MB/sec for SATA3, 2 to 3 GB/sec using NVMe PCIe ÿ
Hybrid disks: combine small amount of flash cache with larger magnetic
ÿ Typical 4KB writes:
• 100,000 IOPS with 32 requests in parallel (QD-32) on SATA
disk
• 100,000 IOPS with QD-32, even higher on some models ÿ
Data transfer rate for sequential reads/writes
• 350,000 IOPS with QD-32 on NVMe PCIe
Database System Concepts - 7th Edition ©Silberschatz, Korth and Sudarshan
12.14
Machine Translated by Google
ÿ 3D-XPoint memory technology pioneered by Intel ÿ
Available as Intel Optane • SSD interface shipped
from 2017
Storage Class Memory
ÿ Allows lower latency than flash SSDs
• Non-volatile memory interface announced in 2018 ÿ
Supports direct access to words, at speeds comparable to main
memory speeds
Database System Concepts - 7th Edition ©Silberschatz, Korth and Sudarshan
12.15
Machine Translated by Google
than the chance that a specific single disk will fail.
N
(approx. 11 years), will have a system MTTF of 1000 hours (approx.
41 days)
large numbers of disks
disks will fail is much higher
providing a view of a single disk of
RAID
Database System Concepts - 7th Edition ©Silberschatz, Korth and Sudarshan
12.16
ÿ RAID: Redundant Arrays of Independent Disks • disk
organization techniques that manage a large numbers of disks,
ÿ The chance that some disk out of a set of
• Techniques for using redundancy to avoid data loss are critical with
ÿ high capacity and high speed by using multiple disks in parallel, ÿ
high reliability by storing data redundantly, so that data can be
recovered even if a disk fails
• Eg, a system with 100 disks, each with MTTF of 100,000 hours
Machine Translated by Google
ÿ Redundancy – store extra information that can be used to rebuild
information lost in a disk failure
• Probability of combined event is very small
ÿ Except for dependent failure modes such as fire or building
ÿ Reads can take place from either disk
• Eg, MTTF of 100,000 hours, mean time to repair of 10 hours gives
mean time to data loss of 500*106 hours (or 57,000 years) for a
mirrored pair of disks (ignoring dependent failure modes)
ÿ Mean time to data loss depends on mean time to failure,
and mean time to repair
fails before the system is repaired
ÿ Data loss would occur only if a disk fails, and its mirror disk also
ÿ Eg, Mirroring (or shadowing)
collapse or electrical power surges
If one disk in a pair fails, data still available in the other
Improvement of Reliability via Redundancy
• Duplicate every disk. Logical disk consists of two physical disks.
• Every write is carried out on both disks
•
Database System Concepts - 7th Edition ©Silberschatz, Korth and Sudarshan
12.17
Machine Translated by Google
1. Load balance multiple small accesses to increase throughput
i.
of each byte to disk
i
Improvement in Performance via Parallelism
i )
+ 1
of a file goes to disk (mod
n
ÿ Bit-level striping - split the bits of each byte across multiple disks
disks block n
ÿ Bit level striping is not used much any more
i
ÿ Block-level striping – with
2. Parallelize large accesses to reduce response time.
• A request for a long sequence of blocks can utilize all disks in parallel
• In an array of eight disks, write bit •
Each access can read data at eight times the rate of a single disk.
• But seek/access time worse than for a single disk
ÿ Two main goals of parallelism in a disk system:
ÿ Improve transfer rate by striping data across multiple disks.
• Requests for different blocks can run in parallel if the blocks reside on
different disks
Database System Concepts - 7th Edition ©Silberschatz, Korth and Sudarshan
12.18
Machine Translated by Google
combined with parity bits
• Different RAID organizations, or RAID levels, have differing cost,
performance and reliability characteristics
• Used in high-performance applications where data loss is not critical.
• Offers best write performance. •
Popular for applications such as storing log files in a database system.
ÿ RAID Level 0: Block striping; non-redundant.
ÿ RAID Level 1: Mirrored disks with block striping
RAID Levels
12.19
Database System Concepts - 7th Edition ©Silberschatz, Korth and Sudarshan
ÿ Schemes to provide redundancy at lower cost by using disk striping
Machine Translated by Google
j
j must also be computed
ÿ Parity blocks: Parity block of each disk
ÿ Or by recomputing the parity value using the new values of blocks
corresponding to the parity block
j
• More efficient for writing large amounts of data sequentially
stores XOR of bits from block
ÿ Can be done by using old parity block, old value of current block
and new value of current block (2 block reads + 2 block writes)
• To recover data for a block, compute XOR of bits from all other
blocks in the set including the parity block
j
• When writing data to a block , parity block
and written to disk
©Silberschatz, Korth and Sudarshan
12.20
Database System Concepts - 7th Edition
RAID Levels (Cont.)
Machine Translated by Google
n
N
ÿ RAID Level 5: Block-Interleaved Distributed Parity; partitions data and
party among all disks and parity in 1 disk. N
+ 1 disks, rather than storing data in
th set of blocks is stored on disk
5) + 1, with the data blocks stored on the other 4 disks.
RAID Levels (Cont.)
( mod
n
• Eg, with 5 disks, parity block for
©Silberschatz, Korth and Sudarshan
Database System Concepts - 7th Edition 12.21
Machine Translated by Google
ÿ RAID Level 5 (Cont.)
• Block writes occur in parallel if the blocks and their parity blocks are
• Better reliability than Level 5 at a higher cost
RAID Levels (Cont.)
on different disks.
ÿ RAID Level 6: P+Q Redundancy scheme; Similar to Level 5, but stores
two error correction blocks (P, Q) instead of single parity block to guard
against multiple disk failures.
ÿ Becoming more important as storage sizes increase
12.22 ©Silberschatz, Korth and Sudarshan
Database System Concepts - 7th Edition
Machine Translated by Google
and keeps a parity block on a separate
blocks from other disks.
N
• RAID Level 4: Block-Interleaved Parity; uses block-level striping, for
corresponding
party disk
ÿ RAID 5 is better than RAID 4, since with RAID 4 with random
writes, parity disk gets much higher write load than other disks
and becomes a bottleneck
• RAID Level 2: Memory-Style Error-Correcting-Codes (ECC) with bit
• RAID Level 3: Bit-Interleaved Parity
RAID Levels (Cont.)
striping
ÿ Other levels (not used in practice):
©Silberschatz, Korth and Sudarshan
Database System Concepts - 7th Edition 12.23
Machine Translated by Google
ÿ RAID 0 is used only when data safety is not important
• Performance during failure
• Eg, data can be recovered quickly from other sources
• Monetary cost
Choice of RAID Level
• Performance during rebuild of failed disk
ÿ Factors in choosing a RAID level
during normal operation
ÿ Including time taken to rebuild failed disk
• Performance: Number of I/O operations per second, and bandwidth
Database System Concepts - 7th Edition ©Silberschatz, Korth and Sudarshan
12.24
Machine Translated by Google
ÿ Level 6 gives better data protection than RAID 5 since it can tolerate two
Choice of RAID Level (Cont.)
disk (or disk block) failures
coupled with a failure of another disk can result in data loss with RAID
1 and RAID 5.
• Increasing in importance since latent block failures on one disk,
ÿ Level 1 provides much better write performance than level 5
ÿ Level 1 had higher storage cost than level 5
ÿ RAID 1 is preferred for applications with many random/small updates
• Level 5 requires at least 2 block reads and 2 block writes to write a
single block, whereas Level 1 only requires 2 block writes
ÿ Level 5 is preferred for applications where writes are sequential and large
(many blocks), and need large amounts of data storage
Database System Concepts - 7th Edition ©Silberschatz, Korth and Sudarshan
12.25
Machine Translated by Google
ÿ Software RAID: RAID implementations done entirely in software, with
no special hardware support
ÿ Hardware RAID: RAID implementations with special hardware
ÿ Otherwise all blocks of disk must be read and compared
with mirror/parity block
ÿ Such corrupted data must be detected when power is restored
disk
• Use non-volatile RAM to record writes that are being executed
• Recovery from corruption is similar to recovery from failed
• NV-RAM helps to efficacy detected potentially corrupted
• Beware: power failure during write can result in corrupted disk
blocks
ÿ Eg, failure after writing one block but before writing the second in
a mirrored system
Hardware Issues
12.26
Database System Concepts - 7th Edition ©Silberschatz, Korth and Sudarshan
Machine Translated by Google
down
ÿ Latent failures: data successfully written earlier gets damaged
ÿ Hot swapping: replacement of disk while system is running, without power
ÿ Many systems maintain spare disks which are kept online, and used as
replacements for failed disks immediately on detection of failure
controller/interconnection failures
Hardware Issues (Cont.)
©Silberschatz, Korth and Sudarshan
Database System Concepts - 7th Edition 12.27
• Multiple controllers and multiple interconnections to guard against
• Redundant power supplies with battery backup
ÿ Data scrubbing:
• Supported by some hardware RAID systems, •
reduces time to recovery, and improves availability greatly
• can result in data loss even if only one disk fails
ÿ Many hardware RAID systems ensure that a single point of failure will not
• Reduces time to recovery greatly
• continually scan for latent failures, and recover from copy/parity
stop the functioning of the system by using
Machine Translated by Google
ÿ Buffering: in-memory buffer to cache disk blocks
be requested soon
movement is minimized
ÿ Disk-arm-scheduling algorithms re-order block requests so that disk arm
Optimization of Disk-Block Access
Database System Concepts - 7th Edition ©Silberschatz, Korth and Sudarshan
12.28
• elevator algorithm
ÿ Read-ahead: Read extra blocks from a track in anticipation that they will
Machine Translated by Google
ÿ Buffering: in-memory buffer to cache disk blocks
be requested soon
movement is minimized
ÿ Disk-arm-scheduling algorithms re-order block requests so that disk arm
Optimization of Disk-Block Access
R5 R2
• elevator algorithm
ÿ Read-ahead: Read extra blocks from a track in anticipation that they will
R1
Inner track
R6 R3 R4
Outer track
Database System Concepts - 7th Edition ©Silberschatz, Korth and Sudarshan
12.29
Machine Translated by Google
Database System Concepts - 7th Edition ©Silberschatz, Korth and Sudarshan
12.31
End of Chapter 12
Machine Translated by Google
ÿ Used mainly for backup, for storage of infrequently used information, and as
an off-line medium for transferring information from one system to another.
(Digital Linear Tape) format, 100 GB+ with Ultrium format, and 330 GB
with Ampex helical scan format
• Multiple petabyes (1015 bytes)
Magnetic Tapes
• Transfer rates from few to 10s of MB/s
• Some formats (Accelis) provide faster seek (10s of seconds) at cost of
lower capacity
• limited to sequential access.
• Few GB for DAT (Digital Audio Tape) format, 10-40 GB with DLT
ÿ Very slow access time in comparison to magnetic and optical disks
ÿ Hold large volumes of data and provide high transfer rates
ÿ Tape jukeboxes used for very large capacity storage
ÿ Tapes are cheap, but cost of drives is very high
12.32 ©Silberschatz, Korth and Sudarshan
Database System Concepts - 7th Edition
Machine Translated by Google

Mais conteúdo relacionado

Semelhante a 4_5837027281599466545_220608_094042.pdf

storage and file structure
storage and file structurestorage and file structure
storage and file structureSheshan Sheniwal
 
04.01 file organization
04.01 file organization04.01 file organization
04.01 file organizationBishal Ghimire
 
db
dbdb
dbAisu
 
11. Storage and File Structure in DBMS
11. Storage and File Structure in DBMS11. Storage and File Structure in DBMS
11. Storage and File Structure in DBMSkoolkampus
 
Overview of physical storage media
Overview of physical storage mediaOverview of physical storage media
Overview of physical storage mediaSrinath Sri
 
FILE STRUCTURE IN DBMS
FILE STRUCTURE IN DBMSFILE STRUCTURE IN DBMS
FILE STRUCTURE IN DBMSAbhishek Dutta
 
Mass storagestructure pre-final-formatting
Mass storagestructure pre-final-formattingMass storagestructure pre-final-formatting
Mass storagestructure pre-final-formattingmarangburu42
 
Chapter 12 - Mass Storage Systems
Chapter 12 - Mass Storage SystemsChapter 12 - Mass Storage Systems
Chapter 12 - Mass Storage SystemsWayne Jones Jnr
 
Storage structure1
Storage structure1Storage structure1
Storage structure1amibuban
 
What is the average rotational latency of this disk drive What seek.docx
 What is the average rotational latency of this disk drive  What seek.docx What is the average rotational latency of this disk drive  What seek.docx
What is the average rotational latency of this disk drive What seek.docxajoy21
 

Semelhante a 4_5837027281599466545_220608_094042.pdf (20)

DB_ch11
DB_ch11DB_ch11
DB_ch11
 
storage and file structure
storage and file structurestorage and file structure
storage and file structure
 
04.01 file organization
04.01 file organization04.01 file organization
04.01 file organization
 
Unit 4 DBMS.ppt
Unit 4 DBMS.pptUnit 4 DBMS.ppt
Unit 4 DBMS.ppt
 
Magnetic disk - Krishna Geetha.ppt
Magnetic disk  - Krishna Geetha.pptMagnetic disk  - Krishna Geetha.ppt
Magnetic disk - Krishna Geetha.ppt
 
ch11
ch11ch11
ch11
 
Thiru
ThiruThiru
Thiru
 
Db
DbDb
Db
 
db
dbdb
db
 
11. Storage and File Structure in DBMS
11. Storage and File Structure in DBMS11. Storage and File Structure in DBMS
11. Storage and File Structure in DBMS
 
Overview of physical storage media
Overview of physical storage mediaOverview of physical storage media
Overview of physical storage media
 
FILE STRUCTURE IN DBMS
FILE STRUCTURE IN DBMSFILE STRUCTURE IN DBMS
FILE STRUCTURE IN DBMS
 
Mass storagestructure pre-final-formatting
Mass storagestructure pre-final-formattingMass storagestructure pre-final-formatting
Mass storagestructure pre-final-formatting
 
Disk memory systems
Disk memory systemsDisk memory systems
Disk memory systems
 
Chapter 12 - Mass Storage Systems
Chapter 12 - Mass Storage SystemsChapter 12 - Mass Storage Systems
Chapter 12 - Mass Storage Systems
 
Viknesh
VikneshViknesh
Viknesh
 
Storage structure1
Storage structure1Storage structure1
Storage structure1
 
What is the average rotational latency of this disk drive What seek.docx
 What is the average rotational latency of this disk drive  What seek.docx What is the average rotational latency of this disk drive  What seek.docx
What is the average rotational latency of this disk drive What seek.docx
 
Os7
Os7Os7
Os7
 
Secondary storage devices
Secondary storage devicesSecondary storage devices
Secondary storage devices
 

Mais de ssusere05ec21

الوسائط المتعددة+الانترنت-1.pptx
الوسائط المتعددة+الانترنت-1.pptxالوسائط المتعددة+الانترنت-1.pptx
الوسائط المتعددة+الانترنت-1.pptxssusere05ec21
 
impalapresentation-130130105033-phpapp02 (1)_221220_235919.pdf
impalapresentation-130130105033-phpapp02 (1)_221220_235919.pdfimpalapresentation-130130105033-phpapp02 (1)_221220_235919.pdf
impalapresentation-130130105033-phpapp02 (1)_221220_235919.pdfssusere05ec21
 
htmlandxmlppt-221003075051-f0e12745 (1)_221028_234356.pdf
htmlandxmlppt-221003075051-f0e12745 (1)_221028_234356.pdfhtmlandxmlppt-221003075051-f0e12745 (1)_221028_234356.pdf
htmlandxmlppt-221003075051-f0e12745 (1)_221028_234356.pdfssusere05ec21
 
4_6039371879632866014.pdf
4_6039371879632866014.pdf4_6039371879632866014.pdf
4_6039371879632866014.pdfssusere05ec21
 
xml-150211140504-conversion-gate01 (1).pdf
xml-150211140504-conversion-gate01 (1).pdfxml-150211140504-conversion-gate01 (1).pdf
xml-150211140504-conversion-gate01 (1).pdfssusere05ec21
 
Lecture 1-introduction to distributed computing.pptx
Lecture 1-introduction to distributed computing.pptxLecture 1-introduction to distributed computing.pptx
Lecture 1-introduction to distributed computing.pptxssusere05ec21
 
03 The scientific method in research.pptx
03 The scientific method in research.pptx03 The scientific method in research.pptx
03 The scientific method in research.pptxssusere05ec21
 
01 Introduction to Research.pptx
01 Introduction to Research.pptx01 Introduction to Research.pptx
01 Introduction to Research.pptxssusere05ec21
 
Chapter_21_Blood_Vessels_Power_Point.ppt
Chapter_21_Blood_Vessels_Power_Point.pptChapter_21_Blood_Vessels_Power_Point.ppt
Chapter_21_Blood_Vessels_Power_Point.pptssusere05ec21
 
02 Literature search and reviewing_1.pptx
02  Literature search and reviewing_1.pptx02  Literature search and reviewing_1.pptx
02 Literature search and reviewing_1.pptxssusere05ec21
 
04 Preparing Scientific Documents I_1.pptx
04 Preparing Scientific Documents I_1.pptx04 Preparing Scientific Documents I_1.pptx
04 Preparing Scientific Documents I_1.pptxssusere05ec21
 
Cloud Computing Course.pdf
Cloud Computing Course.pdfCloud Computing Course.pdf
Cloud Computing Course.pdfssusere05ec21
 
Cloud Computing Course.pptx
Cloud Computing Course.pptxCloud Computing Course.pptx
Cloud Computing Course.pptxssusere05ec21
 

Mais de ssusere05ec21 (15)

الوسائط المتعددة+الانترنت-1.pptx
الوسائط المتعددة+الانترنت-1.pptxالوسائط المتعددة+الانترنت-1.pptx
الوسائط المتعددة+الانترنت-1.pptx
 
impalapresentation-130130105033-phpapp02 (1)_221220_235919.pdf
impalapresentation-130130105033-phpapp02 (1)_221220_235919.pdfimpalapresentation-130130105033-phpapp02 (1)_221220_235919.pdf
impalapresentation-130130105033-phpapp02 (1)_221220_235919.pdf
 
Scope.pdf
Scope.pdfScope.pdf
Scope.pdf
 
htmlandxmlppt-221003075051-f0e12745 (1)_221028_234356.pdf
htmlandxmlppt-221003075051-f0e12745 (1)_221028_234356.pdfhtmlandxmlppt-221003075051-f0e12745 (1)_221028_234356.pdf
htmlandxmlppt-221003075051-f0e12745 (1)_221028_234356.pdf
 
4_6039371879632866014.pdf
4_6039371879632866014.pdf4_6039371879632866014.pdf
4_6039371879632866014.pdf
 
xml-150211140504-conversion-gate01 (1).pdf
xml-150211140504-conversion-gate01 (1).pdfxml-150211140504-conversion-gate01 (1).pdf
xml-150211140504-conversion-gate01 (1).pdf
 
Lecture 1-introduction to distributed computing.pptx
Lecture 1-introduction to distributed computing.pptxLecture 1-introduction to distributed computing.pptx
Lecture 1-introduction to distributed computing.pptx
 
03 The scientific method in research.pptx
03 The scientific method in research.pptx03 The scientific method in research.pptx
03 The scientific method in research.pptx
 
01 Introduction to Research.pptx
01 Introduction to Research.pptx01 Introduction to Research.pptx
01 Introduction to Research.pptx
 
Chapter_21_Blood_Vessels_Power_Point.ppt
Chapter_21_Blood_Vessels_Power_Point.pptChapter_21_Blood_Vessels_Power_Point.ppt
Chapter_21_Blood_Vessels_Power_Point.ppt
 
02 Literature search and reviewing_1.pptx
02  Literature search and reviewing_1.pptx02  Literature search and reviewing_1.pptx
02 Literature search and reviewing_1.pptx
 
04 Preparing Scientific Documents I_1.pptx
04 Preparing Scientific Documents I_1.pptx04 Preparing Scientific Documents I_1.pptx
04 Preparing Scientific Documents I_1.pptx
 
Cloud Computing Course.pdf
Cloud Computing Course.pdfCloud Computing Course.pdf
Cloud Computing Course.pdf
 
Cloud Computing Course.pptx
Cloud Computing Course.pptxCloud Computing Course.pptx
Cloud Computing Course.pptx
 
Case study.pdf
Case study.pdfCase study.pdf
Case study.pdf
 

Último

Jeremy Casson - How Painstaking Restoration Has Revealed the Beauty of an Imp...
Jeremy Casson - How Painstaking Restoration Has Revealed the Beauty of an Imp...Jeremy Casson - How Painstaking Restoration Has Revealed the Beauty of an Imp...
Jeremy Casson - How Painstaking Restoration Has Revealed the Beauty of an Imp...Jeremy Casson
 
Hazratganj / Call Girl in Lucknow - Phone 🫗 8923113531 ☛ Escorts Service at 6...
Hazratganj / Call Girl in Lucknow - Phone 🫗 8923113531 ☛ Escorts Service at 6...Hazratganj / Call Girl in Lucknow - Phone 🫗 8923113531 ☛ Escorts Service at 6...
Hazratganj / Call Girl in Lucknow - Phone 🫗 8923113531 ☛ Escorts Service at 6...akbard9823
 
OYO GIRLS Call Girls in Lucknow Best Escorts Service Near You 8923113531 Call...
OYO GIRLS Call Girls in Lucknow Best Escorts Service Near You 8923113531 Call...OYO GIRLS Call Girls in Lucknow Best Escorts Service Near You 8923113531 Call...
OYO GIRLS Call Girls in Lucknow Best Escorts Service Near You 8923113531 Call...hanshkumar9870
 
Call girls in Kanpur - 9761072362 with room service
Call girls in Kanpur - 9761072362 with room serviceCall girls in Kanpur - 9761072362 with room service
Call girls in Kanpur - 9761072362 with room servicediscovermytutordmt
 
Lucknow 💋 Virgin Call Girls Lucknow | Book 8923113531 Extreme Naughty Call Gi...
Lucknow 💋 Virgin Call Girls Lucknow | Book 8923113531 Extreme Naughty Call Gi...Lucknow 💋 Virgin Call Girls Lucknow | Book 8923113531 Extreme Naughty Call Gi...
Lucknow 💋 Virgin Call Girls Lucknow | Book 8923113531 Extreme Naughty Call Gi...anilsa9823
 
Lucknow 💋 Call Girls Service Lucknow ₹7.5k Pick Up & Drop With Cash Payment 8...
Lucknow 💋 Call Girls Service Lucknow ₹7.5k Pick Up & Drop With Cash Payment 8...Lucknow 💋 Call Girls Service Lucknow ₹7.5k Pick Up & Drop With Cash Payment 8...
Lucknow 💋 Call Girls Service Lucknow ₹7.5k Pick Up & Drop With Cash Payment 8...anilsa9823
 
Islamabad Escorts # 03080115551 # Escorts in Islamabad || Call Girls in Islam...
Islamabad Escorts # 03080115551 # Escorts in Islamabad || Call Girls in Islam...Islamabad Escorts # 03080115551 # Escorts in Islamabad || Call Girls in Islam...
Islamabad Escorts # 03080115551 # Escorts in Islamabad || Call Girls in Islam...wdefrd
 
Lucknow 💋 Russian Call Girls Lucknow - Book 8923113531 Call Girls Available 2...
Lucknow 💋 Russian Call Girls Lucknow - Book 8923113531 Call Girls Available 2...Lucknow 💋 Russian Call Girls Lucknow - Book 8923113531 Call Girls Available 2...
Lucknow 💋 Russian Call Girls Lucknow - Book 8923113531 Call Girls Available 2...anilsa9823
 
AaliyahBell_themist_v01.pdf .
AaliyahBell_themist_v01.pdf             .AaliyahBell_themist_v01.pdf             .
AaliyahBell_themist_v01.pdf .AaliyahB2
 
Lucknow 💋 Call Girl in Lucknow | Whatsapp No 8923113531 VIP Escorts Service A...
Lucknow 💋 Call Girl in Lucknow | Whatsapp No 8923113531 VIP Escorts Service A...Lucknow 💋 Call Girl in Lucknow | Whatsapp No 8923113531 VIP Escorts Service A...
Lucknow 💋 Call Girl in Lucknow | Whatsapp No 8923113531 VIP Escorts Service A...anilsa9823
 
Patrakarpuram ) Cheap Call Girls In Lucknow (Adult Only) 🧈 8923113531 𓀓 Esco...
Patrakarpuram ) Cheap Call Girls In Lucknow  (Adult Only) 🧈 8923113531 𓀓 Esco...Patrakarpuram ) Cheap Call Girls In Lucknow  (Adult Only) 🧈 8923113531 𓀓 Esco...
Patrakarpuram ) Cheap Call Girls In Lucknow (Adult Only) 🧈 8923113531 𓀓 Esco...akbard9823
 
Lucknow 💋 Call Girl in Lucknow Phone No 8923113531 Elite Escort Service Avail...
Lucknow 💋 Call Girl in Lucknow Phone No 8923113531 Elite Escort Service Avail...Lucknow 💋 Call Girl in Lucknow Phone No 8923113531 Elite Escort Service Avail...
Lucknow 💋 Call Girl in Lucknow Phone No 8923113531 Elite Escort Service Avail...anilsa9823
 
Deconstructing Gendered Language; Feminist World-Making 2024
Deconstructing Gendered Language; Feminist World-Making 2024Deconstructing Gendered Language; Feminist World-Making 2024
Deconstructing Gendered Language; Feminist World-Making 2024samlnance
 
Lucknow 💋 Call Girl in Lucknow 10k @ I'm VIP Independent Escorts Girls 892311...
Lucknow 💋 Call Girl in Lucknow 10k @ I'm VIP Independent Escorts Girls 892311...Lucknow 💋 Call Girl in Lucknow 10k @ I'm VIP Independent Escorts Girls 892311...
Lucknow 💋 Call Girl in Lucknow 10k @ I'm VIP Independent Escorts Girls 892311...anilsa9823
 
exhuma plot and synopsis from the exhuma movie.pptx
exhuma plot and synopsis from the exhuma movie.pptxexhuma plot and synopsis from the exhuma movie.pptx
exhuma plot and synopsis from the exhuma movie.pptxKurikulumPenilaian
 
Lucknow 💋 Cheap Call Girls In Lucknow Finest Escorts Service 8923113531 Avail...
Lucknow 💋 Cheap Call Girls In Lucknow Finest Escorts Service 8923113531 Avail...Lucknow 💋 Cheap Call Girls In Lucknow Finest Escorts Service 8923113531 Avail...
Lucknow 💋 Cheap Call Girls In Lucknow Finest Escorts Service 8923113531 Avail...anilsa9823
 
Best Call girls in Lucknow - 9548086042 - with hotel room
Best Call girls in Lucknow - 9548086042 - with hotel roomBest Call girls in Lucknow - 9548086042 - with hotel room
Best Call girls in Lucknow - 9548086042 - with hotel roomdiscovermytutordmt
 
Call Girl Service In Dubai #$# O56521286O #$# Dubai Call Girls
Call Girl Service In Dubai #$# O56521286O #$# Dubai Call GirlsCall Girl Service In Dubai #$# O56521286O #$# Dubai Call Girls
Call Girl Service In Dubai #$# O56521286O #$# Dubai Call Girlsparisharma5056
 

Último (20)

Jeremy Casson - How Painstaking Restoration Has Revealed the Beauty of an Imp...
Jeremy Casson - How Painstaking Restoration Has Revealed the Beauty of an Imp...Jeremy Casson - How Painstaking Restoration Has Revealed the Beauty of an Imp...
Jeremy Casson - How Painstaking Restoration Has Revealed the Beauty of an Imp...
 
Indian Deira Call Girls # 0522916705 # Indian Call Girls In Deira Dubai || (UAE)
Indian Deira Call Girls # 0522916705 # Indian Call Girls In Deira Dubai || (UAE)Indian Deira Call Girls # 0522916705 # Indian Call Girls In Deira Dubai || (UAE)
Indian Deira Call Girls # 0522916705 # Indian Call Girls In Deira Dubai || (UAE)
 
Hazratganj / Call Girl in Lucknow - Phone 🫗 8923113531 ☛ Escorts Service at 6...
Hazratganj / Call Girl in Lucknow - Phone 🫗 8923113531 ☛ Escorts Service at 6...Hazratganj / Call Girl in Lucknow - Phone 🫗 8923113531 ☛ Escorts Service at 6...
Hazratganj / Call Girl in Lucknow - Phone 🫗 8923113531 ☛ Escorts Service at 6...
 
OYO GIRLS Call Girls in Lucknow Best Escorts Service Near You 8923113531 Call...
OYO GIRLS Call Girls in Lucknow Best Escorts Service Near You 8923113531 Call...OYO GIRLS Call Girls in Lucknow Best Escorts Service Near You 8923113531 Call...
OYO GIRLS Call Girls in Lucknow Best Escorts Service Near You 8923113531 Call...
 
Call girls in Kanpur - 9761072362 with room service
Call girls in Kanpur - 9761072362 with room serviceCall girls in Kanpur - 9761072362 with room service
Call girls in Kanpur - 9761072362 with room service
 
Lucknow 💋 Virgin Call Girls Lucknow | Book 8923113531 Extreme Naughty Call Gi...
Lucknow 💋 Virgin Call Girls Lucknow | Book 8923113531 Extreme Naughty Call Gi...Lucknow 💋 Virgin Call Girls Lucknow | Book 8923113531 Extreme Naughty Call Gi...
Lucknow 💋 Virgin Call Girls Lucknow | Book 8923113531 Extreme Naughty Call Gi...
 
Dxb Call Girls # +971529501107 # Call Girls In Dxb Dubai || (UAE)
Dxb Call Girls # +971529501107 # Call Girls In Dxb Dubai || (UAE)Dxb Call Girls # +971529501107 # Call Girls In Dxb Dubai || (UAE)
Dxb Call Girls # +971529501107 # Call Girls In Dxb Dubai || (UAE)
 
Lucknow 💋 Call Girls Service Lucknow ₹7.5k Pick Up & Drop With Cash Payment 8...
Lucknow 💋 Call Girls Service Lucknow ₹7.5k Pick Up & Drop With Cash Payment 8...Lucknow 💋 Call Girls Service Lucknow ₹7.5k Pick Up & Drop With Cash Payment 8...
Lucknow 💋 Call Girls Service Lucknow ₹7.5k Pick Up & Drop With Cash Payment 8...
 
Islamabad Escorts # 03080115551 # Escorts in Islamabad || Call Girls in Islam...
Islamabad Escorts # 03080115551 # Escorts in Islamabad || Call Girls in Islam...Islamabad Escorts # 03080115551 # Escorts in Islamabad || Call Girls in Islam...
Islamabad Escorts # 03080115551 # Escorts in Islamabad || Call Girls in Islam...
 
Lucknow 💋 Russian Call Girls Lucknow - Book 8923113531 Call Girls Available 2...
Lucknow 💋 Russian Call Girls Lucknow - Book 8923113531 Call Girls Available 2...Lucknow 💋 Russian Call Girls Lucknow - Book 8923113531 Call Girls Available 2...
Lucknow 💋 Russian Call Girls Lucknow - Book 8923113531 Call Girls Available 2...
 
AaliyahBell_themist_v01.pdf .
AaliyahBell_themist_v01.pdf             .AaliyahBell_themist_v01.pdf             .
AaliyahBell_themist_v01.pdf .
 
Lucknow 💋 Call Girl in Lucknow | Whatsapp No 8923113531 VIP Escorts Service A...
Lucknow 💋 Call Girl in Lucknow | Whatsapp No 8923113531 VIP Escorts Service A...Lucknow 💋 Call Girl in Lucknow | Whatsapp No 8923113531 VIP Escorts Service A...
Lucknow 💋 Call Girl in Lucknow | Whatsapp No 8923113531 VIP Escorts Service A...
 
Patrakarpuram ) Cheap Call Girls In Lucknow (Adult Only) 🧈 8923113531 𓀓 Esco...
Patrakarpuram ) Cheap Call Girls In Lucknow  (Adult Only) 🧈 8923113531 𓀓 Esco...Patrakarpuram ) Cheap Call Girls In Lucknow  (Adult Only) 🧈 8923113531 𓀓 Esco...
Patrakarpuram ) Cheap Call Girls In Lucknow (Adult Only) 🧈 8923113531 𓀓 Esco...
 
Lucknow 💋 Call Girl in Lucknow Phone No 8923113531 Elite Escort Service Avail...
Lucknow 💋 Call Girl in Lucknow Phone No 8923113531 Elite Escort Service Avail...Lucknow 💋 Call Girl in Lucknow Phone No 8923113531 Elite Escort Service Avail...
Lucknow 💋 Call Girl in Lucknow Phone No 8923113531 Elite Escort Service Avail...
 
Deconstructing Gendered Language; Feminist World-Making 2024
Deconstructing Gendered Language; Feminist World-Making 2024Deconstructing Gendered Language; Feminist World-Making 2024
Deconstructing Gendered Language; Feminist World-Making 2024
 
Lucknow 💋 Call Girl in Lucknow 10k @ I'm VIP Independent Escorts Girls 892311...
Lucknow 💋 Call Girl in Lucknow 10k @ I'm VIP Independent Escorts Girls 892311...Lucknow 💋 Call Girl in Lucknow 10k @ I'm VIP Independent Escorts Girls 892311...
Lucknow 💋 Call Girl in Lucknow 10k @ I'm VIP Independent Escorts Girls 892311...
 
exhuma plot and synopsis from the exhuma movie.pptx
exhuma plot and synopsis from the exhuma movie.pptxexhuma plot and synopsis from the exhuma movie.pptx
exhuma plot and synopsis from the exhuma movie.pptx
 
Lucknow 💋 Cheap Call Girls In Lucknow Finest Escorts Service 8923113531 Avail...
Lucknow 💋 Cheap Call Girls In Lucknow Finest Escorts Service 8923113531 Avail...Lucknow 💋 Cheap Call Girls In Lucknow Finest Escorts Service 8923113531 Avail...
Lucknow 💋 Cheap Call Girls In Lucknow Finest Escorts Service 8923113531 Avail...
 
Best Call girls in Lucknow - 9548086042 - with hotel room
Best Call girls in Lucknow - 9548086042 - with hotel roomBest Call girls in Lucknow - 9548086042 - with hotel room
Best Call girls in Lucknow - 9548086042 - with hotel room
 
Call Girl Service In Dubai #$# O56521286O #$# Dubai Call Girls
Call Girl Service In Dubai #$# O56521286O #$# Dubai Call GirlsCall Girl Service In Dubai #$# O56521286O #$# Dubai Call Girls
Call Girl Service In Dubai #$# O56521286O #$# Dubai Call Girls
 

4_5837027281599466545_220608_094042.pdf

  • 1. Database System Concepts, 7th Ed . ©Silberschatz, Korth and Sudarshan See www.db-book.com for conditions on re-use Chapter 12: Physical Storage Systems Machine Translated by Google
  • 2. Classification of Physical Storage Media • Cost per unit of data ÿ Factors affecting choice of storage media include • non-volatile storage: • Speed with which data can be accessed • Reliability ÿ Can differentiate storage into: • volatile storage: loses contents when power is switched off ÿ Contents persist even when power is switched off. ÿ Includes secondary and tertiary storage, as well as batter-backed up main-memory. Database System Concepts - 7th Edition ©Silberschatz, Korth and Sudarshan 12.2 Machine Translated by Google
  • 3. 12.3 Database System Concepts - 7th Edition ©Silberschatz, Korth and Sudarshan Storage Hierarchy Machine Translated by Google
  • 4. • Also called on-line storage • Eg, flash memory, magnetic disks ÿ primary storage: Fastest media but volatile (cache, main memory). ÿ secondary storage: next level in hierarchy, non-volatile, moderately fast • also called off-line storage and used for archival storage • eg, magnetic tape, optical storage • Magnetic tape ÿ Sequential access, 1 to 12 TB capacity ÿ A few drives with many tapes ÿ Juke boxes with petabytes (1000's of TB) of storage ÿ tertiary storage: lowest level in hierarchy, non-volatile, slow access time access time Database System Concepts - 7th Edition ©Silberschatz, Korth and Sudarshan 12.4 Storage Hierarchy (Cont.) Machine Translated by Google
  • 5. ÿ SATA 3 supports data transfer speeds of up to 6 gigabits/sec • SAS (Serial Attached SCSI) In Storage Area Networks (SAN), a large number of disks are connected by a high-speed network to a number of servers ÿ SAS Version 3 supports 12 gigabits/sec • SATA (Serial ATA) In Network Attached Storage (NAS) networked storage provides a file system interface using networked file system protocol, instead of providing a disk system interface ÿ Supports data transfer rates of up to 24 gigabits/sec ÿ Works with PCIe connectors to support lower latency and higher transfer rates Storage Interfaces Database System Concepts - 7th Edition ©Silberschatz, Korth and Sudarshan 12.5 ÿ Disks usually connected directly to computer system ÿ Disk interface standards families ÿ • NVMe (Non-Volatile Memory Express) interface ÿ Machine Translated by Google
  • 6. Photo of magnetic disk drive Schematic diagram of magnetic disk drive ©Silberschatz, Korth and Sudarshan 12.6 Database System Concepts - 7th Edition Magnetic Hard Disk Mechanism Machine Translated by Google
  • 7. ÿ Each track is divided into sectors. 2000 (on outer tracks) head th track of all the platters consists of ÿ Surface of platter divided into circular tracks i i Magnetic Disks • disk arm swings to position head on right track ÿ Head-disk assembly • Typical sectors per track: 500 to 1000 (on inner tracks) to 1000 to • Over 50K-100K tracks per platter on typical hard disks • platter spins continually; data is read/written as sector passes under • Sector size typically 512 bytes • one head per platter, mounted on a common arm. ÿ Read-write head • A sector is the smallest unit of data that can be read or written. • multiple disk platters on a single spindle (1 to 5 usually) ÿ To read/write a sector ÿ Cylinder Database System Concepts - 7th Edition ©Silberschatz, Korth and Sudarshan 12.7 Machine Translated by Google
  • 8. ÿ Disk controller – interfaces between the computer system and the disk drive hardware. • Computes and attaches checksums to each sector to verify that data is read back correctly • Performs remapping of bad sectors • Ensures successful writing by reading back sector after writing it ÿ If data is corrupted, with very high probability stored checksum • accepts high-level commands to read or write a sector • initiates actions such as moving the disk arm to the right track and actually reading or writing the data won't match recomputed checksum Magnetic Disks (Cont.) Database System Concepts - 7th Edition ©Silberschatz, Korth and Sudarshan 12.8 Machine Translated by Google
  • 9. ÿ 4 to 10 milliseconds on typical disks ÿ Average latency is 1/2 of the above latency. • Seek time – time it takes to reposition the arm over the correct track. ÿ Average seek time is 1/2 the worst case seek time. to the disk. appear under the head. ÿ Access time – the time it takes from when a read or write request is issued to when data transfer begins. Consists of: ÿ Data-transfer rate – the rate at which data can be retrieved from or stored • Rotational latency – time it takes for the sector to be accessed to Performance Measures of Disks Database System Concepts - 7th Edition ©Silberschatz, Korth and Sudarshan 12.9 • 25 to 200 MB per second max rate, lower for inner tracks • Overall latency is 5 to 20 msec depending on disk model • Would be 1/3 if all tracks had the same number of sectors, and we ignore the time to start and stop arm movement ÿ 4 to 11 milliseconds on typical disks (5400 to 15,000 rpm) Machine Translated by Google
  • 10. ÿ Disk block is a logical unit for storage allocation and retrieval • 4 to 16 kilobytes typically Performance Measures (Cont.) ÿ Sequential access pattern • Successive requests are for successive disk blocks • Disk seek required only for first block ÿ Random access pattern • Successive requests are for blocks that can be anywhere on disk • Each access requires a seek • Transfer rates are low since a lot of time is wasted in seeks ÿ I/O operations per second (IOPS) • Number of random block reads that a disk can support per second • 50 to 200 IOPS on current generation magnetic disks ÿ Smaller blocks: more transfers from disk ÿ Larger blocks: more space wasted due to partially filled blocks 12.10 Database System Concepts - 7th Edition ©Silberschatz, Korth and Sudarshan Machine Translated by Google
  • 11. “theoretical MTTF” of 500,000 to 1,200,000 hours for a new disk ÿ Mean time to failure (MTTF) – the average time the disk is expected to ÿ Eg, an MTTF of 1,200,000 hours for a new disk means that given 1000 relatively new disks, on an average one will fail every 1200 hours run continuously without any failure. • Typically 3 to 5 years Performance Measures (Cont.) • MTTF decreases as disk ages • Probability of failure of new disks is quite low, corresponding to a 12.11 Database System Concepts - 7th Edition ©Silberschatz, Korth and Sudarshan Machine Translated by Google
  • 12. • requires page-at-a-time read (page: 512 bytes to 4 KB) Flash Storage ÿ Not much difference between sequential and random read ÿ 20 to 100 microseconds for a page read • Page can only be written once • used widely for storage, cheaper than NOR flash ÿ NOR flash vs NAND flash ÿ Solid state disks • Use standard block-oriented disk interfaces, but store data on multiple flash storage devices internally • Transfer rate of up to 500 MB/sec using SATA, and up to 3 GB/sec using NVMe PCIe ÿ NAND flash ÿ Must be erased to allow rewrite Database System Concepts - 7th Edition ©Silberschatz, Korth and Sudarshan 12.12 Machine Translated by Google
  • 13. • remapping carried out by flash translation layer ÿ Flash translation table tracks mapping ÿ Erase happens in units of erase block ÿ Remapping of logical page addresses to physical page addresses avoids waiting for erase Flash Storage (Cont.) • wear leveling • Erase block typically 256 KB to 1 MB (128 to 256 pages) • also stored in a label field of flash page ÿ After 100,000 to 1,000,000 erases, erase block becomes unreliable and cannot be used • Takes 2 to 5 millisecs Database System Concepts - 7th Edition 12.13 ©Silberschatz, Korth and Sudarshan Machine Translated by Google
  • 14. ÿ Typical 4KB reads: ÿ Random reads/writes per second • Typical 4 KB reads: 10,000 reads per second (10,000 IOPS) • Typical 4KB writes: 40,000 IOPS • SSDs support parallel reads SSD Performance Metrics • 400 MB/sec for SATA3, 2 to 3 GB/sec using NVMe PCIe ÿ Hybrid disks: combine small amount of flash cache with larger magnetic ÿ Typical 4KB writes: • 100,000 IOPS with 32 requests in parallel (QD-32) on SATA disk • 100,000 IOPS with QD-32, even higher on some models ÿ Data transfer rate for sequential reads/writes • 350,000 IOPS with QD-32 on NVMe PCIe Database System Concepts - 7th Edition ©Silberschatz, Korth and Sudarshan 12.14 Machine Translated by Google
  • 15. ÿ 3D-XPoint memory technology pioneered by Intel ÿ Available as Intel Optane • SSD interface shipped from 2017 Storage Class Memory ÿ Allows lower latency than flash SSDs • Non-volatile memory interface announced in 2018 ÿ Supports direct access to words, at speeds comparable to main memory speeds Database System Concepts - 7th Edition ©Silberschatz, Korth and Sudarshan 12.15 Machine Translated by Google
  • 16. than the chance that a specific single disk will fail. N (approx. 11 years), will have a system MTTF of 1000 hours (approx. 41 days) large numbers of disks disks will fail is much higher providing a view of a single disk of RAID Database System Concepts - 7th Edition ©Silberschatz, Korth and Sudarshan 12.16 ÿ RAID: Redundant Arrays of Independent Disks • disk organization techniques that manage a large numbers of disks, ÿ The chance that some disk out of a set of • Techniques for using redundancy to avoid data loss are critical with ÿ high capacity and high speed by using multiple disks in parallel, ÿ high reliability by storing data redundantly, so that data can be recovered even if a disk fails • Eg, a system with 100 disks, each with MTTF of 100,000 hours Machine Translated by Google
  • 17. ÿ Redundancy – store extra information that can be used to rebuild information lost in a disk failure • Probability of combined event is very small ÿ Except for dependent failure modes such as fire or building ÿ Reads can take place from either disk • Eg, MTTF of 100,000 hours, mean time to repair of 10 hours gives mean time to data loss of 500*106 hours (or 57,000 years) for a mirrored pair of disks (ignoring dependent failure modes) ÿ Mean time to data loss depends on mean time to failure, and mean time to repair fails before the system is repaired ÿ Data loss would occur only if a disk fails, and its mirror disk also ÿ Eg, Mirroring (or shadowing) collapse or electrical power surges If one disk in a pair fails, data still available in the other Improvement of Reliability via Redundancy • Duplicate every disk. Logical disk consists of two physical disks. • Every write is carried out on both disks • Database System Concepts - 7th Edition ©Silberschatz, Korth and Sudarshan 12.17 Machine Translated by Google
  • 18. 1. Load balance multiple small accesses to increase throughput i. of each byte to disk i Improvement in Performance via Parallelism i ) + 1 of a file goes to disk (mod n ÿ Bit-level striping - split the bits of each byte across multiple disks disks block n ÿ Bit level striping is not used much any more i ÿ Block-level striping – with 2. Parallelize large accesses to reduce response time. • A request for a long sequence of blocks can utilize all disks in parallel • In an array of eight disks, write bit • Each access can read data at eight times the rate of a single disk. • But seek/access time worse than for a single disk ÿ Two main goals of parallelism in a disk system: ÿ Improve transfer rate by striping data across multiple disks. • Requests for different blocks can run in parallel if the blocks reside on different disks Database System Concepts - 7th Edition ©Silberschatz, Korth and Sudarshan 12.18 Machine Translated by Google
  • 19. combined with parity bits • Different RAID organizations, or RAID levels, have differing cost, performance and reliability characteristics • Used in high-performance applications where data loss is not critical. • Offers best write performance. • Popular for applications such as storing log files in a database system. ÿ RAID Level 0: Block striping; non-redundant. ÿ RAID Level 1: Mirrored disks with block striping RAID Levels 12.19 Database System Concepts - 7th Edition ©Silberschatz, Korth and Sudarshan ÿ Schemes to provide redundancy at lower cost by using disk striping Machine Translated by Google
  • 20. j j must also be computed ÿ Parity blocks: Parity block of each disk ÿ Or by recomputing the parity value using the new values of blocks corresponding to the parity block j • More efficient for writing large amounts of data sequentially stores XOR of bits from block ÿ Can be done by using old parity block, old value of current block and new value of current block (2 block reads + 2 block writes) • To recover data for a block, compute XOR of bits from all other blocks in the set including the parity block j • When writing data to a block , parity block and written to disk ©Silberschatz, Korth and Sudarshan 12.20 Database System Concepts - 7th Edition RAID Levels (Cont.) Machine Translated by Google
  • 21. n N ÿ RAID Level 5: Block-Interleaved Distributed Parity; partitions data and party among all disks and parity in 1 disk. N + 1 disks, rather than storing data in th set of blocks is stored on disk 5) + 1, with the data blocks stored on the other 4 disks. RAID Levels (Cont.) ( mod n • Eg, with 5 disks, parity block for ©Silberschatz, Korth and Sudarshan Database System Concepts - 7th Edition 12.21 Machine Translated by Google
  • 22. ÿ RAID Level 5 (Cont.) • Block writes occur in parallel if the blocks and their parity blocks are • Better reliability than Level 5 at a higher cost RAID Levels (Cont.) on different disks. ÿ RAID Level 6: P+Q Redundancy scheme; Similar to Level 5, but stores two error correction blocks (P, Q) instead of single parity block to guard against multiple disk failures. ÿ Becoming more important as storage sizes increase 12.22 ©Silberschatz, Korth and Sudarshan Database System Concepts - 7th Edition Machine Translated by Google
  • 23. and keeps a parity block on a separate blocks from other disks. N • RAID Level 4: Block-Interleaved Parity; uses block-level striping, for corresponding party disk ÿ RAID 5 is better than RAID 4, since with RAID 4 with random writes, parity disk gets much higher write load than other disks and becomes a bottleneck • RAID Level 2: Memory-Style Error-Correcting-Codes (ECC) with bit • RAID Level 3: Bit-Interleaved Parity RAID Levels (Cont.) striping ÿ Other levels (not used in practice): ©Silberschatz, Korth and Sudarshan Database System Concepts - 7th Edition 12.23 Machine Translated by Google
  • 24. ÿ RAID 0 is used only when data safety is not important • Performance during failure • Eg, data can be recovered quickly from other sources • Monetary cost Choice of RAID Level • Performance during rebuild of failed disk ÿ Factors in choosing a RAID level during normal operation ÿ Including time taken to rebuild failed disk • Performance: Number of I/O operations per second, and bandwidth Database System Concepts - 7th Edition ©Silberschatz, Korth and Sudarshan 12.24 Machine Translated by Google
  • 25. ÿ Level 6 gives better data protection than RAID 5 since it can tolerate two Choice of RAID Level (Cont.) disk (or disk block) failures coupled with a failure of another disk can result in data loss with RAID 1 and RAID 5. • Increasing in importance since latent block failures on one disk, ÿ Level 1 provides much better write performance than level 5 ÿ Level 1 had higher storage cost than level 5 ÿ RAID 1 is preferred for applications with many random/small updates • Level 5 requires at least 2 block reads and 2 block writes to write a single block, whereas Level 1 only requires 2 block writes ÿ Level 5 is preferred for applications where writes are sequential and large (many blocks), and need large amounts of data storage Database System Concepts - 7th Edition ©Silberschatz, Korth and Sudarshan 12.25 Machine Translated by Google
  • 26. ÿ Software RAID: RAID implementations done entirely in software, with no special hardware support ÿ Hardware RAID: RAID implementations with special hardware ÿ Otherwise all blocks of disk must be read and compared with mirror/parity block ÿ Such corrupted data must be detected when power is restored disk • Use non-volatile RAM to record writes that are being executed • Recovery from corruption is similar to recovery from failed • NV-RAM helps to efficacy detected potentially corrupted • Beware: power failure during write can result in corrupted disk blocks ÿ Eg, failure after writing one block but before writing the second in a mirrored system Hardware Issues 12.26 Database System Concepts - 7th Edition ©Silberschatz, Korth and Sudarshan Machine Translated by Google
  • 27. down ÿ Latent failures: data successfully written earlier gets damaged ÿ Hot swapping: replacement of disk while system is running, without power ÿ Many systems maintain spare disks which are kept online, and used as replacements for failed disks immediately on detection of failure controller/interconnection failures Hardware Issues (Cont.) ©Silberschatz, Korth and Sudarshan Database System Concepts - 7th Edition 12.27 • Multiple controllers and multiple interconnections to guard against • Redundant power supplies with battery backup ÿ Data scrubbing: • Supported by some hardware RAID systems, • reduces time to recovery, and improves availability greatly • can result in data loss even if only one disk fails ÿ Many hardware RAID systems ensure that a single point of failure will not • Reduces time to recovery greatly • continually scan for latent failures, and recover from copy/parity stop the functioning of the system by using Machine Translated by Google
  • 28. ÿ Buffering: in-memory buffer to cache disk blocks be requested soon movement is minimized ÿ Disk-arm-scheduling algorithms re-order block requests so that disk arm Optimization of Disk-Block Access Database System Concepts - 7th Edition ©Silberschatz, Korth and Sudarshan 12.28 • elevator algorithm ÿ Read-ahead: Read extra blocks from a track in anticipation that they will Machine Translated by Google
  • 29. ÿ Buffering: in-memory buffer to cache disk blocks be requested soon movement is minimized ÿ Disk-arm-scheduling algorithms re-order block requests so that disk arm Optimization of Disk-Block Access R5 R2 • elevator algorithm ÿ Read-ahead: Read extra blocks from a track in anticipation that they will R1 Inner track R6 R3 R4 Outer track Database System Concepts - 7th Edition ©Silberschatz, Korth and Sudarshan 12.29 Machine Translated by Google
  • 30. Database System Concepts - 7th Edition ©Silberschatz, Korth and Sudarshan 12.31 End of Chapter 12 Machine Translated by Google
  • 31. ÿ Used mainly for backup, for storage of infrequently used information, and as an off-line medium for transferring information from one system to another. (Digital Linear Tape) format, 100 GB+ with Ultrium format, and 330 GB with Ampex helical scan format • Multiple petabyes (1015 bytes) Magnetic Tapes • Transfer rates from few to 10s of MB/s • Some formats (Accelis) provide faster seek (10s of seconds) at cost of lower capacity • limited to sequential access. • Few GB for DAT (Digital Audio Tape) format, 10-40 GB with DLT ÿ Very slow access time in comparison to magnetic and optical disks ÿ Hold large volumes of data and provide high transfer rates ÿ Tape jukeboxes used for very large capacity storage ÿ Tapes are cheap, but cost of drives is very high 12.32 ©Silberschatz, Korth and Sudarshan Database System Concepts - 7th Edition Machine Translated by Google