linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* Possible reasons of CMA allocation failure
@ 2018-02-04 22:58 Alexey Skidanov
  2018-02-05 13:46 ` Alexey Skidanov
  0 siblings, 1 reply; 2+ messages in thread
From: Alexey Skidanov @ 2018-02-04 22:58 UTC (permalink / raw)
  To: linux-mm, labbott

Hello,

On x86 machine with 16GB RAM installed, I reserved 1 GB area for CMA:
[    0.000000] cma: Reserved 1024 MiB at 0x00000003fcc00000

Some time after the boot, CMa failed to allocate chunk of memory while
there are enough contiguous pages:

[  392.132392] cma: cma_alloc: alloc failed, req-size: 200000 pages,
ret: -16
[  392.132393] cma: number of available pages:
6@8314+9@8343+9@8375+253648@8496=> 253672 free of 262144 total pages
[  392.132398] cma: cma_alloc(): returned (null)

What are the possible reasons for such failure (besides the pinned user
allocated pages) ?

Thanks,
Alexey

--
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] 2+ messages in thread

* Re: Possible reasons of CMA allocation failure
  2018-02-04 22:58 Possible reasons of CMA allocation failure Alexey Skidanov
@ 2018-02-05 13:46 ` Alexey Skidanov
  0 siblings, 0 replies; 2+ messages in thread
From: Alexey Skidanov @ 2018-02-05 13:46 UTC (permalink / raw)
  To: linux-mm, labbott



On 02/05/2018 12:58 AM, Alexey Skidanov wrote:
> Hello,
> 
> On x86 machine with 16GB RAM installed, I reserved 1 GB area for CMA:
> [    0.000000] cma: Reserved 1024 MiB at 0x00000003fcc00000
> 
> Some time after the boot, CMa failed to allocate chunk of memory while
> there are enough contiguous pages:
> 
> [  392.132392] cma: cma_alloc: alloc failed, req-size: 200000 pages,
> ret: -16
> [  392.132393] cma: number of available pages:
> 6@8314+9@8343+9@8375+253648@8496=> 253672 free of 262144 total pages
> [  392.132398] cma: cma_alloc(): returned (null)
> 
> What are the possible reasons for such failure (besides the pinned user
> allocated pages) ?
> 
> Thanks,
> Alexey
> 

After some debugging - the page migration failed because of there is the
page with _refcount 2, _mapcount -1. Seems like it's pinned?

Thanks,
Alexey

--
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] 2+ messages in thread

end of thread, other threads:[~2018-02-05 13:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-02-04 22:58 Possible reasons of CMA allocation failure Alexey Skidanov
2018-02-05 13:46 ` Alexey Skidanov

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).