<div dir="ltr">Thanks Pavel!<div><br></div><div>Looks like rlimit restore fails: </div><div>if (r-&gt;rlim_cur &gt; r-&gt;rlim_max) fails because r-&gt;rlim_max is 0</div><div><br></div><div>What could be wrong?</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jul 23, 2015 at 4:59 AM, Pavel Emelyanov <span dir="ltr">&lt;<a href="mailto:xemul@parallels.com" target="_blank">xemul@parallels.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 07/23/2015 03:21 AM, CRIU criu wrote:<br>
&gt; Hi,<br>
&gt;<br>
&gt; I&#39;m facing an issue with open()ing a file after a successful restore. It<br>
&gt; fails with &quot;Too many open files&quot; error. I&#39;ve tested with a LD_PRELOAD wrapper<br>
&gt; library overriding open()/close() lib calls to verify that the process doesn&#39;t<br>
&gt; open too many files and that there is no FD leakage.<br>
<br>
</span>Do you play with android binder device? Quick kernel grep shows that<br>
it reports EMFILE from some of its operation(s).<br>
<span class=""><br>
&gt; As long as the app runs before cr-dump, open() works fine, but fails once<br>
&gt; restored. Is anybody else facing this problem? What file should I start<br>
&gt; looking in order to fix this? Thanks!<br>
<br>
</span>Do you restore on the same node, or on another? The issue may be either<br>
in rlimits restore or in different sysctl fs.nr_open value.<br>
<span class="HOEnZb"><font color="#888888"><br>
-- Pavel<br>
</font></span></blockquote></div><br></div>