[CRIU] [PATCH 1/2] pagemap-cache: Introduce engine

Cyrill Gorcunov gorcunov at openvz.org
Mon Feb 17 00:38:11 PST 2014


Pavel reported that in case if there a big number
of small vmas present in the dumpee we're reading
/proc/pid/pagemap too frequently.

To speedup this procedue we inroduce pagemap cache.

The interface is:
 - pmc_init/pmc_fini for cache initialization and freeing
 - pmc_get_map to retrieve specific PMEs array for VMA area

Reported-by: Pavel Emelyanov <xemul at parallels.com>
Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
 Makefile.crtools        |   1 +
 include/pagemap-cache.h |  38 +++++++++++++
 pagemap-cache.c         | 138 ++++++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 177 insertions(+)
 create mode 100644 include/pagemap-cache.h
 create mode 100644 pagemap-cache.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-pagemap-cache-Introduce-engine.patch
Type: text/x-patch
Size: 5219 bytes
Desc: not available
URL: <http://lists.openvz.org/pipermail/criu/attachments/20140217/017e58ab/attachment-0001.bin>


More information about the CRIU mailing list