<p class="MsoPlainText"><span lang="EN-US">Hello James,<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US"> </span></p>
<p class="MsoPlainText"><span lang="EN-US">Yes, the failed VM's 'cat
/proc/sys/vm/overcommit_memory' is exactly 2, but the correct VM's is also 2.
And I dump the memory and disk below:<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US"> </span></p>
<p class="MsoPlainText"><b><span lang="EN-US" style="color:red">Failed one</span></b><span lang="EN-US">:<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US" style="font-family:"Courier New"">fangqing@[xhdengvm155043
kcc_case]$ cat /proc/sys/vm/overcommit_memory<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US" style="font-family:"Courier New";
color:red">2<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US" style="font-family:"Courier New""> </span></p>
<p class="MsoPlainText"><span lang="EN-US" style="font-family:"Courier New"">fangqing@[xhdengvm155043
kcc_case]$ top<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US" style="font-family:"Courier New"">top -
10:23:42 up 8 days, 11:12, 5 users, load average: 0.07, 0.02, 0.00<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US" style="font-family:"Courier New"">Tasks:
120 total, 1 running, 119 sleeping, 0
stopped, 0 zombie<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US" style="font-family:"Courier New"">Cpu(s):
1.2%us, 0.0%sy, 0.0%ni, 98.8%id, 0.0%wa, 0.0%hi,
0.0%si, 0.0%st<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US" style="font-family:"Courier New"">Mem:
<span style="color:red">5993176k</span> total, 1598600k used,
4394576k free, 245492k buffers<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US" style="font-family:"Courier New"">Swap:
4128760k total, 0k used,
4128760k free, 864412k cached<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US" style="font-family:"Courier New""> </span></p>
<p class="MsoPlainText"><span lang="EN-US" style="font-family:"Courier New"">fangqing@[xhdengvm155043
kcc_case]$ df -h .<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US" style="font-family:"Courier New"">Filesystem
Size Used Avail Use% Mounted on<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US" style="font-family:"Courier New"">svmitfiler2-lif1:/Home/Home_xbj/fangqing<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US" style="font-family:"Courier New"">
6.2T 4.7T 1.5T 76% /home/Fangqing<o:p></o:p></span></p>
<p class="MsoPlainText"><b><span lang="EN-US" style="color:red"> </span></b></p>
<p class="MsoPlainText"><b><span lang="EN-US" style="color:red">Correct one</span></b><span lang="EN-US" style="font-family:"Courier New"">:<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US" style="font-family:"Courier New"">fangqing@[xhdvdieodvm102
local]$ cat /proc/sys/vm/overcommit_memory<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US" style="font-family:"Courier New"">2<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US" style="font-family:"Courier New""> </span></p>
<p class="MsoPlainText"><span lang="EN-US" style="font-family:"Courier New"">fangqing@[xhdvdieodvm102
local]$ top<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US" style="font-family:"Courier New"">top -
10:16:52 up 36 days, 21:47, 50 users, load average: 2.51, 2.68, 2.70<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US" style="font-family:"Courier New"">Tasks:
357 total, 4 running, 351 sleeping, 1
stopped, 1 zombie<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US" style="font-family:"Courier New"">Cpu(s):
99.7%us, 0.3%sy, 0.0%ni, 0.0%id, 0.0%wa,
0.0%hi, 0.0%si, 0.0%st<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US" style="font-family:"Courier New"">Mem:
<span style="color:red">16436116k</span> total, 16347972k
used, 88144k free, 38592k buffers<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US" style="font-family:"Courier New"">Swap:
32767992k total, 2364888k used, 30403104k free, 14688384k cached<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US" style="font-family:"Courier New""> </span></p>
<p class="MsoPlainText"><span lang="EN-US" style="font-family:"Courier New"">fangqing@[xhdvdieodvm102
kcc_case]$ df -h .<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US" style="font-family:"Courier New"">Filesystem
Size Used Avail Use% Mounted on<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US" style="font-family:"Courier New"">svmitfiler2-lif1:/Home/Home_xbj/fangqing<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US" style="font-family:"Courier New"">
6.2T 4.7T 1.5T 76% /home/Fangqing<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US" style="font-family:"Courier New""> </span></p>
<p class="MsoPlainText"><span lang="EN-US">So why?<o:p></o:p></span></p>
<p class="MsoPlainText"><span lang="EN-US">Thanks a lot!<o:p></o:p></span></p><br>> -----原始邮件-----<br>> 发件人: "James Knight" <jyknight@google.com><br>> 发送时间: 2016-09-22 11:23:07 (星期四)<br>> 收件人: ZhaoKang <zhaokang@mail.tsinghua.edu.cn>, "ZhaoKang via cfe-dev" <cfe-dev@lists.llvm.org><br>> 抄送: "Kostya Serebryany" <kcc@google.com><br>> 主题: Re: [cfe-dev] Question about Clang/LLVM addresssanitizer<br>> <br>> <br>> > On Sep 20, 2016, at 9:47 PM, ZhaoKang via cfe-dev <cfe-dev@lists.llvm.org> wrote:<br>> > <br>> > You mentioned that 'Some global settings in the system may for some reason reject such huge mappings.'<br>> > And I want to know which kinds of settings may have this effect?<br>> <br>> cat /proc/sys/vm/overcommit_memory on your system.<br>> <br>> The default value is 0, which means allow overcommit heuristically when it seems likely to work. <br>> <br>> If, however, your system has that set to 2 (which I'm guessing it does), linux will ignore the MAP_NORESERVE flag, and *always* demands you have enough ram and swap to hold everything that might ever possibly be written.<br>> <br>> In that case, either set it back to 0, or else add 16TB or so of swapspace to your system.<br>> <br>> Almost nobody ever sets that option to 2, because it's almost completely useless to do so, and just breaks stuff. :)<br><br><br><br>