Re: pci_alloc_consistent for small allocations?
Russell King (email@example.com)
Sun, 2 Sep 2001 16:15:50 +0100
On Sun, Sep 02, 2001 at 08:08:00AM -0700, Adam J. Richter wrote:
> In looking at the ieee1394 OHCI driver, I noticed that it
> appears to make 104 calls to pci_alloc_consistent for data structures
> that are 16 or 64 bytes. Currently, on x86, pci_alloc_consistent
> allocates at least one full page per call, so it looks like the
> ohci1394 driver allocates 416kB per controller as a result of these
> data structures.
You might want to look through the PCI stuff in drivers/pci - there's a
generic method for handling this on USB already.
Russell King (firstname.lastname@example.org) The developer of ARM Linux
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to email@example.com
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/