Messages in this thread |  | | Date | Mon, 3 Sep 2001 20:20:00 -0400 | From | Pete Zaitcev <> | Subject | Re: pci_alloc_consistent for small allocations? |
| |
> 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.
Sounds you are looking at a very obsolete codebase -or- something backed out pci_pool_alloc()/pci_pool_free() from the recent kernel...
If you can reproduce this on 2.4.8, send me a note with detailed description of whatever you were doing to get your number 104, I'll fix or disspel it.
-- Pete - 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/
|  |