All of lore.kernel.org
 help / color / mirror / Atom feed
* CMA allocation failure
@ 2018-01-27  9:37 ` Skidanov, Alexey
  0 siblings, 0 replies; 3+ messages in thread
From: Skidanov, Alexey @ 2018-01-27  9:37 UTC (permalink / raw)
  To: linux-mm, linux-kernel

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.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* CMA allocation failure
@ 2018-01-27  9:37 ` Skidanov, Alexey
  0 siblings, 0 replies; 3+ messages in thread
From: Skidanov, Alexey @ 2018-01-27  9:37 UTC (permalink / raw)
  To: linux-mm, linux-kernel

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>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* CMA allocation failure
@ 2019-03-07 11:44 Pankaj Suryawanshi
  0 siblings, 0 replies; 3+ messages in thread
From: Pankaj Suryawanshi @ 2019-03-07 11:44 UTC (permalink / raw)
  To: kernelnewbies

[-- Attachment #1: Type: text/html, Size: 2505 bytes --]

[-- Attachment #2: Type: text/plain, Size: 170 bytes --]

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-03-11 19:25 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-01-27  9:37 CMA allocation failure Skidanov, Alexey
2018-01-27  9:37 ` Skidanov, Alexey
2019-03-07 11:44 Pankaj Suryawanshi

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.