I was wondering if we could pass an additional flag to malloc
M_NOPHYS that would mean the kernel is free to move the physical
location of the memory.

It would signify things that the memory:
  1) won't be used for backing DMA.
  2) won't be entered into another kernel memory map.

This will allow us to have contigmalloc force-shuffle memory around
by copying it and doing vm tricks to remap it allowing us to grab
contig memory.

We could help facilitate having large regions of M_NOPHYS memory
by dividing the memory pool in half, M_NOPHYS allocations from one
end and !M_NOPHYS from the other end when possible.

-- 
-Alfred Perlstein - [[EMAIL PROTECTED]|[EMAIL PROTECTED]]
"I have the heart of a child; I keep it in a jar on my desk."


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to