Re: pci_alloc_consistent for small allocations?

From: Russell King (rmk@arm.linux.org.uk)
Date: Sun Sep 02 2001 - 10:15:50 EST


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 (rmk@arm.linux.org.uk)                The developer of ARM Linux
             http://www.arm.linux.org.uk/personal/aboutme.html

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Fri Sep 07 2001 - 21:00:14 EST