• Andrey Vagin's avatar
    mem: use chunk mode for dumping anonymous memory · b5dff62e
    Andrey Vagin authored
    Before this patch, criu splices all data in pipes and then saves these
    data in a image file. Here is a problem, becase creating pipes with big
    buffers fails too often, because a kernel tries to allocate a big linear
    chunks of memory. Now memory are dumped for a few iterations, where the
    size of pipe buffers is restricted.
    
    TODO: need to rework pre-dump, because currently dumping data from
          pipes are postponed. We are going to use sys_process_vm_readv for
          this.
    Signed-off-by: 's avatarAndrey Vagin <avagin@openvz.org>
    Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
    b5dff62e
mem.c 9.58 KB