《操作系统原理与设计 Operating System Principles and Implementation》课程教学课件(英文讲稿)Chapter 8 Mass Storage

Operating SystemsChapter 8Mass Storage1
Operating Systems 1 Chapter 8 Mass Storage

Topics inPart3(StorageManagementKV,DistributedFSUserSpaceProcessesGraph System...File systemImplementationOperatingSystemKernelFileSystemOperationsFAT32,EXT2/3SSSSaidSuitsDevices25669512G8
Topics in Part 3 (Storage Management) 2 File System Operations Operating System Kernel User Space Devices Processes File system Implementation FAT32, EXT2/3 KV, Distributed FS, Graph System

Storage Hierarchyregisterscachemainmemorysolid-state diskharddiskopticaldiskmagnetictapes3
Storage Hierarchy 3

Topics(MassStorage)Disk StructureDisk SchedulingSSDStructureSSDSMSal1298258851268SSDFeatures/IssuesRAIDErasure Coding
Topics (Mass Storage) 4 SSD Structure SSD Features/Issues Disk Structure Disk Scheduling RAID Erasure Coding

Topics- Disk structureDisk schedulingSolid-state drives (SSDs)RAID & Erasure coding5
5 Topics - Disk structure - Disk scheduling - Solid-state drives (SSDs) - RAID & Erasure coding

HardDiskStructure-Physical viewPhysicaladdress(cylinder,track,sector)Track:The surface of a platteris dividedinto tracksSector:Trackisdividedintosectors(512Bdata+ECC)tracktspindleCylinder:Setof tracks that are at one arm positionarmassemblysectorsAccess:Seek+Rotateread-writeSeektime:cylinder c-headmove disk arm to desired cylinderplatterRotational latency:armspinat5400/7200/10K/15KRPMrotation
Hard Disk Structure – Physical view Physical address (cylinder, track, sector) Track: The surface of a platter is divided into tracks Sector: Track is divided into sectors (512B data + ECC) Cylinder: Set of tracks that are at one arm position Access: Seek + Rotate Seek time: move disk arm to desired cylinder Rotational latency: spin at 5400/7200/10K/15K RPM

Hard Disk Structure-Physical viewConstant linervelocity (CLV)> Uniformdensityofbitspertrackoutertrackholdmore sectorstracktspindleVariablerotationspeed tokeepthesame rate of datamovingarmCD-ROM/DVD-ROMsectorsConstant angularvelocity(CAv)Constantrotationspeedread-writecylinder c-Higher density of bits in inner tracksheadHard disksplatterarmrotation
Hard Disk Structure – Physical view Constant liner velocity (CLV) Uniform density of bits per track, outer track hold more sectors Variable rotation speed to keep the same rate of data moving CD-ROM/DVD-ROM Constant angular velocity (CAV) Constant rotation speed Higher density of bits in inner tracks Hard disks

Hard DiskStructure-Logical viewHow to use?Large1-Darraysoflogicalblocks(usually512bytes)AddressmappingLogical block number-> (cylinder#, track #, sector#)Disk management is required>Diskformatting>Disks are prone tofailures:defective sectors arecommon(badblocks)Needtohandledefectivesectors:badblockmanagement
Hard Disk Structure – Logical view How to use? Large 1-D arrays of logical blocks (usually 512 bytes) Address mapping Logical block number -> (cylinder #, track #, sector #) Disk management is required Disk formatting Disks are prone to failures: defective sectors are common (bad blocks) Need to handle defective sectors: bad block management

DiskManagementDiskFormattingStep 1:Low-level formatting/physical formattingDivide intosectors so diskcontroller can read/writeFills the disk with a special data structure for each sector (data area(512B)headerandtrailer (sectornumber&EcC))The controller automatically does the EcC processing whenever a sectorisread/writtenDone at factory, used for testing and initializing (e.g., the mapping). It is alsopossibleto set thesector size (256B,512B, 1K,4K)
Disk Management Disk Formatting Step 1: Low-level formatting/physical formatting Divide into sectors so disk controller can read/write Fills the disk with a special data structure for each sector (data area(512B), header and trailer (sector number & ECC)) • The controller automatically does the ECC processing whenever a sector is read/written Done at factory, used for testing and initializing (e.g., the mapping). It is also possible to set the sector size (256B, 512B, 1K, 4K)

DiskManagementDiskFormattingStep 2: How to use disks to hold files after shipment?Choice1:FilesystemPartition into one or more groups of cylinders (each as a separate disk)Logical formatting: creating a Fs by storing the initial FS data structures1/o optimization: Disk 1/o (via blocks)& file system 1/o (via clusters), why?Moresequentialaccess,fewerrandomaccessChoice2:RawdiskUse disk partition as a large sequentialarray of logical blocks, without FSRaw//O:bypass all FS services (buffer cache,prefetching...),be able tocontrolexactdisklocation
Disk Management Disk Formatting Step 2: How to use disks to hold files after shipment? Choice 1: File system Partition into one or more groups of cylinders (each as a separate disk) Logical formatting: creating a FS by storing the initial FS data structures I/O optimization: Disk I/O (via blocks) & file system I/O (via clusters), why? • More sequential access, fewer random access Choice 2: Raw disk Use disk partition as a large sequential array of logical blocks, without FS Raw I/O: bypass all FS services (buffer cache, prefetching.), be able to control exact disk location
按次数下载不扣除下载券;
注册用户24小时内重复下载只扣除一次;
顺序:VIP每日次数-->可用次数-->下载券;
- 《操作系统原理与设计 Operating System Principles and Implementation》课程教学课件(英文讲稿)Chapter 7 Memory Management part2.pdf
- 《操作系统原理与设计 Operating System Principles and Implementation》课程教学课件(英文讲稿)Chapter 7 Memory Management part1.pdf
- 《操作系统原理与设计 Operating System Principles and Implementation》课程教学课件(英文讲稿)Chapter 6 Process Scheduling.pdf
- 《操作系统原理与设计 Operating System Principles and Implementation》课程教学课件(英文讲稿)Chapter 5 Process Communication & Synchronization -Part 2.pdf
- 《操作系统原理与设计 Operating System Principles and Implementation》课程教学课件(英文讲稿)Chapter 5 Process Communication & Synchronization(part1).pdf
- 《操作系统原理与设计 Operating System Principles and Implementation》课程教学课件(英文讲稿)Chapter 4 Threads.pdf
- 《操作系统原理与设计 Operating System Principles and Implementation》课程教学课件(英文讲稿)Chapter 3 Process Concepts & Operations(part2)from Kernel's Perspective.pdf
- 《操作系统原理与设计 Operating System Principles and Implementation》课程教学课件(英文讲稿)Chapter 3 Process Concepts & Operations(part1).pdf
- 《操作系统原理与设计 Operating System Principles and Implementation》课程教学课件(英文讲稿)Chapter 2 Operating System Structures.pdf
- 《操作系统原理与设计 Operating System Principles and Implementation》课程教学课件(英文讲稿)Chapter 1 Overview of an Operating System.pdf
- 《计算机网络》课程教学资源(PPT课件)第六章 应用层.pptx
- 《计算机网络》课程教学资源(PPT课件)第五章 传输层.pptx
- 《计算机网络》课程教学资源(PPT课件)第四章 网络层.pptx
- 《计算机网络》课程教学资源(PPT课件)第三章 数据链路层.pptx
- 《计算机网络》课程教学资源(PPT课件)第二章 物理层.pptx
- 《计算机网络》课程教学资源(PPT课件)第一章 概述.pptx
- 《智能算法设计与应用》课程教学大纲 Intelligent Algorithm Design and Application.docx
- 《数字导航技术》课程教学资源(书籍文献)计算机视觉-马颂德.pdf
- 《C语言程序设计》课程参考文献:Programming languages — C(PDF电子书,英文版).pdf
- 《操作系统》课程教学资源(PPT课件)课程简介 Operating System.pptx
- 《操作系统原理与设计 Operating System Principles and Implementation》课程教学课件(英文讲稿)Chapter 9 File Systems part1.pdf
- 《操作系统原理与设计 Operating System Principles and Implementation》课程教学课件(英文讲稿)Chapter 9 File Systems part2.pdf
- 《操作系统原理与设计 Operating System Principles and Implementation》课程教学课件(英文讲稿)Chapter 10 Details of FAT32.pdf
- 《操作系统原理与设计 Operating System Principles and Implementation》课程教学课件(英文讲稿)Chapter 10 Details of Ext2/3 File System.pdf
- 北京工业大学:信息科学技术学院《C#程序设计基础》课程教学大纲 Fundamentals of Programming Principle and Practice in C#.pdf
- 北京工业大学:计算机学院本科课程教学大纲汇编(2024).pdf
- 揭阳职业技术学院:《计算机应用基础》课程授课教案(讲义,2025).pdf
- 《C语言程序设计》课程教学课件(PPT讲稿)第10章 对文件的输入输出.pptx
- 《C语言程序设计》课程教学课件(PPT讲稿)第01章 程序设计和C语言.pptx
- 《C语言程序设计》课程教学课件(PPT讲稿)第02章 算法——程序的灵魂.pptx
- 《C语言程序设计》课程教学课件(PPT讲稿)第03章 最简单的C程序设计——顺序程序设计.pptx
- 《C语言程序设计》课程教学课件(PPT讲稿)第04章 选择结构程序设计.pptx
- 《C语言程序设计》课程教学课件(PPT讲稿)第05章 循环结构程序设计.pptx
- 《C语言程序设计》课程教学课件(PPT讲稿)第06章 利用数组处理批量数据.pptx
- 《C语言程序设计》课程教学课件(PPT讲稿)第07章 用函数实现模块化程序设计.pptx
- 《C语言程序设计》课程教学课件(PPT讲稿)第08章 善于利用指针.pptx
- 《C语言程序设计》课程教学课件(PPT讲稿)第09章 用户自己建立数据类型.pptx
