Contiguous memory allocation for drivers
Contiguous memory allocation for drivers
Posted Jul 22, 2010 9:16 UTC (Thu) by mjthayer (guest, #39183)Parent article: Contiguous memory allocation for drivers
Since most memory allocations don't care about where they are in physical memory, wouldn't it be possible to have contiguous memory reclaiming code which would move bits of don't-have-to-be-contiguous memory about until it could defragment enough for a contiguous allocation? Of course, that would be expensive, but I could see it having its place as an emergency or guarantee measure alongside attempts to ensure that there is enough contiguous memory for "normal" use. It might also be more effective if it were done gradually in the background when it looked like contiguous memory might become tight in the forseeable future, not to mention if the rest of the memory subsystem were adjusted to take it into account.