Hi All,

Test case : overcommit_memory -R 0
Test faild.
Because overcommit_ratio = 0 ???
Is this a test case bug or any thing missing in kernel ?

Without Swap :
--------------------
CommitLimit = SwapTotal + MemTotal * overcommit_ratio
CommitLimit = ( 0 + 8232052 * 0 )
CommitLimit = 0
Committed_AS is the amount of memory that system has used.
Committed_AS = 727208
if (CommitLimit < Committed_AS) TEST BROKEN ;
if ( 65532 < 727080 )  TEST BROKEN ;
##################################################################
tag=overcommit_memory02 stime=1410838101
cmdline="overcommit_memory -R 0"
contacts=""
analysis=exit
<<<test_output>>>
overcommit_memory    0  TINFO  :  set overcommit_ratio to 0
overcommit_memory    0  TINFO  :  MemTotal is 8232052 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 727208
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
##################################################################

With Swap enabled manually.
---------------------------------------
overcommit_memory02 overcommit_memory -R 0
Test faild.
Because overcommit_ratio = 0.
CommitLimit = SwapTotal + MemTotal * overcommit_ratio
CommitLimit = ( 65532  + 8232052 * 0 )
CommitLimit = 65532
Committed_AS is the amount of memory that system has used.
Committed_AS = 727080
if (CommitLimit < Committed_AS) TEST BROKEN ;
if ( 65532 < 727080 )  TEST BROKEN ;
##################################################################
cmdline="overcommit_memory -R 0"
contacts=""
analysis=exit
<<<test_output>>>
overcommit_memory    0  TINFO  :  set overcommit_ratio to 0
overcommit_memory    0  TINFO  :  MemTotal is 8232052 kB
overcommit_memory    0  TINFO  :  SwapTotal is 65532 kB
overcommit_memory    0  TINFO  :  CommitLimit is 65532 kB
overcommit_memory    0  TINFO  :  set overcommit_memory to 2
overcommit_memory    0  TINFO  :  CommmitLimit is 65532, Committed_AS is 727080
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
##################################################################

Kernel Version: 3.10.52-linaro-vexpress64
Machine Architecture: aarch64

Full test log can be found at: http://pastebin.com/e5j5xzZu

Best regards
Naresh Kamboju

------------------------------------------------------------------------------
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to