版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡(jiǎn)介
Chapter12MassStorageStructureOperatingSystemConceptsChapter12:Mass-StorageSystemsDiskStructureDiskAttachmentDiskSchedulingDiskManagementSwap-SpaceManagementRAIDStructureStable-StorageImplementationTertiaryStorageDevicesOperatingSystemIssuesPerformanceIssuesOperatingSystemConceptsOperatingSystemConceptsDiskHardware(Cont.)DiskparametersfortheoriginalIBMPCfloppydiskandaWesternDigitalWD18300harddiskOperatingSystemConceptsDiskStructureDiskdrivesareaddressedaslarge1-dimensionalarraysoflogicalblocks,wherethelogicalblockisthesmallestunitoftransfer.
The1-dimensionalarrayoflogicalblocksismappedintothesectorsofthedisksequentially.Sector0isthefirstsectorofthefirsttrackontheoutermostcylinder.Mappingproceedsinorderthroughthattrack,thentherestofthetracksinthatcylinder,andthenthroughtherestofthecylindersfromoutermosttoinnermost.OperatingSystemConceptsDiskAttachmentDisksmaybeattachedoneoftwoways:HostattachedviaanI/OportNetworkattachedviaanetworkconnectionOperatingSystemConceptsNetwork-AttachedStorageOperatingSystemConceptsStorage-AreaNetworkOperatingSystemConceptsOperatingSystemConceptsDiskSchedulingTheoperatingsystemisresponsibleforusinghardwareefficiently—forthediskdrives,thismeanshavingafast
accesstimeanddiskbandwidth.AccesstimehastwomajorcomponentsSeektimeisthetimeforthediskaretomovetheheadstothecylindercontainingthedesiredsector.Rotationallatencyistheadditionaltimewaitingforthedisktorotatethedesiredsectortothediskhead.OperatingSystemConceptsDiskScheduling(Cont.)MinimizeseektimeSeektimeseekdistanceDiskbandwidthisthetotalnumberofbytestransferred,dividedbythetotaltimebetweenthefirstrequestforserviceandthecompletionofthelasttransfer.OperatingSystemConceptsDiskScheduling(Cont.)SeveralalgorithmsexisttoscheduletheservicingofdiskI/Orequests.Weillustratethemwitharequestqueue(0-199).
98,183,37,122,14,124,65,67 Headpointer53OperatingSystemConceptsFCFSIllustrationshowstotalheadmovementof640cylinders.OperatingSystemConceptsSSTF(ShortestSeekTimeFirst)Selectstherequestwiththeminimumseektimefromthecurrentheadposition.SSTFschedulingisaformofSJFscheduling;maycausestarvationofsomerequests.Illustrationshowstotalheadmovementof236cylinders.OperatingSystemConceptsSSTF(Cont.)OperatingSystemConceptsSCANThediskarmstartsatoneendofthedisk,andmovestowardtheotherend,servicingrequestsuntilitgetstotheotherendofthedisk,wheretheheadmovementisreversedandservicingcontinues.Sometimescalledtheelevatoralgorithm.Illustrationshowstotalheadmovementof208cylinders.OperatingSystemConceptsSCAN(Cont.)OperatingSystemConceptsC-SCANProvidesamoreuniformwaittimethanSCAN.Theheadmovesfromoneendofthedisktotheother.servicingrequestsasitgoes.Whenitreachestheotherend,however,itimmediatelyreturnstothebeginningofthedisk,withoutservicinganyrequestsonthereturntrip.Treatsthecylindersasacircularlistthatwrapsaroundfromthelastcylindertothefirstone.OperatingSystemConceptsC-SCAN(Cont.)OperatingSystemConceptsC-LOOKVersionofC-SCANArmonlygoesasfarasthelastrequestineachdirection,thenreversesdirectionimmediately,withoutfirstgoingallthewaytotheendofthedisk.OperatingSystemConceptsC-LOOK(Cont.)OperatingSystemConceptsSelectingaDisk-SchedulingAlgorithmSSTFiscommonandhasanaturalappealSCANandC-SCANperformbetterforsystemsthatplaceaheavyloadonthedisk.Performancedependsonthenumberandtypesofrequests.Requestsfordiskservicecanbeinfluencedbythefile-allocationmethod.ContiguousallocationandlinkedallocationOperatingSystemConceptsSelectingaDisk-SchedulingAlgorithm(Cont.)Thedisk-schedulingalgorithmshouldbewrittenasaseparatemoduleoftheoperatingsystem,allowingittobereplacedwithadifferentalgorithmifnecessary.EitherSSTForLOOKisareasonablechoiceforthedefaultalgorithm.OperatingSystemConceptsDiskFormattingLow-levelformatting,orphysicalformatting—Dividingadiskintosectorsthatthediskcontrollercanreadandwrite.Touseadisktoholdfiles,theoperatingsystemstillneedstorecorditsowndatastructuresonthedisk.Partitionthediskintooneormoregroupsofcylinders.Logicalformattingor“makingafilesystem”.OperatingSystemConceptsDiskFormatting(1)AdisksectorOperatingSystemConceptsErrorHandlingAdisktrackwithabadsectorSubstitutingaspareforthebadsectorShiftingallthesectorstobypassthebadoneBootingfromaDiskinWindows2000OperatingSystemConceptsRAIDStructureRAID–multiplediskdrivesprovidesreliabilityviaredundancy.RAIDisarrangedintosixdifferentlevels.OperatingSystemConceptsRAID(cont)Severalimprovementsindisk-usetechniquesinvolvetheuseofmultipledisksworkingcooperatively.Diskstripingusesagroupofdisksasonestorageunit.RAIDschemesimproveperformanceandimprovethereliabilityofthestoragesystembystoringredundantdata.Mirroringorshadowingkeepsduplicateofeachdisk.Blockinterleavedparityusesmuch
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫(kù)網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 2025年主管護(hù)師考試真題試題及答案
- 護(hù)士十四項(xiàng)制度試題及答案2025版
- 2025年全國(guó)工業(yè)機(jī)器人競(jìng)賽題庫(kù)及答案
- 2025年司機(jī)年度工作總結(jié)例文
- 新員工入職三級(jí)安全教育題庫(kù)試卷含答案
- 2026校招:重慶股權(quán)服務(wù)集團(tuán)試題及答案
- 2026 年離婚協(xié)議書正規(guī)模板標(biāo)準(zhǔn)化
- 統(tǒng)編版(2024)七年級(jí)下冊(cè)語文教學(xué)工作計(jì)劃
- 調(diào)料公司生產(chǎn)部年終總結(jié)(3篇)
- 領(lǐng)導(dǎo)學(xué)(專升本)地質(zhì)大學(xué)期末開卷考試題庫(kù)及答案
- 光纖激光打標(biāo)機(jī)說明書
- 勞動(dòng)者個(gè)人職業(yè)健康監(jiān)護(hù)檔案
- 《兩角和與差的正弦、余弦、正切公式》示范公開課教學(xué)PPT課件【高中數(shù)學(xué)人教版】
- 治理現(xiàn)代化下的高校合同管理
- 境外宗教滲透與云南邊疆民族地區(qū)意識(shí)形態(tài)安全研究
- GB/T 28920-2012教學(xué)實(shí)驗(yàn)用危險(xiǎn)固體、液體的使用與保管
- GB/T 26389-2011衡器產(chǎn)品型號(hào)編制方法
- GB/T 16588-2009帶傳動(dòng)工業(yè)用多楔帶與帶輪PH、PJ、PK、PL和PM型:尺寸
- 人大企業(yè)經(jīng)濟(jì)學(xué)考研真題-802經(jīng)濟(jì)學(xué)綜合歷年真題重點(diǎn)
- 建筑抗震鑒定標(biāo)準(zhǔn)課件
- 人教版二年級(jí)數(shù)學(xué)下冊(cè)《【全冊(cè)】完整版》優(yōu)質(zhì)課件
評(píng)論
0/150
提交評(píng)論