lkml.org 
[lkml]   [2015]   [Nov]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH v2 4/6] slab: add SLAB_ACCOUNT flag
    Hello,

    On Tue, Nov 10, 2015 at 09:54:01PM +0300, Vladimir Davydov wrote:
    > > Am I correct in thinking that we should eventually be able to removed
    > > __GFP_ACCOUNT and that only caches explicitly marked with SLAB_ACCOUNT
    > > would need to be handled by kmemcg?
    >
    > Don't think so, because sometimes we want to account kmalloc.

    I'm kinda skeptical about that because if those allocations are
    occassional by nature, we don't care and if there can be a huge number
    of them, splitting them into a separate cache makes sense. I think it
    makes sense to pin down exactly which caches are memcg managed. That
    has the potential to simplify the involved code path and shave off a
    small bit of hot path overhead.

    Thanks.

    --
    tejun


    \
     
     \ /
      Last update: 2015-11-11 17:01    [W:7.126 / U:0.012 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site