* Re: [LTP] [PATCH] mem/tunable: fix the overcommitting possible failure
[not found] ` <4F4313F6.9020408@cn.fujitsu.com>
@ 2013-01-17 12:37 ` Sravan V Dodla
2013-01-22 8:38 ` Wanlong Gao
0 siblings, 1 reply; 2+ messages in thread
From: Sravan V Dodla @ 2013-01-17 12:37 UTC (permalink / raw)
To: ltp-list
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
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [LTP] [PATCH] mem/tunable: fix the overcommitting possible failure
2013-01-17 12:37 ` [LTP] [PATCH] mem/tunable: fix the overcommitting possible failure Sravan V Dodla
@ 2013-01-22 8:38 ` Wanlong Gao
0 siblings, 0 replies; 2+ messages in thread
From: Wanlong Gao @ 2013-01-22 8:38 UTC (permalink / raw)
To: Sravan V Dodla; +Cc: ltp-list
On 01/17/2013 08:37 PM, Sravan V Dodla wrote:
> 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.
Sorry for the late reply, according to your log, it seems that you disabled
your system swap or even don't have a swap.
Since the CommitLimit=Swap+RAM*overcommit_ratio, now the ratio is 0, so the
commit limit comes to 0, this cause the unexpected error here.
You'd better enable your swap then test again, or change the ratio.
Thanks,
Wanlong Gao
>
> ./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
> Ltp-list@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/ltp-list
>
------------------------------------------------------------------------------
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/learnnow-d2d
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-01-22 9:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <1329795813-12550-1-git-send-email-gaowanlong@cn.fujitsu.com>
[not found] ` <4F4313F6.9020408@cn.fujitsu.com>
2013-01-17 12:37 ` [LTP] [PATCH] mem/tunable: fix the overcommitting possible failure Sravan V Dodla
2013-01-22 8:38 ` Wanlong Gao
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox