• Cyrill Gorcunov's avatar
    epoll: Use epoll queues to speedup multiple duped fds · 4e8ca613
    Cyrill Gorcunov authored
    When we are dumping epoll and one of target fd is been
    duped we can reuse already collected fds rbtree to find
    proper target. We handle it in a lazy way:
    
     - try use plain regular bsearch first, in case of all
       targets are not duped we checkpoint epoll immediately
    
     - if bsearch failed we put this epoll entry into a queue
       and run its dumping later when all other files in the
       process are already dumped. At this moment fds tree
       should already has all target files in rbtree thus
       we can simply lookup for it
    Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@gmail.com>
    Signed-off-by: 's avatarAndrei Vagin <avagin@virtuozzo.com>
    4e8ca613
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...