[CRIU] [PATCH] restore: Don't open same files to mmap mutiple times (v2)
Pavel Emelyanov
xemul at virtuozzo.com
Fri Apr 21 05:13:54 PDT 2017
On 04/14/2017 03:54 PM, Pavel Emelyanov wrote:
> This is symmetrical to dump -- it's typical when one file
> is mapped several times in a row. On dump we don't open
> the mapping's map_files links for each of such files, thus
> it makes sence to do the same on restore.
>
> This speeds restore a little bit due to lower amount of
> openat() and close() calls.
>
> v2: Sometimes cached/merged descriptors were closed when they
> were not supposed to.
It looks like ghost and link remaps mmap-ed are still not handled
properly. Don't apply this one for a while.
More information about the CRIU
mailing list