Hi,

Is there a way to fix
  vm_page_alloc_contig()
so it can allocate contiguous memory once userland has got up
and running and memory has been fragmented/filled.


I've finished porting the bt848 driver to the newbus framework.
You can load/unload the driver with kldload and kldunload.
Great for testing. Load test, unload, recompile, repeat...

However, the driver needs about 2 meg of contiguous memory allocating.
It must be contiguous as hardware writes directly into it.
(same applies to the meteor driver and probably some of the sound card
drivers)

I can start X, and load the 'bktr' driver.
But once I run a few apps, and memory fills up, I can no longer allocate
the
contiguous memory required.

Clearly the kernel would need to swap out user process memory pages to
make
room for the contigous memory vm_page_alloc_contig() requires.


Can this be done?


Bye
Roger
--
Roger Hardiman
Strathclyde Uni Telepresence Research Group, Glasgow, Scotland.
http://telepresence.dmem.strath.ac.uk      0141 548 2897
ro...@cs.strath.ac.uk


To Unsubscribe: send mail to majord...@freebsd.org
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to