Re: memory allocation issue loading a kernel module

From: Daniel O'Connor <doconnor_at_gsoft.com.au>
Date: Wed, 26 Nov 2003 10:39:48 +1030
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
Received on Tue Nov 25 2003 - 15:10:07 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:31 UTC