IT lexicon › Infra & Ops › Block bitmap

Block bitmap

Infra & Ops På svenska → Updated: 2026-11-17

A compact bit vector tracking which data blocks are free and which are allocated.

Filesystems manage hundreds of thousands or millions of data blocks. A block bitmap uses one bit per block—0 for free, 1 for allocated—allowing the kernel to quickly locate free space when files grow. ext4 stores block bitmaps in block group descriptors; scanning a bitmap is far faster than traversing a linked list.

Without bitmaps, finding free space would require scanning every block on disk—O(n) in the number of blocks. Bitmaps reduce this to O(n) relative to the block group size, and modern CPUs can scan entire bitmaps with popcount instructions in microseconds.

← Back to the lexicon