<div dir="ltr">Tycho, there is another way to leave container paused after dump.<div><br></div><div>recently we've sent patch that allows to send sigstop to all the processes in the ps tree.</div><div>It adds --leave-stopped flag.</div><div>See it here. <a href="https://github.com/eabatalov/criu-dump-validator/commits/restore-leave-stopeed-criu-dev">https://github.com/eabatalov/criu-dump-validator/commits/restore-leave-stopeed-criu-dev</a></div><div>The patchset review is pending.<br></div><div>This is implemented mostly in one line. The second patch it for test.</div><div>Also this solution has drawback when used with shell jobs. See the first patch in the series.</div><div><br></div><div>The only problem is how to continue container? There is a script for this: <a href="https://github.com/xemul/criu-scripts/blob/master/pstree_cont.py">https://github.com/xemul/criu-scripts/blob/master/pstree_cont.py</a><br></div><div><br></div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">2016-05-16 18:05 GMT+03:00 Tycho Andersen <span dir="ltr"><<a href="mailto:tycho.andersen@canonical.com" target="_blank">tycho.andersen@canonical.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Pavel,<br>
<span class=""><br>
On Mon, May 16, 2016 at 03:31:57PM +0300, Pavel Emelyanov wrote:<br>
><br>
</span><span class="">> There was a patch 8b04551c (restore: restore freezer cgroup state) in 2.0<br>
> that turned cgroup into whatever state it was before dump. Can it be fixed<br>
> to make '--leave-frozen' alter the behavior of add_freezer_state_for_restore()<br>
> and set it to 'frozen' always?<br>
<br>
</span>It looks like hooking add_freezer_state_for_restore() would be for<br>
leaving the tasks as frozen on restore, but what I'm interested in is<br>
leaving them frozen on dump; my original patch in the thread is a<br>
slight hack for this, but it will work on dump whereas hooking<br>
add_freezer_state_for_restore won't.<br>
<span class="HOEnZb"><font color="#888888"><br>
Tycho<br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">Best regards,<br>Eugene Batalov.</div>
</div>