lkml.org 
[lkml]   [2017]   [Jul]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH 4/5] mm/memcontrol: allow to uncharge page without using page->lru field
    On Mon 10-07-17 12:25:42, Jerome Glisse wrote:
    [...]
    > Bottom line is that we can always free and uncharge device memory
    > page just like any regular page.

    OK, this answers my earlier question. Then it should be feasible to
    charge this memory. There are still some things to handle. E.g. how do
    we consider this memory during oom victim selection (this is not
    accounted as an anonymous memory in get_mm_counter, right?), maybe others.
    But the primary point is that nobody pins the memory outside of the
    mapping.
    --
    Michal Hocko
    SUSE Labs

    \
     
     \ /
      Last update: 2017-07-10 18:37    [W:2.864 / U:0.344 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site