[CRIU] [PATCH CRIU 0/7] dirty pages logger on pre-dump

Pavel Tikhomirov ptikhomirov at virtuozzo.com
Thu Apr 7 06:28:39 PDT 2016


This logs dirty pages changes while sending memory to other end
on pre-dump, thus users can estimate patterns of memory saturation
for dumped process tree in total. That for instance can help in
taking the decision of do or not to do next iteration for iterative
migration. If we see that on next iteration average dirty memory
size will exceed what we have now we might need to stop iterations.

We might need it in https://jira.sw.ru/browse/PSBM-41029

Pavel Tikhomirov (7):
  opts/rpc/lib: add log-dirty option to criu
  pre-dump: add dirty memory statistics logger thread
  log_dirty: add dirty-log.img to save dirty memory pages stats
  log-dirty: add microsecond sleep
  make timediff reusable
  log_dirty: add log_dirty_total - get total amount of dirty memory
    pages
  log_dirty: count dirty pages for one pid in pagemap

 criu/Makefile.crtools       |   1 +
 criu/cr-dump.c              |  36 ++++++-
 criu/cr-service.c           |   3 +
 criu/crtools.c              |   4 +
 criu/dirty-logger.c         | 225 ++++++++++++++++++++++++++++++++++++++++++++
 criu/include/cr_options.h   |   1 +
 criu/include/dirty-logger.h |   6 ++
 criu/include/log.h          |   3 +
 criu/log.c                  |   2 +-
 images/rpc.proto            |   1 +
 lib/c/criu.c                |  11 +++
 lib/c/criu.h                |   2 +
 12 files changed, 293 insertions(+), 2 deletions(-)
 create mode 100644 criu/dirty-logger.c
 create mode 100644 criu/include/dirty-logger.h

-- 
1.9.3



More information about the CRIU mailing list