On Mon, Oct 24, 2011 at 8:38 PM, Matthew Jacob <m...@feral.com> wrote:
>
> On 10/24/2011 5:21 PM, Chuck Tuffli wrote:
>>
>> Is there an easy way to determine the amount of bus_dma memory
>> allocated by a driver? Something similar to vmstat -m
>>
>
> bus_dma memory allocations are platform specific. Looking at least amd64 you 
> can see that the memory is carved out M_DEVBUF.

OK, so do a diff of

vmstat -m | grep devbuf

before and after driver load would get me the right number? Does this
double count any memory reported by the MALLOC_DEFINE()?

---chuck
_______________________________________________
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"

Reply via email to