<div dir="ltr">Hi Andrei, <div><br></div><div>Thanks for your reply. The use case I'm considering is to use CRIU for fault<br>tolerance. Suppose CRIU checkpoint the state of the process of interest and<br>send the state to a backup machine. The state CRIU checkpoint must include the<br>page cache, otherwise, during fail over, the restored state is not consistent<br>with the disk state. <br><br>I agree with you that the probably best way to handle page cache is to perform<br>sync before checkpoint. I just want to confirm that CRIU does not handle page<br>cache and thanks for your help! <br></div><div></div><div><br></div><div>Best,</div><div>Diyu</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Jun 13, 2019 at 11:07 AM Andrei Vagin <<a href="mailto:avagin@gmail.com">avagin@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi Diyu,<br>
<br>
CRIU handles runtime states of processes and it does nothing with<br>
persistent file systems. If you dump and restore processes on the same<br>
host without moving files, the Linux kernel will write all dirty pages<br>
to disks. If you migrate processes to another host, you need to sync<br>
all dirty pages to disks before migrating a persistent storage to the<br>
remote host. In many cases, it will not requires any additional<br>
actions from your end, it will be done implicitly.<br>
<br>
Maybe you can describe your use cases with more details. Right now, I<br>
don't understand why criu should care about this.<br>
<br>
Thanks,<br>
Andrei<br>
<br>
On Wed, Jun 12, 2019 at 4:30 PM Diyu Zhou <<a href="mailto:zhoudiyupku@gmail.com" target="_blank">zhoudiyupku@gmail.com</a>> wrote:<br>
><br>
> Hey CRIU,<br>
><br>
> Does CRIU handle dirty pages in page cache during checkpointing? It seems to me<br>
> the code is not there in the main stream commit. Are there code for this in<br>
> other branches by any chance?<br>
><br>
> Thanks in advance for your help!<br>
><br>
> Thanks,<br>
> Diyu<br>
> _______________________________________________<br>
> CRIU mailing list<br>
> <a href="mailto:CRIU@openvz.org" target="_blank">CRIU@openvz.org</a><br>
> <a href="https://lists.openvz.org/mailman/listinfo/criu" rel="noreferrer" target="_blank">https://lists.openvz.org/mailman/listinfo/criu</a><br>
</blockquote></div>