[CRIU] [PATCH 2/3] zdtm: check lazy-pages

Mike Rapoport mike.rapoport at gmail.com
Sun Aug 21 01:12:08 PDT 2016


On Sat, Aug 20, 2016 at 3:58 AM, Andrew Vagin <avagin at virtuozzo.com> wrote:
> On Sun, Aug 07, 2016 at 05:22:52PM +0300, Mike Rapoport wrote:
>> From: Andrew Vagin <avagin at virtuozzo.com>
>>
>> Cc: Adrian Reber <areber at redhat.com>
>> Signed-off-by: Andrew Vagin <avagin at virtuozzo.com>
>> Signed-off-by: Mike Rapoport <rppt at linux.vnet.ibm.com>
>> ---
>>  test/zdtm.py | 20 +++++++++++++++++++-
>>  1 file changed, 19 insertions(+), 1 deletion(-)
>>
>> diff --git a/test/zdtm.py b/test/zdtm.py
>> index 1438b55..ff1611d 100755
>> --- a/test/zdtm.py
>> +++ b/test/zdtm.py
>> @@ -801,8 +806,18 @@ class criu_cli:
>>               if os.getenv("GCOV"):
>>                       r_opts.append("--ext-mount-map")
>>                       r_opts.append("zdtm:%s" % criu_dir)
>> +
>> +             lazy_pages_p = None
>> +             if self.__lazy_pages:
>> +                     self.lazy_pages_p = self.__criu_act("lazy-pages", opts = [])
>> +                     r_opts += ["--lazy-pages"]
>> +                     time.sleep(1)  # FIXME wait user fault fd socket
>
> We need to do smth to remove this sleep

I can add --daemon --pidfile to the lazy-pages and then use
wait_pid_die, but it will incur implicit 5 secs "sleep" in the
lazy-pages daemon for each test...


More information about the CRIU mailing list