lkml.org 
[lkml]   [2018]   [Sep]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: WARNING: kmalloc bug in input_mt_init_slots
    On Sun, 23 Sep 2018, Dmitry Vyukov wrote:

    > What was the motivation behind that WARNING about large allocations in
    > kmalloc? Why do we want to know about them? Is the general policy that
    > kmalloc calls with potentially large size requests need to use NOWARN?
    > If this WARNING still considered useful? Or we should change it to
    > pr_err?

    In general large allocs should be satisfied by the page allocator. The
    slab allocators are used for allocating and managing small objects. The
    page allocator has mechanisms to deal with large objects (compound pages,
    multiple page sized allocs etc).

    \
     
     \ /
      Last update: 2018-09-24 17:08    [W:3.393 / U:0.100 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site