zoukankan      html  css  js  c++  java
  • Storage Systems

    1. Mount

    Mount - Combine the FSes into one namespace. All files accessible in a Unix system are arranged in one big tree, the file hierarchy, rooted at /. These files can be spread out over several devices. The mount command serves to attach the filesystem found on some device to the big file tree.
    The standard form of the mount command, is
    
    mount -t type device dir
    This tells the kernel to attach the filesystem found on device (which is of type type) at the directory dir. The previous contents (if any) and owner and mode of dir become invisible, and as long as this filesystem remains mounted, the pathname dir refers to the root of the filesystem on device.
    Unmount - Detaches a previously-attached file system.
    
    Divide capacity into multiple "partitions" can have multiple FSes on one disk.

    2. Response Time

    Response Time = Queue Time + Service Time
    Service Time = Positioning Time + Transfer Time
    Positioning Time = Seek + Rotational Time

    3. Concepts

    Prefetching 

    Shadow Paging

    Write-back caching

    Update Ordering

    Write-ahead logging

    Write amplification writes

    Wear leveling writes

    4. Integrity mechanisms

    In addition to logging writes to NVRAM, modern disk arrays use a variety of other integrity mechanisms.
    Explain why each of the three mechanisms below is used (1 sentence for each explanation); 
    
    ECC on memory and bus
    ECC on memory and bus is used to guard against random bits flipping due to transient failures, solar radiation, etc. 
    
    Scrubbing data blocks on the disk
    Scrubbing data blocks in a pro-active way of detecting errors early and (hopefully) correcting them before the data is used. 
    
    Checksum on each data block
    Checksumming each data block is used to guard against disk defects that may corrupt data silently.

    5. RAID

    JBOD
    Disk Stripping
    Disk Mirroring
    Mirroring & Stripping
    Parity Disk

    6. File Systems

        Sprite (Unix)

        All reads see most recent write.

        NFS(V3)

        Other clients' writes visible within 30 seconds.

        AFS(V2)

        All reads see opened version, which is latest close.

  • 相关阅读:
    深入理解系统调用
    基于mykernel 2.0编写一个操作系统内核
    交互式多媒体图书平台的设计与实现
    Ubuntu下VSCode调试环境搭建指南-C语言篇
    码农的自我修养之必备技能 学习笔记
    工程化编程实战callback接口学习笔记
    CentOS7.4网络配置
    R-CNN
    CUDA整理
    CUDA by Example 第四章 julia集
  • 原文地址:https://www.cnblogs.com/null00/p/3041696.html
Copyright © 2011-2022 走看看