Block (computer Memory)
   HOME

TheInfoList



OR:

In computing (specifically data transmission and
data storage Data storage is the recording (storing) of information (data) in a storage medium. Handwriting, phonographic recording, magnetic tape, and optical discs are all examples of storage media. Biological molecules such as RNA and DNA are conside ...
), a block, sometimes called a physical record, is a sequence of bytes or bits, usually containing some whole number of
record A record, recording or records may refer to: An item or collection of data Computing * Record (computer science), a data structure ** Record, or row (database), a set of fields in a database related to one entity ** Boot sector or boot record, ...
s, having a maximum length; a ''block size''. Data thus structured are said to be ''blocked''. The process of putting data into blocks is called ''blocking'', while ''deblocking'' is the process of extracting data from blocks. Blocked data is normally stored in a data buffer, and read or written a whole block at a time. Blocking reduces the overhead and speeds up the handling of the data stream. For some devices, such as magnetic tape and CKD disk devices, blocking reduces the amount of external storage required for the data. Blocking is almost universally employed when storing data to 9-track
magnetic tape Magnetic tape is a medium for magnetic storage made of a thin, magnetizable coating on a long, narrow strip of plastic film. It was developed in Germany in 1928, based on the earlier magnetic wire recording from Denmark. Devices that use magne ...
, NAND
flash memory Flash memory is an electronic non-volatile computer memory storage medium that can be electrically erased and reprogrammed. The two main types of flash memory, NOR flash and NAND flash, are named for the NOR and NAND logic gates. Both us ...
, and rotating media such as
floppy disk A floppy disk or floppy diskette (casually referred to as a floppy, or a diskette) is an obsolescent type of disk storage composed of a thin and flexible disk of a magnetic storage medium in a square or nearly square plastic enclosure lined w ...
s,
hard disk A hard disk drive (HDD), hard disk, hard drive, or fixed disk is an electro-mechanical data storage device that stores and retrieves digital data using magnetic storage with one or more rigid rapidly rotating platters coated with magnet ...
s, and optical discs. Most
file system In computing, file system or filesystem (often abbreviated to fs) is a method and data structure that the operating system uses to control how data is stored and retrieved. Without a file system, data placed in a storage medium would be one larg ...
s are based on a block device, which is a level of abstraction for the hardware responsible for storing and retrieving specified blocks of data, though the block size in file systems may be a multiple of the physical block size. This leads to space inefficiency due to internal fragmentation, since file lengths are often not integer multiples of block size, and thus the last block of a file may remain partially empty. This will create slack space. Some newer file systems, such as Btrfs and
FreeBSD FreeBSD is a free and open-source Unix-like operating system descended from the Berkeley Software Distribution (BSD), which was based on Research Unix. The first version of FreeBSD was released in 1993. In 2005, FreeBSD was the most popular ...
UFS2, attempt to solve this through techniques called block suballocation and tail merging. Other file systems such as
ZFS ZFS (previously: Zettabyte File System) is a file system with volume management capabilities. It began as part of the Sun Microsystems Solaris operating system in 2001. Large parts of Solaris – including ZFS – were published under an open ...
support variable block sizes. Block storage is normally abstracted by a file system or
database management system In computing, a database is an organized collection of data stored and accessed electronically. Small databases can be stored on a file system, while large databases are hosted on computer clusters or cloud storage. The design of databases span ...
(DBMS) for use by applications and end users. The physical or logical volumes accessed via ''block I/O'' may be devices internal to a server, directly attached via
SCSI Small Computer System Interface (SCSI, ) is a set of standards for physically connecting and transferring data between computers and peripheral devices. The SCSI standards define commands, protocols, electrical, optical and logical interface ...
or
Fibre Channel Fibre Channel (FC) is a high-speed data transfer protocol providing in-order, lossless delivery of raw block data. Fibre Channel is primarily used to connect computer data storage to servers in storage area networks (SAN) in commercial data cen ...
, or distant devices accessed via a storage area network (SAN) using a protocol such as iSCSI, or AoE. DBMSes often use their own block I/O for improved performance and recoverability as compared to layering the DBMS on top of a file system.


References

{{reflist, refs= {{cite news , author= , title=Available hard drive space, block sizes, and size terminology , newspaper=CNET , date=2009-05-05 , url=http://www.cnet.com/news/available-hard-drive-space-block-sizes-and-size-terminology/ , access-date=2014-04-29 {{cite web , author-last=Chang , author-first=S. K. , title=Physical Structures , work=Captain SK , url=http://people.cs.pitt.edu/~chang/156/08struct.html , access-date=2014-04-29 {{cite news , author-first=Rachel , author-last=Balik , title=Bruning Questions: ZFS Record Size , newspaper=Joyent , date=2013-03-29 , url=https://www.joyent.com/blog/bruning-questions-zfs-record-size/ , access-date=2013-03-29 {{cite news , author-first=Roch , author-last=Bourbonnais , title=Tuning ZFS recordsize , date=2006-06-07 , newspaper=Oracle , url=https://blogs.oracle.com/roch/tuning-zfs-recordsize {{citation , title=Planning a Computer System – Project Stretch , author-first1=Gerrit Anne , author-last1=Blaauw , author-link1=Gerrit Anne Blaauw , author-first2=Frederick Phillips , author-last2=Brooks, Jr. , author-link2=Frederick Phillips Brooks, Jr. , author-first3=Werner , author-last3=Buchholz , author-link3=Werner Buchholz , editor-first=Werner , editor-last=Buchholz , editor-link=Werner Buchholz , publisher=
McGraw-Hill Book Company, Inc. McGraw Hill is an American educational publishing company and one of the "big three" educational publishers that publishes educational content, software, and services for pre-K through postgraduate education. The company also publishes referen ...
/ The Maple Press Company, York, PA. , lccn=61-10466 , date=1962 , chapter=4: Natural Data Units , pages=39–40 , chapter-url=http://archive.computerhistory.org/resources/text/IBM/Stretch/pdfs/Buchholz_102636426.pdf , access-date=2017-04-03 , url-status=live , archive-url=https://web.archive.org/web/20170403014651/http://archive.computerhistory.org/resources/text/IBM/Stretch/pdfs/Buchholz_102636426.pdf , archive-date=2017-04-03 , quote= €¦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 Character or Characters may refer to: Arts, entertainment, and media Literature * ''Character'' (novel), a 1936 Dutch novel by Ferdinand Bordewijk * ''Characters'' (Theophrastus), a classical Greek set of character sketches attributed to The ...
'' 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 Catena (Latin for chain) or catenae (plural) may refer to: Science * ''Catena'' (fly), a genus in the family Tachinidae *Catena (linguistics) is a unit of syntax and morphology, closely associated with dependency grammars * Catena (computing), nu ...
'' was coined for this purpose by the designers of the Bull {{ill, Bull Gamma 60{{!GAMMA 60, fr, Gamma 60 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. €¦}
Computer data storage Data transmission