<div dir="ltr"><div dir="ltr"><div class="gmail_default" style="font-size:small">Hi Alexander,</div><div class="gmail_default" style="font-size:small"><br></div></div><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Alexander Egorenkov <<a href="mailto:egorenar@linux.ibm.com" target="_blank">egorenar@linux.ibm.com</a>> wrote:</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span class="gmail_default" style="font-size:small">...</span><br>
swapping01.c:106: TINFO: available physical memory:<b> 7348 MB</b><br>
swapping01.c:109: TINFO: try to allocate: 9552 MB<br>
swapping01.c:112: TINFO: memory allocated: 9552 MB<br>
swapping01.c:140: TINFO: swap free init: 25019 MB<br>
swapping01.c:141: TINFO: swap free now: 20484 MB<br>
swapping01.c:149: TPASS: no heavy swapping detected, <b>4534 MB swapped.</b><br>
<span class="gmail_default" style="font-size:small">...</span><br>
swapping01.c:106: TINFO: available physical memory:<b> 7318 MB</b><br>
swapping01.c:109: TINFO: try to allocate: 9514 MB<br>
swapping01.c:112: TINFO: memory allocated: 9514 MB<br>
swapping01.c:140: TINFO: swap free init: 25019 MB<br>
swapping01.c:141: TINFO: swap free now: 17697 MB<br>
swapping01.c:145: TFAIL: heavy swapping detected:<b> 7322 MB swapped.</b><br></blockquote><div><br></div><div><div class="gmail_default" style="font-size:small">Looking at the memory status from the output, it only detects available</div><div class="gmail_default" style="font-size:small">memory 7318MB in the fourth time (< 7348MB, second/third time).</div><div class="gmail_default" style="font-size:small">But memory heavy swapped in the third and fourth time(7323MB, 7322MB swapped).</div><br></div><div><div class="gmail_default" style="font-size:small">Obviously, the last two tests influenced by the first-three running. </div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">How reproducible of this FAIL? And, Could you help verify whether the following cleanup works?</div></div><div class="gmail_default" style="font-size:small">(Also, provide /proc/meminfo or kernel version will help to locate the issues).</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">--- a/testcases/kernel/mem/swapping/swapping01.c<br>+++ b/testcases/kernel/mem/swapping/swapping01.c<br>@@ -81,6 +81,7 @@ static void test_swapping(void)<br> <br> static void init_meminfo(void)<br> {<br>+ SAFE_FILE_PRINTF("/proc/sys/vm/drop_caches", "3");<br> swap_free_init = SAFE_READ_MEMINFO("SwapFree:");<br> if (FILE_LINES_SCANF("/proc/meminfo", "MemAvailable: %ld",<br> &mem_available_init)) {<br></div><div> </div></div>-- <br><div dir="ltr"><div dir="ltr"><div>Regards,<br></div><div>Li Wang<br></div></div></div></div>