lkml.org 
[lkml]   [2023]   [May]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [RFC PATCH 1/5] mm: intorduce __GFP_UNMAPPED and unmapped_alloc()
    On Thu, May 18, 2023 at 12:03:03PM -0700, Song Liu wrote:
    > > Second, bitmap based solution cannot handle > 2MiB allocation cleanly,
    > > while tree based solution can. For example, if a big driver uses 3MiB, the
    > > tree based allocator can allocate 4MiB for it, and use the rest 1MiB for
    > > smaller allocations.

    2 MB is just a good default size for the initial unmapped allocations if
    the main consideration is avoiding mapping fragmentation. The approach
    can work with larger allocations if required.

    \
     
     \ /
      Last update: 2023-05-18 21:16    [W:2.291 / U:0.180 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site