• Mike Rapoport's avatar
    lazy-pages: kill POLL_TIMEOUT · 13f955cd
    Mike Rapoport authored
    In the current model we haven't started the background page transfer until
    POLL_TIMEOUT time has elapsed since the last uffd or socket event. If the
    restored process will do memory access one in (POLL_TIMEOUT - eplsilon) the
    filling of its memory can take ages.
    
    This patch changes them model in the following way:
    * poll for the events indefinitely until the restore is complete
    * the restore completion event causes reset of the poll timeout to zero and
    * starts the background transfers
    * after each transfer we return to check if there are any uffd events to
    handle
    Signed-off-by: 's avatarMike Rapoport <rppt@linux.vnet.ibm.com>
    Signed-off-by: 's avatarAndrei Vagin <avagin@virtuozzo.com>
    13f955cd
Name
Last commit
Last update
Documentation Loading commit data...
compel Loading commit data...
contrib Loading commit data...
coredump Loading commit data...
crit Loading commit data...
criu Loading commit data...
images Loading commit data...
include/common Loading commit data...
lib Loading commit data...
scripts Loading commit data...
soccr Loading commit data...
test Loading commit data...
.gitignore Loading commit data...
.mailmap Loading commit data...
.travis.yml Loading commit data...
COPYING Loading commit data...
CREDITS Loading commit data...
INSTALL.md Loading commit data...
Makefile Loading commit data...
Makefile.compel Loading commit data...
Makefile.config Loading commit data...
Makefile.install Loading commit data...
Makefile.versions Loading commit data...
README.md Loading commit data...