Skip to main content

Module page

Module page 

Source
Expand description

File backed 16KB page manager with free list allocation. Page Manager: file-backed page storage with free list management.

Pages are 16KB fixed-size blocks used as the fundamental I/O unit. The page file layout:

  • Page 0: file header (magic, version, page count, free list head)
  • Page 1..N: data pages

Structs§

Page
A fixed-size, 4KB-aligned page.
PageHeader
Fixed-layout page header stored at the start of every page.
PageId
A page identifier.
PageManager
Manages a file-backed page store with free-list allocation.

Enums§

PageType
Page type classification.

Constants§

HEADER_SIZE
Size of the page header in bytes.
PAGE_DATA_SIZE
Usable data bytes per page (total page size minus header).
PAGE_SIZE
Page size: 64KB to accommodate large embedding vectors and long content.