Re: lib/scatterlist.c : sgl_alloc_order promises more than it delivers

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 10/11/20 2:21 PM, Douglas Gilbert wrote:
> My testing suggests using a store built with sgl_alloc_order() *** is a
> little faster but with a lower standard deviation (i.e. spread) on timings
> from repeated tests.

sgl_alloc_order() supports allocating SG-lists with higher order pages.
Allocating such S/G-lists is a workaround for the segment count limitations
of some DMA engines. Are you perhaps using sgl_alloc_order() for allocating
long-living data buffers? sgl_alloc_order() was not intended to be used for
that purpose. Anyway, if your use case can be implemented without introducing
any drawbacks for other users, feel free to submit a patch.

Thanks,

Bart.





[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux