criu icon indicating copy to clipboard operation
criu copied to clipboard

About to the speed of `criu dump` and `criu restore`

Open lijunqiang123 opened this issue 2 years ago • 5 comments

Hello, I am using the tool criu to dump and restore some tcp-based programs, such as ftp. I tested the speed of dump and restore. The result shows that the speed of dump is about 10-20ms, and the speed of restore is about 50-70ms. dump is faster than restore. I wonder if the speed of criu restore can be further accelerated? Looking forworad your reply. Thank you!

lijunqiang123 avatar Mar 07 '22 15:03 lijunqiang123

@lijunqiang123 The answer is yes, it can be accelerated. Another question is how to accelerate it. Someone has to make research and find what operations are most expansive and figure out how they can be optimized. I would start with collecting and analyzing an output of "perf trace -f".

avagin avatar Mar 08 '22 04:03 avagin

I wonder if the speed of criu restore can be further accelerated?

@lijunqiang123 In this pull request @Yangfisher1 proposed a new acceleration feature for criu restore that loads memory pages on-demand: https://github.com/checkpoint-restore/criu/pull/1711

rst0git avatar Mar 09 '22 01:03 rst0git

A friendly reminder that this issue had no activity for 30 days.

github-actions[bot] avatar Apr 09 '22 00:04 github-actions[bot]

Our sense is more complex than you: the checkpoint time has nearly 10s for one huge application. Our solution is customizing kernel.

However, it still has two general solution, one is #1815 for arm64, another is here: optimize tcp checkpoint/restore(3.16.1 isn't backport complemently yet, you can find the complete patch set here) #1816

Maybe helpful for you.

We also need to continue to optimize the performance, welcome to communicate with me.

time-river avatar Apr 20 '22 16:04 time-river

A friendly reminder that this issue had no activity for 30 days.

github-actions[bot] avatar May 21 '22 00:05 github-actions[bot]