<div dir="ltr"><div><div>It makes sense for me that the kernel might be killing the wrong process when ld makes the system run out of memory. Searching the Web about the OOM-killer, I found this (from <a href="http://linux-mm.org/OOM_Killer">http://linux-mm.org/OOM_Killer</a>):<br>

<br><i>Any particular process leader may be immunized against the oom killer if
 the value of its /proc/<pid>/oom_adj is set to the constant 
OOM_DISABLE (currently defined as -17). </i><br><br></div><div>I'll try linking clang again and checking if OOM-killing is disabled for ld. If so, I believe this is likely to be the reason for the problem.<br></div></div>

</div><div class="gmail_extra"><br><br><div class="gmail_quote">On 22 January 2013 16:24, Karen Shaeffer <span dir="ltr"><<a href="mailto:shaeffer@neuralscape.com" target="_blank">shaeffer@neuralscape.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On Tue, Jan 22, 2013 at 02:39:20PM +0000, Renato Golin Linaro wrote:<br>
> Gold in my case is still not helping, since I leave many programs open at<br>
> once and swap gets crazy in the last linking steps of the debug binaries...<br>
><br>
> Funny, though, that it starts swapping before it actually hits the maximum<br>
> memory, and I think that's why Linux is not killing the process just yet,<br>
> but it is flogging the usability of the desktop.<br>
><br>
> --renato<br>
<br>
</div>Hi,<br>
The kernel reserves a chunk of memory for itself as working space to dig out<br>
of an out-of-memory situation. So it will swap before running out of memory,<br>
especially if there is a large spike in memory usage at that point where<br>
out-of-memory is approached.<br>
<br>
This out-of-memory killer has a long history of perplexing folks, because it<br>
isn't easy to do the right thing in all cases. The kernel might be killing the<br>
wrong processes? Something to verify one way or the other.<br>
<br>
enjoy,<br>
Karen<br>
<span class="HOEnZb"><font color="#888888">--<br>
Karen Shaeffer<br>
Neuralscape, Mountain View, CA 94040<br>
</font></span><div class="HOEnZb"><div class="h5">_______________________________________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@cs.uiuc.edu">cfe-dev@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Andre Cunha<br>
</div>