블록(데이터 스토리지)

Block (data storage)

컴퓨팅(특히 데이터 전송데이터 스토리지)에서 [1]블록은 물리 레코드라고도 불리며, 보통 최대 길이인 일정한 수의 레코드를 포함하는 바이트 또는 비트의 시퀀스입니다.[2]이렇게 구조화된 데이터는 차단되었다고 합니다.데이터를 블록에 넣는 프로세스를 블록이라고 하며, 디블로킹은 블록에서 데이터를 추출하는 프로세스입니다.블록된 데이터는 보통 데이터 버퍼에 저장되며 한 번에 블록 전체를 읽거나 씁니다.블로킹은 오버헤드를 줄이고 데이터 [3]스트림의 처리를 고속화합니다.자기 테이프나 CKD 디스크 디바이스 등 일부 디바이스에서는 블록에 의해 데이터에 필요한 외부 스토리지의 양이 줄어듭니다.블록은 9트랙 자기테이프, 낸드플래시 메모리, 플로피디스크, 하드디스크, 광디스크 등 회전매체에 데이터를 저장할 때 거의 보편적으로 사용된다.

대부분의 파일 시스템은 지정된 데이터 블록의 저장 및 검색을 담당하는 하드웨어의 추상화 수준인 블록 장치를 기반으로 하지만 파일 시스템의 블록 크기는 물리적 블록 크기의 배수일 수 있습니다.파일 길이가 블록 크기의 정수 배수가 아닌 경우가 많아 파일의 마지막 블록이 부분적으로 비어 있을 수 있기 때문에 내부 플래그멘테이션으로 인해 공간 효율이 떨어집니다.이렇게 하면 여유 공간이 생깁니다.BtrfsFreeB와 같은 일부 최신 파일 시스템SD UFS2는 블록 서브할당테일 머지라고 불리는 기술을 통해 이 문제를 해결하려고 합니다.ZFS와 같은 다른 파일 시스템은 가변 블록 [4][5]크기를 지원합니다.

블록 스토리지는 일반적으로 파일 시스템 또는 데이터베이스 관리 시스템(DBMS)에 의해 추상화되어 애플리케이션과 최종 사용자가 사용할 수 있습니다.블록 I/O를 통해 액세스하는 물리 볼륨 또는 논리 볼륨은 서버 내부 디바이스, SCSI 또는 파이버 채널을 통해 직접 연결된 디바이스 또는 iSCSI 또는 AoE 등의 프로토콜을 사용하여 SAN(Storage Area Network)을 통해 액세스하는 원격 디바이스일 수 있습니다.DBMS는 종종 파일 시스템 위에 DBMS를 계층화하는 것에 비해 성능과 복구 능력을 향상시키기 위해 자체 블록 I/O를 사용합니다.

레퍼런스

  1. ^ Blaauw, Gerrit Anne; Brooks, Jr., Frederick Phillips; Buchholz, Werner (1962), "4: Natural Data Units" (PDF), in Buchholz, Werner (ed.), Planning a Computer System – Project Stretch, McGraw-Hill Book Company, Inc. / The Maple Press Company, York, PA., pp. 39–40, LCCN 61-10466, archived (PDF) from the original on 2017-04-03, retrieved 2017-04-03, […] Terms used here to describe the structure imposed by the machine design, in addition to bit, are listed below.
    Byte denotes a group of bits used to encode a character, or the number of bits transmitted in parallel to and from input-output units. A term other than character is used here because a given character may be represented in different applications by more than one code, and different codes may use different numbers of bits (i.e., different byte sizes). In input-output transmission the grouping of bits may be completely arbitrary and have no relation to actual characters. (The term is coined from bite, but respelled to avoid accidental mutation to bit.)
    A word consists of the number of data bits transmitted in parallel from or to memory in one memory cycle. Word size is thus defined as a structural property of the memory. (The term catena was coined for this purpose by the designers of the Bull GAMMA 60 [fr] computer.)
    Block refers to the number of words transmitted to or from an input-output unit in response to a single input-output instruction. Block size is a structural property of an input-output unit; it may have been fixed by the design or left to be varied by the program. […]
  2. ^ "Available hard drive space, block sizes, and size terminology". CNET. 2009-05-05. Retrieved 2014-04-29.
  3. ^ Chang, S. K. "Physical Structures". Captain SK. Retrieved 2014-04-29.
  4. ^ Balik, Rachel (2013-03-29). "Bruning Questions: ZFS Record Size". Joyent. Retrieved 2013-03-29.
  5. ^ Bourbonnais, Roch (2006-06-07). "Tuning ZFS recordsize". Oracle.