Docsity

computer hardware and system software 9, Slides of Computer Fundamentals

Partial preview of the text

Download computer hardware and system software 9 and more Slides Computer Fundamentals in PDF only on Docsity!

MIS 2103

Computer Hardware and

System Software

Fall 2023

Lecture

10 - 2

Solid State Drive (SSD)

Solid-state drives (SSD) are hard disks made of an array of solid-state electronic memory chips. It consists of a control unit, a storage unit (FLASH chip, DRAM chip), and a c ache unit. Unlike mechanical hard disks, the entire SSD structure consists of electronic chips and circuit boards instead of mechanical devices.

10 - 4

Solid State Drive (SSD)

The NAND Flash memory stores information in an array of memory cells made from floating-gate transistors. In single-level cell (SLC) devices, each cell stores only one bit of information. Multi-level cell (MLC) devices, including triple-level cell (TLC) devices, can store more than one bit per cell. The bits represent an electrical charge which can only hold one of two values, 0 or 1, on/off. The key differences between the types of NAND are the cost, capacity, and endurance. Endurance is determined by the number of Programme-Erase (P/E) cycles a flash cell can undergo before it starts to wear out. A P/E cycle is the process of erasing and writing a cell and the more P/E cycles that the NAND technology can sustain the better the endurance of the device.

The NAND Flash Memory

Multi-Level Cell (MLC) § One bit per flash cell § 0 or 1 § Lower capacity and more expensive than MLC flash § Higher throughput than MLC § 10000 – 100000 write cycles Expensive, enterprise drives Single-Level Cell (SLC) § Multiple bits per flash cell § For two-level: 00, 01, 10, 11 § 2, 3, and 4-bit MLC is available § Higher capacity and cheaper than SLC flash § Lower throughput due to the need for error correction § 3000 – 5000 write cycels § Consumes more power Consumer-grade drives 5

10 - 7

Solid State Drive (SSD)

Controller : The controller is the brain of the SSD and manages the flow of data between the host system and the NAND flash memory. It also performs wear leveling (distribute writes across all flash cells), error correction , and other functions to ensure the reliability and longevity (endurance) of the SSD. DRAM cache: Some SSDs include a DRAM cache to temporarily store data that is being read or written. This helps to speed up data transfer and improve overall performance. Interface: The interface is the connection between the SSD and the host system. The most common interfaces used in SSDs are SATA, PCIe, and NVMe. Firmware : The firmware is the software that runs on the SSD controller and manages its operation. It includes algorithms for wear leveling, error correction, and other functions that are essential for the performance and reliability of the SSD.

10 - 8

Magnetic Disks

§ Track – circle § Cylinder – same track on all platters § Block – small arc of a track § Sector – pie-shaped part of a platter § Head – reads data off the disk § Head crash § Parked heads § Number of bits on each track is the same! Denser towards the center. § CAV – constant angular velocity § Spins the same speed for every track § Hard drives – 3600 rpm – 7200 rpm § Floppy drives – 360 rpm

Magnetic Disks

track t sector s spindle cylinder c platter arm read-write head arm assembly rotation

Addressing and Geometry

Externally, hard drives expose a large number of sectors (blocks)

  • Typically 512 or 4096 bytes Drive geometry
  • Sectors arranged into tracks
  • A cylinder is a particular track on multiple platters
  • Tracks arranged in concentric circles on platters
  • A disk may have multiple, double-sided platters Drive motor spins the platters at a constant rate
  • Measured in revolutions (rounds) per minute (RPM)

Locating a Block of Data

§ Average seek time: time required to move from one track to another § Latency: time required for disk to rotate to beginning of correct sector § Transfer time: time required to transfer a block of data to the disk controller buffer

Disk Access Times

§ Avg. Seek time

§ average time to move from one track to another

§ Avg. Latency time

§ average time to rotate to the beginning of the sector § Avg. Latency time = ½ * 1/rotational speed

§ Transfer time

§ 1/(# of sectors * rotational speed)

§ Total Time to access a disk block

§ Avg. seek time + avg. latency time + avg. transfer time

Redundant Array of Inexpensive Disks (RAID)

§ RAID: use multiple disks to create the illusion of a large, faster and/or more reliable disk § Externally, RAID looks like a single disk

§ Data blocks are read/written as usual

§ No need for software to explicitly manage

multiple disks or perform error checking/recovery

Redundant Array of Inexpensive Disks (RAID)

§ Internally, RAID is a complex computer system

§ Disks managed by a dedicated CPU +

software

§ RAM and non-volatile memory

§ Many different configuration options (RAID

levels)

RAID 0: Striping

§ Key idea: present an array of disks as a single

large disk

§ Maximize parallelism by striping data cross all N

disks

Addressing Blocks

§ How do you access specific data blocks? § Disk = logical_block_number % number_of_disks § Offset = logical_block_number / number_of_disks § Example: read block 11 § 11 % 4 = Disk 3 § 11 / 4 = Physical Block 2 (starting from 0)