[CRIU] bug in shmem restore?

Andrew Vagin avagin at virtuozzo.com
Thu Jun 23 18:23:15 PDT 2016


On Thu, Jun 23, 2016 at 11:31:04AM +0300, Mike Rapoport wrote:
> Hi,
> 
> I've been looking into reducing use of page-read  internals outside
> the page-read.c and found something that seems really weird.
> 
> If auto_dedup is enabled, the restore_shmem_content punches a hole in
> the  pagemap image, but it never tries to read anything from the
> parent image. Moreover, open_page_read_at does not even bother to open
> parent image in case it opens shared memory image.
> 
> If I understand correctly, if the hole is really punched, calling
> restore next time on the same set of images will fail.

if you use --auto-dedup, you are going to run restore only once

  --auto-dedup          when used on dump it will deduplicate "old" data in
                        pages images of previous dump
                        when used on restore, as soon as page is restored, it
                        will be punched from the image.

> 
> Am I missing something?
> 
> -- 
> Sincerely yours,
> Mike.
> _______________________________________________
> CRIU mailing list
> CRIU at openvz.org
> https://lists.openvz.org/mailman/listinfo/criu


More information about the CRIU mailing list