[CRIU] [PATCH 0/3] page-pipe: split dumping memory on chunks (v2)

Andrey Vagin avagin at openvz.org
Mon Feb 3 03:19:34 PST 2014


The problem is that vmsplice() to a big pipe fails very often.

The kernel allocates the linear chunk of memory for pipe buffer
descriptos, but big allocation in kernel can fail.

So we need to restrict maximal capacity of pipes. But the number of
pipes is restricted too, so we need to split dumping memory on chunks.

In this patch we calculates the pipe size for which vmsplice() will not
fail.

v2: s/batch/chunk and a few other small fixes
Signed-off-by: Andrey Vagin <avagin at openvz.org>


More information about the CRIU mailing list