[PATCH] pci_alloc_consistent memory conservation
Brian King
brking at us.ibm.com
Sat Nov 1 10:17:03 EST 2003
Currently pci_alloc_consistent calls __get_free_pages to allocate
memory. This results in a lot of wasted memory if people call
pci_alloc_consistent a lot for odd sized allocations (which is what I
wanted to do). The attached patch changes pci_alloc_consistent to use
kmalloc and pci_map_single to accomplish the same function, with the
added benefit of kmalloc to reduce the amount of wasted memory.
Comments?
--
Brian King
eServer Storage I/O
IBM Linux Technology Center
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: alloc_consistent.patch
Url: http://ozlabs.org/pipermail/linuxppc64-dev/attachments/20031031/bf8297ca/attachment.txt
More information about the Linuxppc64-dev
mailing list