lkml.org 
[lkml]   [2010]   [Jan]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    SubjectRe: [PATCH v6] add MAP_UNLOCKED mmap flag
    From
    Date
    On Tue, 2010-01-19 at 09:52 +0200, Gleb Natapov wrote:

    > In my case (virtualization) I want to test/profile guest under heavy swapping
    > of a guests memory, so I intentionally create memory shortage by creating

    You mean "guest memory" that is area emulated DRAM in qemu?
    It is anonymous vma.

    > guest much large then host memory, but I want system to swap out only
    > guest's memory.

    Couldn't you use MADV_SEQUENTIAL on only guest memory area?
    It doesn't make side effect about readahead since it's anon area.
    And it would make do best effort to swap out guest's memory.


    --
    Kind regards,
    Minchan Kim



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