오뚝이개발자

[DB] CH10. 스토리지와 파일 구조(Storage & File structure) 본문

CS 기초/DB

[DB] CH10. 스토리지와 파일 구조(Storage & File structure)

땅어 2020. 11. 3. 17:27
728x90
300x250

 

휘발성에 따른 physical storage의 분류

  • volatile storage : power를 off하면 contents(data)를 잃는 것
  • non-volatile storage : power를 off해도 contents(data)가 남아있는 것(ex. secondary storage)

Storage Hierarchy

storage 계층구조

Magnetic disk

  • sector
    • track은 여러개의 sector로 구성된다.
    • sector는 read/write가 이루어지는 최소 데이터의 단위
  • Hard disk에서 Main memory로 데이터를 가져오는 시간
    • Access time + Data transfer rate
    • access time = seek time(해당 데이터가 있는 track을 찾는 시간) + rotational latency(해당 데이터가 있는 sector를 찾는 시간)

magnetic disk mechanism

Block이란?

  • disk와 main memory 사이의 데이터 전송 단위(물리적으로는 연속적인 sector로 이루어진 sequence)
  • Block size
    • too small->transfer가 자주 발생
    • too large->partially filled block으로 인한 waste

 

728x90
300x250
Comments