您好,欢迎访问三七文档
当前位置:首页 > 临时分类 > 操作系统第七版第十二章
Chapter12:Mass-StorageSystems12.2Silberschatz,GalvinandGagne©2005OperatingSystemConcepts–7thEdition,Jan1,2005Chapter12:Mass-StorageSystemsOverviewofMassStorageStructureDiskStructureDiskAttachmentDiskSchedulingDiskManagementSwap-SpaceManagementRAIDStructureDiskAttachmentStable-StorageImplementationTertiaryStorageDevicesOperatingSystemIssuesPerformanceIssues12.3Silberschatz,GalvinandGagne©2005OperatingSystemConcepts–7thEdition,Jan1,2005ObjectivesDescribethephysicalstructureofsecondaryandtertiarystoragedevicesandtheresultingeffectsontheusesofthedevicesExplaintheperformancecharacteristicsofmass-storagedevicesDiscussoperating-systemservicesprovidedformassstorage,includingRAIDandHSM12.4Silberschatz,GalvinandGagne©2005OperatingSystemConcepts–7thEdition,Jan1,200512.1OverviewofMassStorageStructureMagneticdisksprovidebulkofsecondarystorageofmoderncomputersDrivesrotateat60to10,000timespersecondTransferrateisrateatwhichdataflowbetweendriveandcomputerPositioningtime(random-accesstime)istimetomovediskarmtodesiredcylinder(seektime)andtimefordesiredsectortorotateunderthediskhead(rotationallatency)HeadcrashresultsfromdiskheadmakingcontactwiththedisksurfaceThat’sbadDiskscanberemovableDriveattachedtocomputerviaI/ObusBussesvary,includingEIDE,ATA,SATA,USB,FibreChannel,SCSIHostcontrollerincomputerusesbustotalktodiskcontrollerbuiltintodriveorstoragearray12.5Silberschatz,GalvinandGagne©2005OperatingSystemConcepts–7thEdition,Jan1,2005Moving-headDiskMachanism12.6Silberschatz,GalvinandGagne©2005OperatingSystemConcepts–7thEdition,Jan1,2005OverviewofMassStorageStructure(Cont.)Magnetictape(Chapter12.1.2)Wasearlysecondary-storagemediumRelativelypermanentandholdslargequantitiesofdataAccesstimeslowRandomaccess~1000timesslowerthandiskMainlyusedforbackup,storageofinfrequently-useddata,transfermediumbetweensystemsKeptinspoolandwoundorrewoundpastread-writeheadOncedataunderhead,transferratescomparabletodisk20-200GBtypicalstorageCommontechnologiesare4mm,8mm,19mm,LTO-2andSDLT12.7Silberschatz,GalvinandGagne©2005OperatingSystemConcepts–7thEdition,Jan1,200512.2DiskStructureDiskdrivesareaddressedaslarge1-dimensionalarraysoflogicalblocks,wherethelogicalblockisthesmallestunitoftransfer.The1-dimensionalarrayoflogicalblocksismappedintothesectorsofthedisksequentially.Sector0isthefirstsectorofthefirsttrackontheoutermostcylinder.Mappingproceedsinorderthroughthattrack,thentherestofthetracksinthatcylinder,andthenthroughtherestofthecylindersfromoutermosttoinnermost.12.8Silberschatz,GalvinandGagne©2005OperatingSystemConcepts–7thEdition,Jan1,200512.3DiskAttachment12.3.1Host-AttachedStorageHost-attachedstorageaccessedthroughI/OportstalkingtoI/ObussesSCSIitselfisabus,upto16(15)devicesononecable,SCSIinitiatorrequestsoperationandSCSItargetsperformtasksEachtargetcanhaveupto8logicalunits(disksattachedtodevicecontroller)FCishigh-speedserialarchitectureFiberChannelArbitratedLoop-光纤通道仲裁环路可支持多达126个设备,SCSI只能在每个总线上支持15个设备。每个主适配器板带有二个FC-AL插口,很容易建立万亿字节的大容量存储;光纤通道有一个较高的性能基线,即其每个环路的最大传输速率为100Mbytes/sec,它结合通道技术和网络技术从物理层到应用层的一系列协议提供更高的带宽,更长的连接距离和更灵活的连接方式;Canbeswitchedfabricwith24-bitaddressspace–thebasisofstorageareanetworks(SANs)inwhichmanyhostsattachtomanystorageunitsCanbearbitratedloop(FC-AL)of126devices12.9Silberschatz,GalvinandGagne©2005OperatingSystemConcepts–7thEdition,Jan1,200512.3.2Network-AttachedStorageNetwork-attachedstorage(NAS)isstoragemadeavailableoveranetworkratherthanoveralocalconnection(suchasabus)NFSandCIFSarecommonprotocolsImplementedviaremoteprocedurecalls(RPCs)betweenhostandstorageNewiSCSIprotocolusesIPnetworktocarrytheSCSIprotocol12.10Silberschatz,GalvinandGagne©2005OperatingSystemConcepts–7thEdition,Jan1,200512.3.3StorageAreaNetworkCommoninlargestorageenvironments(andbecomingmorecommon)Multiplehostsattachedtomultiplestoragearrays-flexible12.11Silberschatz,GalvinandGagne©2005OperatingSystemConcepts–7thEdition,Jan1,200512.4DiskSchedulingTheoperatingsystemisresponsibleforusinghardwareefficiently—forthediskdrives,thismeanshavingafastaccesstimeanddiskbandwidth.AccesstimehastwomajorcomponentsSeektimeisthetimeforthediskaretomovetheheadstothecylindercontainingthedesiredsector.Rotationallatencyistheadditionaltimewaitingforthedisktorotatethedesiredsectortothediskhead.MinimizeseektimeSeektimeseekdistanceDiskbandwidthisthetotalnumberofbytestransferred,dividedbythetotaltimebetweenthefirstrequestforserviceandthecompletionofthelasttransfer.12.12Silberschatz,GalvinandGagne©2005OperatingSystemConcepts–7thEdition,Jan1,2005DiskScheduling(Cont.)SeveralalgorithmsexisttoscheduletheservicingofdiskI/Orequests.Weillustratethemwitharequestqueue(0-199).98,183,37,122,14,124,65,67Headpointer5312.13Silberschatz,GalvinandGagne©2005OperatingSystemConcepts–7thEdition,Jan1,200512.4.1FCFSSchedulingFCFS磁盘调度算法根据进程请求访问磁盘的的先后次序进行调度。Illustrationshowstotalheadmovementof640cylinders.12.14Silberschatz,GalvinandGagne©2005OperatingSystemConcepts–7thEdition,Jan1,2005FCFSScheduling(Cont.)Simple,intrinsicallyfair,butgenerallydoesnotprovidet
本文标题:操作系统第七版第十二章
链接地址:https://www.777doc.com/doc-2381405 .html