Virtual memory is mapped to physical memory in a computerized system. Two
or more contiguous pages in virtual memory to be mapped to physical
memory are identified, and the size in pages of the two or more
contiguous pages is determined. An alignment in pages is determined for
the two or more contiguous pages of virtual memory, and a free bit data
structure is searched to locate a free section of contiguous physical
memory having the desired size and alignment. The two or more pages of
virtual memory are then mapped via a single mapping to located free
section of contiguous physical memory.