lkml.org 
[lkml]   [2012]   [May]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    Date
    SubjectRe: [PATCH 2/6] mempolicy: Kill all mempolicy sharing
    On Wed, May 30, 2012 at 3:41 PM, Christoph Lameter <cl@linux.com> wrote:
    > On Wed, 30 May 2012, kosaki.motohiro@gmail.com wrote:
    >
    >> refcount will be decreased even though was not increased whenever alloc_page_vma()
    >> is called. As you know, mere mbind(MPOL_MF_MOVE) calls alloc_page_vma().
    >
    > Most of these issues are about memory migration and shared memory. If we
    > exempt shared memory from memory migration (after all that shared memory
    > has its own distinct memory policies already!) then a lot of these issues
    > wont arise.

    The final point is, to make proper cow for struct mempolicy. but until
    fixing cpuset
    bindings issue, we can't use mempolicy sharing anyway.

    Moreover, now most core piece of mempolicy life cycle, say split_vma()
    and dup_mmap(), don't use mempolicy sharing. Only mbind() does.

    Thus, this patch don't increase normal workload memory usage.


    \
     
     \ /
      Last update: 2012-05-30 22:01    [W:2.682 / U:0.388 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site