linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: "Skidanov, Alexey" <alexey.skidanov@intel.com>
To: "linux-mm@kvack.org" <linux-mm@kvack.org>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: CMA allocation failure
Date: Sat, 27 Jan 2018 09:37:20 +0000	[thread overview]
Message-ID: <040863540BC4D141BEB17753235088284DBB1DDA@hasmsx108.ger.corp.intel.com> (raw)

Hello,

I enabled CMA global area to be 8GB. Immediately after boot, I'm able to allocate the really big contiguous chunks of memory (about 8GB). But several minutes after the boot, there is some degradation in an ability of CMA to allocate contiguous memory buffers:

[ 2333.037004] cma: cma_alloc(): memory range at ffffea000f0a0000 is busy, retrying
[ 2333.037005] cma: cma_alloc: alloc failed, req-size: 500000 pages, ret: -16
[ 2333.037006] cma: number of available pages: 6@122+9@151+9@183+2096848@304=> 2096872 free of 2097152 total pages
[ 2333.037034] cma: cma_alloc(): returned (null)

The request to allocate 500000 pages (~2GB) is failed while the block of 2096848 contiguous pages are available.

One of the failure reasons is the user allocated pinned pages in the middle of the CMA reserved range. Can I somehow verify it? Can I get the details of such pinned pages (number of pages, source of pinning, etc. ... )?

Thanks,
Alexey
---------------------------------------------------------------------
Intel Israel (74) Limited

This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.

--
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:[~2018-01-27  9:37 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=040863540BC4D141BEB17753235088284DBB1DDA@hasmsx108.ger.corp.intel.com \
    --to=alexey.skidanov@intel.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    /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