linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Aaron Lu <aaron.lu@intel.com>
To: Michal Hocko <mhocko@suse.cz>
Cc: Linux MM <linux-mm@kvack.org>,
	lkp@01.org, Huang Ying <ying.huang@intel.com>,
	Vlastimil Babka <vbabka@suse.cz>
Subject: Re: OOM in v4.8
Date: Wed, 12 Oct 2016 16:24:47 +0800	[thread overview]
Message-ID: <24ea68df-8b6c-5319-a8ef-9c4f237cfc2a@intel.com> (raw)
In-Reply-To: <20161012080022.GA17128@dhcp22.suse.cz>

On 10/12/2016 04:00 PM, Michal Hocko wrote:
> On Wed 12-10-16 09:44:11, Michal Hocko wrote:
>> [Let's CC Vlastimil]
>>
>> On Wed 12-10-16 14:54:23, Aaron Lu wrote:
>>> Hello,
>>>
>>> There is a chromeswap test case:
>>> https://chromium.googlesource.com/chromiumos/third_party/autotest/+/master/client/site_tests/platform_CompressedSwapPerf
>>>
>>> We have done small changes and ported it to our LKP environment:
>>> https://github.com/aaronlu/chromeswap
>>>
>>> The test starts nr_procs processes and let them each allocate some
>>> memory equally with realloc, so anonymous pages are used. When the
>>> pre-specified swap_target is reached, the allocation will stop. The
>>> total allocation size is: MemFree + swap_target * SwapTotal.
>>> After allocation, a random process is selected to touch its memory to
>>> trigger swap in/out.
>>>
>>> For this test, nr_procs is 50 and swap_target is 50%.
>>> The test box has 8G memory where 4G is used as a pmem block device and
>>> created as the swap partition.
>>>
>>> There is OOM occured for this test recently so I did more tests:
>>> on v4.6, 10 tests all pass;
>>> on v4.7, 2 tests OOMed out of 10 tests;
>>> on v4.8, 6 tests OOMed out of 10 tests;
>>> on 101105b1717f, which is yersterday's Linus' master branch head,
>>> 1 test OOMed out of 10 tests.
>>
>> Could you try to retest with the current linux-next please?
> 
> And I am obviously blind because you have already tested with
> 101105b1717f which contains the Andrew patchbomb and so all the relevant
> changes. Now that I am lookinig into your log for that kernel there
> doesn't seem to be any OOM killer invocation. There is only
> kern  :warn  : [  177.175954] perf: page allocation failure: order:2, mode:0x208c020(GFP_ATOMIC|__GFP_COMP|__GFP_ZERO)

Oh right, perf may fail but that shouldn't make the test be terminated.
I'll need to check why OOM is marked for that test.

Another possibility is, OOM occurred later when the chromeswap test is
requesting memory but for some reason, the log isn't properly saved.

> 
> which is an atomic high order request that failed which is not all that
> unexpected when the system is low on memory. The allocation failure
> report is hard to read because of unexpected end-of-lines but I suspect

Sorry about that, I'll try to find out why dmesg is saved so ugly on
that test box.

> that again we are not able to allocate because of the CMA standing in
> the way. I wouldn't call the above failure critical though.
 
I'll test that commit and v4.8 again with cma=0 added to cmdline.

Thanks for taking a look at this.

Regards,
Aaron

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

  reply	other threads:[~2016-10-12  8:24 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-10-12  6:54 OOM in v4.8 Aaron Lu
2016-10-12  7:44 ` Michal Hocko
2016-10-12  8:00   ` Michal Hocko
2016-10-12  8:24     ` Aaron Lu [this message]
2016-10-12  8:43       ` Michal Hocko
2016-10-12 13:38         ` Aaron Lu
2016-10-13  6:23       ` Aaron Lu
2016-10-13  6:34         ` Michal Hocko

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=24ea68df-8b6c-5319-a8ef-9c4f237cfc2a@intel.com \
    --to=aaron.lu@intel.com \
    --cc=linux-mm@kvack.org \
    --cc=lkp@01.org \
    --cc=mhocko@suse.cz \
    --cc=vbabka@suse.cz \
    --cc=ying.huang@intel.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;
as well as URLs for NNTP newsgroup(s).