On Thu, May 17, 2012 at 2:17 PM, Brian Long (brilong) <span dir="ltr"><<a href="mailto:brilong@cisco.com" target="_blank">brilong@cisco.com</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On May 17, 2012, at 3:08 PM, Michael Coffman wrote:<br>
> In general I am in the habit of turning off memory overcommit because I believe it's a bad thing in a multi-user environment.   This was never a problem on rhel5 systems, but on rhel6, I am having issues.    When I try to set overcommit_memory=2, my system locks up.   It basically behaves as if the memory is all used up...   I see the same behavior on centos6 or rhel6.<br>

</div>[snip]<br>
<div class="im">> One last point.   If I set the overcommit values in /etc/sysctl.conf and then reboot, the values get set correctly on boot and everything seems fine.   In addition I can then change the value of overcommit_memory to 0 and back to 2 with out any ill affects.<br>

<br>
</div>Just to clarify, if you set this in sysctl.conf and reboot, you're fine.  It's only if you try setting this on-the-fly that the system borks.<br>
<br></blockquote><div><br>Yes, that's correct.<br> <br></div><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
If this is true, it sounds like you don't have a problem for production systems.  You set up /etc/sysctl.conf in your kickstart and never worry about it, right?<br>
<br></blockquote><div><br>Sort of...<br> <br></div><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Are you just curious on why you cannot do this on-the-fly?<br>
<span class="HOEnZb"><font color="#888888"><br></font></span></blockquote><div><br>I ran into this because my post install runs cfengine to configure things and when it got to the shellcommand section and ran sysctl -p, everything stopped.     <br>
<br>As I said, once set it seems to be OK.  But I would hate to make changes to my global sysctl.conf later on,  then have cfengine <br>run an update and watch my machines lock up.<br><br> <br></div><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<span class="HOEnZb"><font color="#888888">
/Brian/</font></span></blockquote></div><br><br clear="all"><br>-- <br>-MichaelC<br>