• Pavel Emelyanov's avatar
    vma: Do not open similar VMAs multiple times · a0738c75
    Pavel Emelyanov authored
    On real apps it's typical to have sequences ov VMAs with
    absolutely the same file mapped. We've seen this dump-time
    and fixed multiple openings of map_files links with the
    file_borrowed flag.
    
    Restore situation is the same -- the vm_open() call in many
    cases re-open the same path with the same flags. This slows
    things down.
    
    To fix this -- chain VMAs with mapped files to each other
    and only the first one opens the file and only the last
    one closes it.
    
    ✓ travis-ci: success for mem: Do not re-open files for mappings when not required
    Signed-off-by: 's avatarPavel Emelyanov <xemul@virtuozzo.com>
    a0738c75
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...