lkml.org 
[lkml]   [2020]   [Nov]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH v9 6/9] secretmem: add memcg accounting
    On Tue, Nov 17, 2020 at 12:02:01PM -0800, Shakeel Butt wrote:
    > On Tue, Nov 17, 2020 at 11:49 AM Roman Gushchin <guro@fb.com> wrote:
    > >
    > > On Tue, Nov 17, 2020 at 06:29:29PM +0200, Mike Rapoport wrote:
    > > > From: Mike Rapoport <rppt@linux.ibm.com>
    > > >
    > > > Account memory consumed by secretmem to memcg. The accounting is updated
    > > > when the memory is actually allocated and freed.
    > > >
    > > > Signed-off-by: Mike Rapoport <rppt@linux.ibm.com>
    > [snip]
    > > >
    > > > +static int secretmem_account_pages(struct page *page, gfp_t gfp, int order)
    > > > +{
    > > > + int err;
    > > > +
    > > > + err = memcg_kmem_charge_page(page, gfp, order);
    >
    > I haven't looked at the whole series but it seems like these pages
    > will be mapped into the userspace, so this patch has dependency on
    > Roman's "mm: allow mapping
    > accounted kernel pages to userspace" patch series.

    Yes, that's why I rebased the patches on top of mmotm.

    --
    Sincerely yours,
    Mike.

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