memory allocation issue loading a kernel module

Daniel O'Connor doconnor at gsoft.com.au
Tue Nov 25 16:10:07 PST 2003


On Tuesday 25 November 2003 18:43, Maxime Henrion wrote:
> If I remember correctly, Alan Cox intended to write a binary buddy
> allocator to handle the physical address space (or do coalescing another
> way, I'm not sure...) so that this particular problem is solved.

Another way to solve it is the bktr approach which has a KLD that just 
reserves some memory early on (ie you load it in the loader). This means that 
when you test your module the memory chunk stays around no matter how often 
you reload.

You could get more RAM too 8-)

-- 
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
"The nice thing about standards is that there
are so many of them to choose from."
  -- Andrew Tanenbaum
GPG Fingerprint - 9A8C 569F 685A D928 5140  AE4B 319B 41F4 5D17 FDD5



More information about the freebsd-current mailing list