pci_alloc_consistent for small allocations?
Quoted 6 lines
In looking at the ieee1394 OHCI driver, I noticed that it
appears to make 104 calls topci_alloc_consistentfor data structures that are 16 or 64 bytes. Currently, on x86,pci_alloc_consistentallocates 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