- 1、本文档共28页,可阅读全部内容。
- 2、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
chapter12secondary-storagestructure
C-LOOK (Cont.) Selecting a Disk-Scheduling Algorithm Which one has better performance? SSTF vs. FCFS? SCAN/C-SCAN vs. SSTF? What does performance depend on? What if the disk queue/load is always 1? Does the disk scheduling algorithm matter? What also matters? File-allocation method. The disk-scheduling algorithm should be written 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. Disk Management Low-level formatting, or physical formatting — Dividing a disk into sectors that the disk controller can read and write. Done by factory 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 in ROM. Master boot record (MBR) on the first sector of disk Boot partition Booting from a Disk in Windows 2000 Bad Sectors Mechanical parts and prone to failures Bad sectors at factory How to detect bad sectors? Error correcting code (ECC) How to handle bad sectors on disks? Reserve some spared sectors … Sector sparing or forwarding Sector slipping Swap-Space Management What is swap space? Virtual memory uses disk space as an extension of main memory. Should swap space be placed in normal file system? Why or why not? Performance vs. space efficiency tradeoff? Cost of External Storage Devices Magnetic Disks NTD 3.5 per Gigabyte (1 T ~ NTD 3560) Access time: 10 ms Tapes: NTD 10 per Gigabyte (old) Can only write/read pages in sequence Flash memory: NTD 50 per Gigabyte (16 G ~ NTD 800) Access time? DRAM: NTD 300 per Gigabyte (2 G ~ NTD 600) Access time: 10s ns Other types of persistent storage devices: Optical storage (CD-R, CD-RW, DVD-R, DVD-RW) * Price per Megabyte of DRAM, From 1981 to 2004 Why DRAM manufacturers are in trouble? 2008 (USD10/GB
文档评论(0)