bSchnepp / Feral

A 64-bit operating system kernel for PCs
Boost Software License 1.0
9 stars 1 forks source link

Replace PMM scheme #15

Open bSchnepp opened 5 years ago

bSchnepp commented 5 years ago

PMM should be built to use a best fit scheme, such that it's not always just looking for a group of 4KiB chunks to use.

Ideally, we should split up each available physical memory region into 512K sectors, of which we can allocate as small as 4KiB, or the entire 512K section if needed. We can thus be partitioning in terms of 512K blocks (usually owned by the same process), and try to be more compact in allocation. (ie, have some 8KiB blocks and some 16KiB blocks where needed, instead of flat 4KiB chunks.)

Something similar to Linux's Buddy system or something.