Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mem: optimize debug logging of enqueued pages #2389

Merged
merged 1 commit into from
Apr 16, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions criu/mem.c
Original file line number Diff line number Diff line change
Expand Up @@ -1087,6 +1087,7 @@ static int restore_priv_vma_content(struct pstree_item *t, struct page_read *pr)
unsigned int nr_shared = 0;
unsigned int nr_dropped = 0;
unsigned int nr_compared = 0;
unsigned int nr_enqueued = 0;
unsigned int nr_lazy = 0;
unsigned long va;

Expand Down Expand Up @@ -1162,7 +1163,8 @@ static int restore_priv_vma_content(struct pstree_item *t, struct page_read *pr)
len >>= PAGE_SHIFT;
nr_restored += len;
i += len - 1;
pr_debug("Enqueue page-read\n");

nr_enqueued++;
continue;
}

Expand Down Expand Up @@ -1258,7 +1260,8 @@ static int restore_priv_vma_content(struct pstree_item *t, struct page_read *pr)

pr_info("nr_restored_pages: %d\n", nr_restored);
pr_info("nr_shared_pages: %d\n", nr_shared);
pr_info("nr_dropped_pages: %d\n", nr_dropped);
pr_info("nr_dropped_pages: %d\n", nr_dropped);
pr_info("nr_enqueued: %d\n", nr_enqueued);
pr_info("nr_lazy: %d\n", nr_lazy);

return 0;
Expand Down
Loading