criu/pie
Pavel Emelyanov cf01381cbd mem: Drain memory from parasite before dumping it into file
Currently we dump pages directly from parasite into image files. This
is bad for several reasons:

1. We cannot use any more-or-less custom format for pages easily, since
   parasite code cannot be linked with any libraries;
2. We will not be able to optimize migration with preliminary memory
   migration (a.k.a. iterative migration) with it -- if we send pages
   from parasite over network we are not able to let the task we dump
   continue running.

That said, what is done is -- pages from target task are put into a
page-pipe in one go, then (not in this patch) parasite can be released
and we can do with pages whatever we want. For now pages are just
spliced from pipe into image file.

Some numbers:
In order to drain 1Gb of memory from task we need 1.5M of shared map
in args (for iovecs) and 4 pipes (8 descriptors) each referencing 128Mb
of pages, which int turn requires 4 x 640K chunks of sequential kernel
memory (for pipe_buffer). Not that big I guess.

Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
2013-03-01 20:13:11 +04:00
..
gen-offsets.sh parasite: Make parasite arguments variable size 2013-03-01 20:11:28 +04:00
log-simple.c print_hex_l: don't print more than 8 hex digits on a 32-bit machine 2013-01-18 11:41:40 +04:00
Makefile pie: Pass CR_NOGLIBC in pie/Makefile 2013-02-27 15:43:34 +04:00
parasite.c mem: Drain memory from parasite before dumping it into file 2013-03-01 20:13:11 +04:00
pie.lds.S.in parasite: Make parasite arguments variable size 2013-03-01 20:11:28 +04:00
restorer.c pie: Pass CR_NOGLIBC in pie/Makefile 2013-02-27 15:43:34 +04:00
util-net.c make: pie -- Switch to a new scheme 2013-02-18 18:10:45 +04:00