Re: [PATCH v4 3/8] mem-pool: only search head block for available space

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

 



On Wed, Jun 20, 2018 at 1:17 PM Jameson Miller <jamill@xxxxxxxxxxxxx> wrote:
>
> Instead of searching all memory blocks for available space to fulfill
> a memory request, only search the head block. If the head block does
> not have space, assume that previous block would most likely not be
> able to fulfill request either. This could potentially lead to more
> memory fragmentation, but also avoids searching memory blocks that
> probably will not be able to fulfill request.

Do we have any numbers on performance or memory pressure here?
(I would think benchmarking fast-import would suffice as that is where
the mem pool originated)

> This pattern will benefit consumers that are able to generate a good
> estimate for how much memory will be needed, or if they are performing
> fixed sized allocations, so that once a block is exhausted it will
> never be able to fulfill a future request.

Would this be a good candidate to contain parts of
https://public-inbox.org/git/DM5PR21MB07803E8D2627676788659E63CE770@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/
?



[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux