[CRIU] [PATCH v3 10/12] shmem: add deduped anon shmem dumping to predump command

Eugene Batalov eabatalov89 at gmail.com
Thu Aug 11 06:56:00 PDT 2016


When we track changes since last dump we don't dump not changed pages so we
don't create duplicates of pages on each criu dump. This is not equal to
full data deduplication but it is similar. Also "dedup" term is used
already (ex. --auto-dedup option) in criu --help.

2016-08-10 16:23 GMT+03:00 Pavel Emelyanov <xemul at virtuozzo.com>:

> Again, why dedup?! It's about changes tracking, isn't it?
>
> On 08/07/2016 04:11 PM, Eugene Batalov wrote:
> > As anon shmem dump supports dedup now
> > we can work with it during predump.
> >
> > Signed-off-by: Eugene Batalov <eabatalov89 at gmail.com>
> > ---
> >  criu/cr-dump.c | 4 ++++
> >  1 file changed, 4 insertions(+)
> >
> > diff --git a/criu/cr-dump.c b/criu/cr-dump.c
> > index 743100d..f65002b 100644
> > --- a/criu/cr-dump.c
> > +++ b/criu/cr-dump.c
> > @@ -1563,6 +1563,10 @@ int cr_pre_dump_tasks(pid_t pid)
> >               if (pre_dump_one_task(item))
> >                       goto err;
> >
> > +     ret = cr_dump_shmem();
> > +     if (ret)
> > +             goto err;
> > +
> >       if (irmap_predump_prep())
> >               goto err;
> >
> >
>
>


-- 
Best regards,
Eugene Batalov.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openvz.org/pipermail/criu/attachments/20160811/016ef7a7/attachment-0001.html>


More information about the CRIU mailing list