中国科学技术大学:《操作系统原理与设计 Operating System》课程教学资源(PPT课件讲稿)12 外存 Mass Storage Systems

提纲 Overview of Mass Storage Structure Disk Structure Disk Scheduling(磁盘调度) Disk Management Swap-Space Management RAID(磁盘阵列)Structure 小结和作业 4口”4814在,4色,主)QC
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 提纲 Overview of Mass Storage Structure Disk Structure Disk Scheduling (磁盘调度) Disk Management Swap-Space Management RAID (磁盘阵列) Structure 小结和作业

Overview of Mass Storage Structure Magnetic disks(磁盘)provide bulk of secondary storage of modern computers Drives rotate at 60 to 200 times per second Transfer rate(传输速率)is rate at which data flow between drive and computer Positioning time(random-access time)is time to move disk arm to desired cylinder(seek time)and time for desired sector to rotate under the disk head (rotational latency) Head crash results from disk head making contact with the disk surface That's bad Disks can be removable 口”4814在年生”主)QC
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Overview of Mass Storage Structure ▶ Magnetic disks (磁盘) provide bulk of secondary storage of modern computers ▶ Drives rotate at 60 to 200 times per second ▶ Transfer rate (传输速率) is rate at which data flow between drive and computer ▶ Positioning time (random-access time) is time to move disk arm to desired cylinder (seek time) and time for desired sector to rotate under the disk head (rotational latency) ▶ Head crash results from disk head making contact with the disk surface ▶ That’s bad ▶ Disks can be removable

Overview of Mass Storage Structure Drive attached to computer via l/O bus Busses vary,including EIDE,ATA,SATA,USB,Fibre Channel,SCSI Host controller in computer uses bus to talk to disk controller built into drive or storage array track t ←-spindle arm assembly Bector s cylinder c- read-write head platter arm rotation 4口”484在4色,主月QC
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Overview of Mass Storage Structure ▶ Drive attached to computer via I/O bus ▶ Busses vary, including EIDE, ATA, SATA, USB, Fibre Channel, SCSI ▶ Host controller in computer uses bus to talk to disk controller built into drive or storage array

Overview of Mass Storage Structure sector、 cylinder 4口”484在4色,主月QC
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Overview of Mass Storage Structure

Overview of Mass Storage Structure Magnetic tape(磁带) An early secondary-storage medium Relatively permanent and holds large quantities of data Access time slow Random access ~1000 times slower than disk Mainly used for backup,storage of infrequently-used data,transfer medium between systems Kept in spool and wound or rewound past read-write head Once data under head,transfer rates comparable to disk 20-200GB typical storage Common technologies are 4mm,8mm,19mm,LTO-2 and SDLT Oper “口4814在1生主)QC
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Overview of Mass Storage Structure ▶ Magnetic tape (磁带) ▶ An early secondary-storage medium ▶ Relatively permanent and holds large quantities of data ▶ Access time slow ▶ Random access ∼1000 times slower than disk ▶ Mainly used for backup, storage of infrequently-used data, transfer medium between systems ▶ Kept in spool and wound or rewound past read-write head ▶ Once data under head, transfer rates comparable to disk ▶ 20-200GB typical storage ▶ Common technologies are 4mm, 8mm, 19mm, LTO-2 and SDLT Oper

Outline Disk Structure “口4814在:4生”主QC
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Outline Disk Structure

Disk Structure Disk drives are addressed as large 1-D arrays of logical blocks, The logical block is the smallest unit of transfer. Usually,512B The 1-D array of logical blocks is mapped into the sectors of the disk sequentially. Cylinder:track:sector Sector 0 is the first sector of the first track on the outermost cylinder. Mapping proceeds in order through that track,then the rest of the tracks in that cylinder,and then through the rest of the cylinders from outermost to innermost. However,in practise,the mapping is difficult,because 1.Defective sectors 2.Sectors/track constant →zones of cylinder 4口”484在4色,主月QC
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Disk Structure ▶ Disk drives are addressed as large 1-D arrays of logical blocks, ▶ The logical block is the smallest unit of transfer. ▶ Usually, 512B ▶ The 1-D array of logical blocks is mapped into the sectors of the disk sequentially. ▶ Cylinder: track: sector ▶ Sector 0 is the first sector of the first track on the outermost cylinder. ▶ Mapping proceeds in order through that track, then the rest of the tracks in that cylinder, and then through the rest of the cylinders from outermost to innermost. ▶ However, in practise, the mapping is difficult, because 1. Defective sectors 2. Sectors/track ̸= constant ⇒ zones of cylinder

Outline Disk Scheduling(磁盘调度) 4口”484在4色,主月QC
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Outline Disk Scheduling (磁盘调度)

Disk Scheduling(磁盘调度) The OS is responsible for using hardware efficiently For the disk drives,this means having a fast access time and disk bandwidth. Access time has two major components 1.Seek time is the time for the disk to move the heads to the cylinder containing the desired sector. Minimize seek time Seek time seek distance 2.Rotational latency is the additional time waiting for the disk to rotate the desired sector to the disk head. Disk bandwidth(磁盘带宽)is the total number of bytes transferred,divided by the total time between the first request for service and the completion of the last transfer. 口”484在年生”主)QC
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Disk Scheduling (磁盘调度) ▶ The OS is responsible for using hardware efficiently. For the disk drives, this means having a fast access time and disk bandwidth. ▶ Access time has two major components 1. Seek time is the time for the disk to move the heads to the cylinder containing the desired sector. ▶ Minimize seek time ▶ Seek time ≈ seek distance 2. Rotational latency is the additional time waiting for the disk to rotate the desired sector to the disk head. ▶ Disk bandwidth (磁盘带宽) is the total number of bytes transferred, divided by the total time between the first request for service and the completion of the last transfer

Disk Scheduling(磁盘调度) Request queue(请求队列) empty or not How? Several algorithms exist to schedule the servicing of disk I/O requests. 1.FCFS 2.SSTF (shortest-seek-time-first) 3.SCAN(elevator algorithm) 4.C-SCAN 5.C-L00K We illustrate them with a request queue(0-199). 98,183,37,122,14,124,65,67 Head points to 53 initially 口”4814在年生”主)QC
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Disk Scheduling (磁盘调度) ▶ Request queue (请求队列) ▶ empty or not ▶ How? Several algorithms exist to schedule the servicing of disk I/O requests. 1. FCFS 2. SSTF (shortest-seek-time-first) 3. SCAN (elevator algorithm) 4. C-SCAN 5. C-LOOK ▶ We illustrate them with a request queue (0-199). 98, 183, 37, 122, 14, 124, 65, 67 Head points to 53 initially
按次数下载不扣除下载券;
注册用户24小时内重复下载只扣除一次;
顺序:VIP每日次数-->可用次数-->下载券;
- 中国科学技术大学:《操作系统原理与设计 Operating System》课程教学资源(PPT课件讲稿)11 File 文件系统实现 File system implementation.pdf
- 中国科学技术大学:《操作系统原理与设计 Operating System》课程教学资源(PPT课件讲稿)10 文件系统接口 File System Interface.pdf
- 中国科学技术大学:《操作系统原理与设计 Operating System》课程教学资源(PPT课件讲稿)09 虚拟内存 Virtual Memory.pdf
- 中国科学技术大学:《操作系统原理与设计 Operating System》课程教学资源(PPT课件讲稿)08 Main Memory.pdf
- 中国科学技术大学:《操作系统原理与设计 Operating System》课程教学资源(PPT课件讲稿)07 Deadlock.pdf
- 中国科学技术大学:《操作系统原理与设计 Operating System》课程教学资源(PPT课件讲稿)06 Process Synchronization.pdf
- 中国科学技术大学:《操作系统原理与设计 Operating System》课程教学资源(PPT课件讲稿)05 Threads.pdf
- 中国科学技术大学:《操作系统原理与设计 Operating System》课程教学资源(PPT课件讲稿)04 CPU Scheduling.pdf
- 中国科学技术大学:《操作系统原理与设计 Operating System》课程教学资源(PPT课件讲稿)03 Processes.pdf
- 中国科学技术大学:《操作系统原理与设计 Operating System》课程教学资源(PPT课件讲稿)02 OS Structure.pdf
- 中国科学技术大学:《操作系统原理与设计 Operating System》课程教学资源(PPT课件讲稿)01 CS Structure.pdf
- 中国科学技术大学:《操作系统原理与设计 Operating System》课程教学资源(PPT课件讲稿)01 OS overview.pdf
- 中国科学技术大学:《操作系统原理与设计 Operating System》课程教学资源(PPT课件讲稿)课程简介(主讲:陈香兰).pdf
- 中国科学技术大学:《高级操作系统 Advanced Operating System》课程教学资源(PPT课件讲稿)第二章 分布式路由算法(2/2).ppt
- 中国科学技术大学:《高级操作系统 Advanced Operating System》课程教学资源(PPT课件讲稿)第二章 分布式路由算法主要内容(1/2,主讲:陈香兰).ppt
- 天津开放大学:《电子商务概论》课程教学资源(试卷习题)综合练习及答案.doc
- 国家开放大学:《计算机应用基础》课程教学资源(章节习题,含答案)计算机网络应用基础练习_第三章.doc
- 国家开放大学:《计算机应用基础》课程教学资源(章节习题,含答案)计算机安全练习_第七章.doc
- 国家开放大学:《计算机应用基础》课程教学资源(章节习题,含答案)计算机基础知识练习_第一章.doc
- 国家开放大学:《计算机应用基础》课程教学资源(章节习题,含答案)Word 2010文字处理系统练习_第四章.doc
- 中国科学技术大学:《操作系统原理与设计 Operating System》课程教学资源(PPT课件讲稿)13 IO管理 IO systems.pdf
- 中国科学技术大学:《Linux操作系统分析》课程教学资源(课件讲义)GNU开发工具链简介 GNU Tools(主讲:陈香兰).pdf
- 中国科学技术大学:《Linux操作系统分析》课程教学资源(课件讲义)基于x86的Linux启动代码分析.pdf
- 中国科学技术大学:《Linux操作系统分析》课程教学资源(课件讲义)制作简单的Linux系统.pdf
- 中国科学技术大学:《Linux操作系统分析》课程教学资源(PPT课件讲稿)内存寻址.ppt
- 中国科学技术大学:《Linux操作系统分析》课程教学资源(PPT课件讲稿)Linux进程管理(1/3).ppt
- 中国科学技术大学:《Linux操作系统分析》课程教学资源(PPT课件讲稿)Linux进程管理(2/3).ppt
- 中国科学技术大学:《Linux操作系统分析》课程教学资源(课件讲义)中断和异常.pdf
- 中国科学技术大学:《Linux操作系统分析》课程教学资源(课件讲义)系统调用.pdf
- 中国科学技术大学:《Linux操作系统分析》课程教学资源(PPT课件讲稿)Linux进程管理(3/3).ppt
- 中国科学技术大学:《Linux操作系统分析》课程教学资源(课件讲义)内存管理.pdf
- 中国科学技术大学:《Linux操作系统分析》课程教学资源(课件讲义)Linux中的时钟和定时测量.pdf
- 中国科学技术大学:《Linux操作系统分析》课程教学资源(课件讲义)Linux中的进程地址空间.pdf
- 中国科学技术大学:《Linux操作系统分析》课程教学资源(课件讲义)程序的执行.pdf
- 中国科学技术大学:《Linux操作系统分析》课程教学资源(PPT课件讲稿)文件系统.ppt
- 中国科学技术大学:《Linux操作系统分析》课程教学资源(PPT课件讲稿)管理I/O设备.ppt
- 中国科学技术大学:《Linux操作系统分析》课程教学资源(PPT课件讲稿)Linux中的信号机制.ppt
- 中国科学技术大学:《Linux操作系统分析》课程教学资源(PPT课件讲稿)进程的同步和通信.ppt
- 中国科学技术大学:《嵌入式操作系统 Embedded Operating Systems》课程教学资源(课件讲义)课程介绍(主讲:陈香兰).pdf
- 中国科学技术大学:《嵌入式操作系统 Embedded Operating Systems》课程教学资源(课件讲义)嵌入式系统及嵌入式软件开发概述.pdf