欢迎来到麦多课文档分享! | 帮助中心 海量文档,免费浏览,给你所需,享你所想!
麦多课文档分享
全部分类
  • 标准规范>
  • 教学课件>
  • 考试资料>
  • 办公文档>
  • 学术论文>
  • 行业资料>
  • 易语言源码>
  • ImageVerifierCode 换一换
    首页 麦多课文档分享 > 资源分类 > PPT文档下载
    分享到微信 分享到微博 分享到QQ空间

    Chapter 12- Secondary-Storage Structure.ppt

    • 资源ID:379554       资源大小:492.50KB        全文页数:27页
    • 资源格式: PPT        下载积分:2000积分
    快捷下载 游客一键下载
    账号登录下载
    微信登录下载
    二维码
    微信扫一扫登录
    下载资源需要2000积分(如需开发票,请勿充值!)
    邮箱/手机:
    温馨提示:
    如需开发票,请勿充值!快捷下载时,用户名和密码都是您填写的邮箱或者手机号,方便查询和重复下载(系统自动生成)。
    如需开发票,请勿充值!如填写123,账号就是123,密码也是123。
    支付方式: 支付宝扫码支付    微信扫码支付   
    验证码:   换一换

    加入VIP,交流精品资源
     
    账号:
    密码:
    验证码:   换一换
      忘记密码?
        
    友情提示
    2、PDF文件下载后,可能会被浏览器默认打开,此种情况可以点击浏览器菜单,保存网页到桌面,就可以正常下载了。
    3、本站不支持迅雷下载,请使用电脑自带的IE浏览器,或者360浏览器、谷歌浏览器下载即可。
    4、本站资源下载后的文档和图纸-无水印,预览文档经过压缩,下载后原文更清晰。
    5、试题试卷类文档,如果标题没有明确说明有答案则都视为没有答案,请知晓。

    Chapter 12- Secondary-Storage Structure.ppt

    1、Chapter 12: Secondary-Storage Structure,12.1 Overview of Mass Storage Structure 12.2 Disk Structure 12.3 Disk Attachment 12.4 Disk Scheduling 12.5 Disk Management 12.6 Swap-Space Management 12.7 RAID Structure Disk Attachment 12.8 Stable-Storage Implementation 12.9 Tertiary Storage DevicesOperating

    2、System IssuesPerformance Issues,Objectives,Describe the physical structure of secondary and tertiary storage devices and the resulting effects on the uses of the devices Explain the performance characteristics of mass-storage devices Discuss operating-system services provided for mass storage, inclu

    3、ding RAID and HSM (hierarchical storage management),12.1 Overview of Mass Storage Structure,Magnetic disks provide bulk of secondary storage of modern computers Drives rotate at 60 to 200 times per second (3600 to 12000 rpm) Transfer rate is rate at which data flow between drive and computer (400Mb-

    4、6Gb/sec) Positioning time (random-access time) is time to move disk arm to desired cylinder (seek time, 4 micro seconds) and time for desired sector to rotate under the disk head (rotational latency, 3 micro seconds) Example: Hitachi Ultrastar C10K300 (http:/.tw/news/hardware/0,2000085676,20137089,0

    5、0.htm) Head crash results from disk head making contact with the disk surface Normally cannot be repaired,Overview,Disks can be removable Held in plastic case Drive attached to computer via I/O bus Buses vary, including EIDE, ATA, SATA, USB, FC (Fiber Channel), SCSI Host controller in computer uses

    6、bus to talk to disk controller built into drive or storage array using memory-mapped I/O ports Disk controllers usually have built-in cache (MB),Moving-head Disk Machanism,Magnetic tape Was early secondary-storage medium Relatively permanent and holds large quantities of data Access time slow Random

    7、 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, 19

    8、mm, inch, inch, LTO-2 and SDLT,12.2 Disk Structure,Disk drives are addressed as large 1-dimensional arrays of logical blocks, where the logical block is the smallest unit of transfer. A logical block is usually of size 512 bytesThe 1-dimensional array of logical blocks is mapped into the sectors of

    9、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 cylinders from outermost to innermost.,In practice, it is difficult to conver

    10、t a logical block number into cylinder, track, sector : defective sectors and the number of sectors per track is not a constant CD-ROM and DVD-ROM increase their rotation speed as the head moves from the outer to inner tracks to keep the same data rate (the density of bits per track is constant, con

    11、stant linear velocity, CLV) In some disks, the rotation speed is constant, and the density of bits decreases from inner tracks to outer tracks to keep the data rate constant (constant angular velocity, CAV),12.3 Disk Attachment,Host-attached storage accessed through I/O ports talking to I/O busses I

    12、DE, ATA, SATA, SCSI, FC SCSI itself is a bus, up to 16 devices on one cable, SCSI initiator requests operation and SCSI targets perform tasks Each target can have up to 8 logical units (disks attached to device controller FC is high-speed serial architecture Can be switched fabric with 24-bit addres

    13、s space the basis of storage area networks (SANs) in which many hosts attach to many storage units Can be arbitrated loop (FC-AL) of 126 devices,Network-Attached Storage (NAS),NAS is storage made available over a network rather than over a local connection (such as a bus) NFS (Unix) and CIFS (Window

    14、s) are common protocols Implemented via remote procedure calls (RPCs) between host and storage New ISCSI protocol uses IP network to carry the SCSI protocol so that hosts could treat NAS as directly attached,Storage Area Network (SAN),Common in large storage environments becoming more common Multipl

    15、e hosts attached to multiple storage arrays flexible FC is the most common SAN interconnect InfiniBand is an emerging alternative SAN bus architecture,12.4 Disk Scheduling,The operating system is responsible for using hardware efficiently for the disk drives, this means having a fast access time and

    16、 disk bandwidth Access time has two major components Seek time 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. Minimize seek time Seek time seek

    17、 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,Disk I/O System Call,The system call for disk I/O specifies This operation is input or output The disk address for the transfer M

    18、emory address for the transfer The number of sectors to be transferredFor a multiprogramming system, normally, the disk request queue has several pending requests,Disk Scheduling,Several algorithms exist to schedule the servicing of disk I/O requests. We illustrate them with a disk request queue of

    19、requests for blocks on cylinders (0-199): 98, 183, 37, 122, 14, 124, 65, 67The sequence indicates their order in time Suppose the disk head pointer is initially at cylinder 53,First Come First Served (FCFS),Illustration shows total head movement of 640 cylinders.,Shortest Seek Time First (SSTF),Sele

    20、cts the request with the minimum seek time from the current head position SSTF scheduling is a form of SJF (shortest job first) scheduling; may cause starvation of some requests. Illustration shows total head movement of 236 cylinders.,SCAN,The disk arm starts at one end of the disk, and moves towar

    21、d the other end, servicing requests until it gets to the 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.,Circular SCAN (C-SCAN),Provides a more uniform wait time than

    22、 SCAN. The head moves from 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 t

    23、he last cylinder to the first one.,C-SCAN,Look and C-LOOK,Version of SCAN and 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.,LOOK or C-LOOK?,Selecting a Disk-Scheduling Algorithm,SSTF is

    24、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 written as a sep

    25、arate 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.,Selecting a Disk-Scheduling Algorithm,Difficult to schedule for improved rotational latency Disk manufacturers have implemen

    26、ted disk scheduling algorithms in the controller hardware In practice, OS has other constraints Demand paging may take priority over application I/O Writes are more urgent than reads if cache is running out of free pages Sometimes the order of writes must be kept to make the file system robust in ca

    27、se of system crashes,12.5 Disk Management,Low-level formatting, or physical formatting Dividing a disk into sectors that the disk controller can read and write. Header and trailer of sector contain information used by the disk controller, such as a sector number and an error-correcting code (ECC) Mo

    28、st hard disks are low-level formatted at the 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 Each partition is treated as a separate disk Logical formatting or “creation of a f

    29、ile system” Maps of free and allocated space and an empty directory,To increase efficiency, most file system group blocks together into clusters Disk I/O is via blocks, but file I/O is via clusters Some OSs allow raw-disk Example: DBMS Boot block initializes system The bootstrap is stored in ROM. On

    30、ly Bootstrap loader program is stored A disk with a boot partition is called a boot disk or system disk,Booting from a Disk in Windows 2000,Master Boot Record (MBR),Bad Blocks,Bad blocks are handled manually on simple disks, such as disks with IDE controllers Example: chkdsk in MS-DOS Sophisticated

    31、disk controller, like SCSI, maintains a list of bad blocks sector sparing: the controller could replace each bad sector logically with a spare sector May invalidate optimization of disk-scheduling Solution: provide spare sectors in each cylinder and a spare cylinder as well sector slipping: remaps all sectors from the defective one to the next available sector by moving them all down one spot,


    注意事项

    本文(Chapter 12- Secondary-Storage Structure.ppt)为本站会员(livefirmly316)主动上传,麦多课文档分享仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知麦多课文档分享(点击联系客服),我们立即给予删除!




    关于我们 - 网站声明 - 网站地图 - 资源地图 - 友情链接 - 网站客服 - 联系我们

    copyright@ 2008-2019 麦多课文库(www.mydoc123.com)网站版权所有
    备案/许可证编号:苏ICP备17064731号-1 

    收起
    展开