From: Wanlong Gao <gaowanlong@cn.fujitsu.com>
To: Sravan V Dodla <sravan@linux.vnet.ibm.com>
Cc: ltp-list@lists.sourceforge.net
Subject: Re: [LTP] [PATCH] mem/tunable: fix the overcommitting possible failure
Date: Tue, 22 Jan 2013 16:38:57 +0800 [thread overview]
Message-ID: <50FE5021.1010604@cn.fujitsu.com> (raw)
In-Reply-To: <loom.20130117T133157-543@post.gmane.org>
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
prev parent reply other threads:[~2013-01-22 9:00 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[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 message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=50FE5021.1010604@cn.fujitsu.com \
--to=gaowanlong@cn.fujitsu.com \
--cc=ltp-list@lists.sourceforge.net \
--cc=sravan@linux.vnet.ibm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox