Driver memory allocation

2010-12-15 Thread Dr. Baud

Is there a cap on the amount of memory a driver (via bus_dmamem_alloc) can 
allocate, other than the obvious physical memory limit minus the memory already 
allocated? 


Dr.



  
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to freebsd-hackers-unsubscr...@freebsd.org


Re: Driver memory allocation

2010-12-15 Thread Julian Elischer

On 12/15/10 4:33 AM, Dr. Baud wrote:

 Is there a cap on the amount of memory a driver (via bus_dmamem_alloc) can
allocate, other than the obvious physical memory limit minus the memory already
allocated?


well it has to fit into the kernel virtual space too.
this is quite limited on x86 though  for amd64 it is a lot bigger.

I have seen drivers on amd64 setting asside a couple of GB (but you need
a new kernel that has the kernel virtual space expanded). The kernel can
make use of the direct-map space for driver allocation too.


 Dr.




___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to freebsd-hackers-unsubscr...@freebsd.org



___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to freebsd-hackers-unsubscr...@freebsd.org