contiguous memory allocation problem



Hi,

I sometimes see that the USB driver is unable to allocate contiguous memory
for itself. For example I noticed that FreeBSD was unable to allocate
350kbytes of contiguous memory after that I had run "konqueror", the KDE web
browser and various other memory consuming applications for a while.

I am thinking about pre-allocating some memory for USB, but isn't that the job
of bus-dma, which the USB system uses for memory allocation?

The machine in question is running FreeBSD 7-current from April.

Any comments?

Thanks,
--HPS
_______________________________________________
freebsd-hackers@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: running out of mbuf clusters
    ... I'm running a shaper system on a FreeBSD box. ... 30 requests for memory denied ... mbufs the system is willing to allocate. ...
    (freebsd-questions)
  • Re: contiguous memory allocation problem
    ... maybe an extra memory copy in most cases. ... The idea is to allocate multiple disjoint pages of physical memory. ... Because most USB device drivers depend on a contigous buffer. ... I am talking about the USB device attach. ...
    (freebsd-hackers)
  • New USB stack and Zero copy.
    ... I want to get rid of the copying between DMA'able memory and non-DMA'able ... Currently I allocate N memory-pages for each USB transfer like separate pages. ... allocate a bounce buffer, hence I already have a bounce buffer. ...
    (freebsd-hackers)
  • Talent Flash Drive 2.0 with FreeBSD 5.2.1
    ... I try to use a "Talent Flash Drive 2.0" (a USB memory stick) with ... The device works well with Windows 2000 and Mac OS X ... FreeBSD mailing lists and the PR database, ...
    (freebsd-questions)
  • Re: contiguous memory allocation problem
    ... an extra memory copy in most cases. ... The idea is to allocate multiple disjoint pages of physical memory. ... The USB hardware is capable of supporting this and page translation ... Are you talking about USB device attach - which could happen at any ...
    (freebsd-hackers)