ImageVerifierCode 换一换
格式:PPTX , 页数:45 ,大小:1.07MB ,
资源ID:10253919      下载积分:14 金币
快捷注册下载
登录下载
邮箱/手机:
温馨提示:
快捷下载时,用户名和密码都是您填写的邮箱或者手机号,方便查询和重复下载(系统自动生成)。 如填写123,账号就是123,密码也是123。
特别说明:
请自助下载,系统不会自动发送文件的哦; 如果您已付费,想二次下载,请登录后访问:我的下载记录
支付方式: 支付宝    微信支付   
验证码:   换一换

开通VIP
 

温馨提示:由于个人手机设置不同,如果发现不能下载,请复制以下地址【https://www.zixin.com.cn/docdown/10253919.html】到电脑端继续下载(重复下载【60天内】不扣币)。

已注册用户请登录:
账号:
密码:
验证码:   换一换
  忘记密码?
三方登录: 微信登录   QQ登录  

开通VIP折扣优惠下载文档

            查看会员权益                  [ 下载后找不到文档?]

填表反馈(24小时):  下载求助     关注领币    退款申请

开具发票请登录PC端进行申请

   平台协调中心        【在线客服】        免费申请共赢上传

权利声明

1、咨信平台为文档C2C交易模式,即用户上传的文档直接被用户下载,收益归上传人(含作者)所有;本站仅是提供信息存储空间和展示预览,仅对用户上传内容的表现方式做保护处理,对上载内容不做任何修改或编辑。所展示的作品文档包括内容和图片全部来源于网络用户和作者上传投稿,我们不确定上传用户享有完全著作权,根据《信息网络传播权保护条例》,如果侵犯了您的版权、权益或隐私,请联系我们,核实后会尽快下架及时删除,并可随时和客服了解处理情况,尊重保护知识产权我们共同努力。
2、文档的总页数、文档格式和文档大小以系统显示为准(内容中显示的页数不一定正确),网站客服只以系统显示的页数、文件格式、文档大小作为仲裁依据,个别因单元格分列造成显示页码不一将协商解决,平台无法对文档的真实性、完整性、权威性、准确性、专业性及其观点立场做任何保证或承诺,下载前须认真查看,确认无误后再购买,务必慎重购买;若有违法违纪将进行移交司法处理,若涉侵权平台将进行基本处罚并下架。
3、本站所有内容均由用户上传,付费前请自行鉴别,如您付费,意味着您已接受本站规则且自行承担风险,本站不进行额外附加服务,虚拟产品一经售出概不退款(未进行购买下载可退充值款),文档一经付费(服务费)、不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
4、如你看到网页展示的文档有www.zixin.com.cn水印,是因预览和防盗链等技术需要对页面进行转换压缩成图而已,我们并不对上传的文档进行任何编辑或修改,文档下载后都不会有水印标识(原文档上传前个别存留的除外),下载后原文更清晰;试题试卷类文档,如果标题没有明确说明有答案则都视为没有答案,请知晓;PPT和DOC文档可被视为“模板”,允许上传人保留章节、目录结构的情况下删减部份的内容;PDF文档不管是原文档转换或图片扫描而得,本站不作要求视为允许,下载前可先查看【教您几个在下载文档中可以更好的避免被坑】。
5、本文档所展示的图片、画像、字体、音乐的版权可能需版权方额外授权,请谨慎使用;网站提供的党政主题相关内容(国旗、国徽、党徽--等)目的在于配合国家政策宣传,仅限个人学习分享使用,禁止用于任何广告和商用目的。
6、文档遇到问题,请及时联系平台进行协调解决,联系【微信客服】、【QQ客服】,若有其他问题请点击或扫码反馈【服务填表】;文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“【版权申诉】”,意见反馈和侵权处理邮箱:1219186828@qq.com;也可以拔打客服电话:0574-28810668;投诉电话:18658249818。

注意事项

本文(操作系统有责任高效地使用硬件对于磁盘设备.pptx)为本站上传会员【快乐****生活】主动上传,咨信网仅是提供信息存储空间和展示预览,仅对用户上传内容的表现方式做保护处理,对上载内容不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知咨信网(发送邮件至1219186828@qq.com、拔打电话4009-655-100或【 微信客服】、【 QQ客服】),核实后会尽快下架及时删除,并可随时和客服了解处理情况,尊重保护知识产权我们共同努力。
温馨提示:如果因为网速或其他原因下载失败请重新下载,重复下载【60天内】不扣币。 服务填表

操作系统有责任高效地使用硬件对于磁盘设备.pptx

1、Click to edit Master title style,Click to edit Master text styles,Second level,Third level,Fourth level,Fifth level,*,*,*,*,单击此处编辑母版标题样式,单击此处编辑母版文本样式,第二级,第三级,第四级,第五级,*,*,单击此处编辑母版标题样式,单击此处编辑母版文本样式,第二级,第三级,第四级,第五级,Chapter 14:Mass-Storage Systems,Disk Structure,Disk Scheduling,Disk Management,Swap-Spac

2、e Management,RAID Structure,Disk Attachment,Stable-Storage Implementation,Tertiary Storage Devices,Operating System Issues,Performance Issues,1 4/11/,第1页,Disk Structure,Disk drives are addressed as large 1-dimensional arrays of,logical blocks,where the logical block is the,smallest unit of transfer.

3、The 1-dimensional array of logical blocks is mapped into the sectors of the disk sequentially.,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 cylind

4、ers from outermost to innermost.,2 4/11/,第2页,Disk Scheduling,The operating system 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,访问时间包含两个主要部分,Seek ti

5、me,is the time for the disk are to move the heads to the cylinder containing the desired sector.,寻道时间是指把磁头移到所需柱面时间。,Rotational latency,is the additional time waiting for the disk to rotate the desired sector to the disk head.,旋转延迟是指等候磁盘上所需要扇区旋转到磁头下面时间。,3 4/11/,第3页,Disk Scheduling,Minimize seek time,

6、最小寻道时间,Seek time,seek distance,寻道时间,寻道距离,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.,磁盘带宽,是用传输总位数,除以第一个服务请求与最终传输完成之间总时间。,4 4/11/,第4页,Disk Scheduling(Cont.),Several algorithms exist to

7、 schedule the servicing of disk I/O requests.,We illustrate them with a request queue(0-199).,98,183,37,122,14,124,65,67,Head pointer 53,5 4/11/,第5页,FCFS,Illustration shows total head movement of 640 cylinders.,6 4/11/,第6页,SSTF,Selects the request with the minimum seek time from the current head pos

8、ition.,SSTF scheduling is a form of SJF scheduling;may cause starvation of some requests.,Illustration shows total head movement of 236 cylinders.,7 4/11/,第7页,SSTF(Cont.),8 4/11/,第8页,SCAN,The disk arm starts at one end of the disk,and moves toward the other end,servicing requests until it gets to th

9、e other end of the disk,where the head movement is reversed and servicing continues.,Sometimes called the,elevator algorithm(,电梯算法,),.,Illustration shows total head movement of 208 cylinders.,9 4/11/,第9页,SCAN(Cont.),10 4/11/,第10页,C-SCAN,Provides a more uniform wait time than SCAN.,The head moves fro

10、m one end of the disk to the other.servicing requests as it goes.When it reaches the other end,however,it immediately returns to the beginning of the disk,without servicing any requests on the return trip.,Treats the cylinders as a circular list that wraps around from the last cylinder to the first

11、one.,11 4/11/,第11页,C-SCAN(Cont.),12 4/11/,第12页,C-LOOK,Version of C-SCAN,Arm only goes as far as the last request in each direction,then reverses direction immediately,without first going all the way to the end of the disk.,13 4/11/,第13页,C-LOOK(Cont.),14 4/11/,第14页,Selecting a Disk-Scheduling Algorit

12、hm,SSTF is common and has a natural appeal,SCAN and C-SCAN perform better for systems that place a heavy load on the disk.,Performance depends on the number and types of requests.,Requests for disk service can be influenced by the file-allocation method.,The disk-scheduling algorithm should be writt

13、en as a separate module of the operating system,allowing it to be replaced with a different algorithm if necessary.,Either SSTF or LOOK is a reasonable choice for the default algorithm.,15 4/11/,第15页,Disk Management,Low-level formatting,or,physical formatting,Dividing a disk into sectors that the di

14、sk controller can read and write.,To use a disk to hold files,the operating system still needs to record its own data structures on the disk.,Partition,the disk into one or more groups of cylinders.,Logical formatting,or“making a file system”.,Boot block initializes system.,The bootstrap is stored i

15、n ROM.,Bootstrap loader,program.,Methods such as,sector sparing,used to handle bad blocks.,16 4/11/,第16页,MS-DOS Disk Layout,17 4/11/,第17页,Swap-Space Management,Swap-space Virtual memory uses disk space as an extension of main memory.,Swap-space can be carved out of the normal file system,or,more com

16、monly,it can be in a separate disk partition.,Swap-space management,4.3BSD allocates swap space when process starts;holds,text segment,(the program)and,data segment.,Kernel uses,swap maps,to track swap-space use.,Solaris 2 allocates swap space only when a page is forced out of physical memory,not wh

17、en the virtual memory page is first created.,18 4/11/,第18页,4.3 BSD Text-Segment Swap Map,19 4/11/,第19页,4.3 BSD Data-Segment Swap Map,20 4/11/,第20页,RAID Structure,RAID,multiple disk drives provides,reliability,via,redundancy,.,RAID is arranged into six different levels.,21 4/11/,第21页,RAID(cont),Sever

18、al improvements in disk-use techniques involve the use of multiple disks working cooperatively.,Disk striping uses a group of disks as one storage unit.,RAID schemes improve performance and improve the reliability of the storage system by storing redundant data.,Mirroring,or,shadowing,keeps duplicat

19、e of each disk.,Block interleaved parity,uses much less redundancy.,22 4/11/,第22页,RAID Levels,23 4/11/,第23页,RAID(0+1)and(1+0),24 4/11/,第24页,Disk Attachment,Disks may be attached one of two ways:,Host attached,via an I/O port,Network attached,via a network connection,25 4/11/,第25页,Network-Attached St

20、orage,26 4/11/,第26页,Storage-Area Network,27 4/11/,第27页,Stable-Storage Implementation,Write-ahead log scheme requires stable storage.,To implement stable storage:,Replicate information on more than one nonvolatile storage media with independent failure modes.,Update information in a controlled manner

21、 to ensure that we can recover the stable data after any failure during data transfer or recovery.,28 4/11/,第28页,Tertiary Storage Devices,Low cost is the defining characteristic of tertiary storage.,Generally,tertiary storage is built using,removable media,Common examples of removable media are flop

22、py disks and CD-ROMs;other types are available.,29 4/11/,第29页,Removable Disks,Floppy disk thin flexible disk coated with magnetic material,enclosed in a protective plastic case.,Most floppies hold about 1 MB;similar technology is used for removable disks that hold more than 1 GB.,Removable magnetic

23、disks can be nearly as fast as hard disks,but they are at a greater risk of damage from exposure.,30 4/11/,第30页,Removable Disks(Cont.),A magneto-optic disk records data on a rigid platter coated with magnetic material.,Laser heat is used to amplify a large,weak magnetic field to record a bit.,Laser

24、light is also used to read data(Kerr effect).,The magneto-optic head flies much farther from the disk surface than a magnetic disk head,and the magnetic material is covered with a protective layer of plastic or glass;resistant to head crashes.,Optical disks do not use magnetism;they employ special m

25、aterials that are altered by laser light.,31 4/11/,第31页,WORM Disks,The data on read-write disks can be modified over and over.,WORM(“Write Once,Read Many Times”)disks can be written only once.,Thin aluminum film sandwiched between two glass or plastic platters.,To write a bit,the drive uses a laser

26、light to burn a small hole through the aluminum;information can be destroyed by not altered.,Very durable and reliable.,Read Only,disks,such ad CD-ROM and DVD,com from the factory with the data pre-recorded.,32 4/11/,第32页,Tapes,Compared to a disk,a tape is less expensive and holds more data,but rand

27、om access is much slower.,Tape is an economical medium for purposes that do not require fast random access,e.g.,backup copies of disk data,holding huge volumes of data.,Large tape installations typically use robotic tape changers that move tapes between tape drives and storage slots in a tape librar

28、y.,stacker library that holds a few tapes,silo library that holds thousands of tapes,A disk-resident file can be,archived,to tape for low cost storage;the computer can,stage,it back into disk storage for active use.,33 4/11/,第33页,Operating System Issues,Major OS jobs are to manage physical devices a

29、nd to present a virtual machine abstraction to applications,For hard disks,the OS provides two abstraction:,Raw device an array of data blocks.,File system the OS queues and schedules the interleaved requests from several applications.,34 4/11/,第34页,Application Interface,Most OSs handle removable di

30、sks almost exactly like fixed disks a new cartridge is formatted and an empty file system is generated on the disk.,Tapes are presented as a raw storage medium,i.e.,and application does not not open a file on the tape,it opens the whole tape drive as a raw device.,Usually the tape drive is reserved

31、for the exclusive use of that application.,Since the OS does not provide file system services,the application must decide how to use the array of blocks.,Since every application makes up its own rules for how to organize a tape,a tape full of data can generally only be used by the program that creat

32、ed it.,35 4/11/,第35页,Tape Drives,The basic operations for a tape drive differ from those of a disk drive.,locate,positions the tape to a specific logical block,not an entire track(corresponds to,seek,).,The,read position,operation returns the logical block number where the tape head is.,The,space,op

33、eration enables relative motion.,Tape drives are“append-only”devices;updating a block in the middle of the tape also effectively erases everything beyond that block.,An EOT mark is placed after a block that is written.,36 4/11/,第36页,File Naming,The issue of naming files on removable media is especia

34、lly difficult when we want to write data on a removable cartridge on one computer,and then use the cartridge in another computer.,Contemporary OSs generally leave the name space problem unsolved for removable media,and depend on applications and users to figure out how to access and interpret the da

35、ta.,Some kinds of removable media(e.g.,CDs)are so well standardized that all computers use them the same way.,37 4/11/,第37页,Hierarchical Storage Management(HSM),A hierarchical storage system extends the storage hierarchy beyond primary memory and secondary storage to incorporate tertiary storage usu

36、ally implemented as a jukebox of tapes or removable disks.,Usually incorporate tertiary storage by extending the file system.,Small and frequently used files remain on disk.,Large,old,inactive files are archived to the jukebox.,HSM is usually found in supercomputing centers and other large installat

37、ions that have enormous volumes of data.,38 4/11/,第38页,Speed,Two aspects of speed in tertiary storage are bandwidth and latency.,Bandwidth is measured in bytes per second.,Sustained bandwidth average data rate during a large transfer;#of bytes/transfer time.Data rate when the data stream is actually

38、 flowing.,Effective bandwidth average over the entire I/O time,including,seek,or,locate,and cartridge switching.Drives overall data rate.,39 4/11/,第39页,Speed(Cont.),Access latency amount of time needed to locate data.,Access time for a disk move the arm to the selected cylinder and wait for the rota

39、tional latency;35 milliseconds.,Access on tape requires winding the tape reels until the selected block reaches the tape head;tens or hundreds of seconds.,Generally say that random access within a tape cartridge is about a thousand times slower than random access on disk.,The low cost of tertiary st

40、orage is a result of having many cheap cartridges share a few expensive drives.,A removable library is best devoted to the storage of infrequently used data,because the library can only satisfy a relatively small number of I/O requests per hour.,40 4/11/,第40页,Reliability,A fixed disk drive is likely

41、 to be more reliable than a removable disk or tape drive.,An optical cartridge is likely to be more reliable than a magnetic disk or tape.,A head crash in a fixed hard disk generally destroys the data,whereas the failure of a tape drive or optical disk drive often leaves the data cartridge unharmed.

42、41 4/11/,第41页,Cost,Main memory is much more expensive than disk storage,The cost per megabyte of hard disk storage is competitive with magnetic tape if only one tape is used per drive.,The cheapest tape drives and the cheapest disk drives have had about the same storage capacity over the years.,Ter

43、tiary storage gives a cost savings only when the number of cartridges is considerably larger than the number of drives.,42 4/11/,第42页,Price per Megabyte of DRAM,From 1981 to,43 4/11/,第43页,Price per Megabyte of Magnetic Hard Disk,From 1981 to,44 4/11/,第44页,Price per Megabyte of a Tape Drive,From 1984-,45 4/11/,第45页,

移动网页_全站_页脚广告1

关于我们      便捷服务       自信AI       AI导航        抽奖活动

©2010-2025 宁波自信网络信息技术有限公司  版权所有

客服电话:0574-28810668  投诉电话:18658249818

gongan.png浙公网安备33021202000488号   

icp.png浙ICP备2021020529号-1  |  浙B2-20240490  

关注我们 :微信公众号    抖音    微博    LOFTER 

客服