[CRIU] [PATCH] pcs7: shmem -- Inspect pages before the dump

Pavel Emelyanov xemul at virtuozzo.com
Mon Oct 17 03:30:31 PDT 2016


On 10/08/2016 02:42 AM, Andrei Vagin wrote:
> From: Cyrill Gorcunov <gorcunov at virtuozzo.com>
> 
> When pages are swapped out we can't detect their presence
> with mincore. Instead lest do a trick: walk over pagerange
> and touch pages so we can use @pagemap then and inspect
> the pages status.

I have some better (I think) idea :) What if we open the shmem file
and lseek it with SEEK_DATA? Even swapped out pages are reported as
data as far as I can read from kernel's shmem_seek_hole_data.

-- Pavel



More information about the CRIU mailing list