Wanlong Gao <gaowanlong@...> writes:

> 
> On 02/21/2012 11:43 AM, Wanlong Gao wrote:
> 
> > 1. CommitLimit may be changed when set another overcommit_memory
> >    value.
> > 2. Test overcommit_memory=2 first to avoid the condition
> >    committed > CommitLimited.
> 
> Below is my failure before this patch.

Some how even after the patch I still hit this issue.
Wanlong, is it good to skip this case of test when CommitLimit < Committed_AS.
Please comment.

./overcommit_memory -R 0
overcommit_memory    0  TINFO  :  set overcommit_ratio to 0
overcommit_memory    0  TINFO  :  MemTotal is 1020764 kB
overcommit_memory    0  TINFO  :  SwapTotal is 0 kB
overcommit_memory    0  TINFO  :  CommitLimit is 0 kB
overcommit_memory    0  TINFO  :  set overcommit_memory to 2
overcommit_memory    0  TINFO  :  CommmitLimit is 0, Committed_AS is 241680
overcommit_memory    1  TBROK  :  Unexpected error: CommitLimit < Committed_AS
overcommit_memory    2  TBROK  :  Remaining cases broken
overcommit_memory    0  TINFO  :  set overcommit_memory to 0
overcommit_memory    0  TINFO  :  set overcommit_ratio to 50

> ---
> # ./overcommit_memory -R 0 ; cat /proc/meminfo 
> overcommit_memory    0  TINFO  :  set overcommit_ratio to 0
> overcommit_memory    0  TINFO  :  MemTotal is 5780068 kB
> overcommit_memory    0  TINFO  :  SwapTotal is 4095996 kB
> overcommit_memory    0  TINFO  :  CommitLimit is 4095996 kB
> overcommit_memory    0  TINFO  :  set overcommit_memory to 0
> overcommit_memory    0  TINFO  :  malloc 2127578 kB successfully
> overcommit_memory    1  TPASS  :  alloc passed as expected
> overcommit_memory    0  TINFO  :  malloc 8510312 kB failed
> overcommit_memory    2  TPASS  :  alloc failed as expected
> overcommit_memory    0  TINFO  :  malloc 9876064 kB failed
> overcommit_memory    3  TPASS  :  alloc failed as expected
> overcommit_memory    0  TINFO  :  set overcommit_memory to 2
> overcommit_memory    0  TINFO  :  CommmitLimit is 4095996, Committed_AS is 
4096060
> overcommit_memory    4  TBROK  :  Unexpected error: CommitLimit < Committed_AS
> overcommit_memory    5  TBROK  :  Remaining cases broken
> overcommit_memory    0  TINFO  :  set overcommit_memory to 0
> overcommit_memory    0  TINFO  :  set overcommit_ratio to 50




------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122712
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to