Hello,
I’m trying to build a sample Qt application on apalis-imx6q with apalis evaluation board.
And I’m using visual studio code with docker for development and deploying an application.
I’m using torizoncore image (toradex_5.4.y)
But I’m experiencing an error saying
“DRM_IOCTL_MODE_CREATE_DUMB failed: cannot allocate memory”
“etna_resource_alloc:284: Problem allocating kms memory for resource”
so it looks like a memory issue. I’ve also done some research on my own about this and it looks this is related to GPU.
Yeah this seems like a GPU memory issue based on the error you got. First of all what version of TorizonCore are you running? You mentioned the kernel version (5.4) but what version of the OS itself?
One thing you can try is adjusting the “Continuous Memory Allocation” (CMA) on the image. This will adjust how much of the system memory is allocated to the GPU as well. Please see the article here for more info on this topic: Contiguous Memory Allocator - CMA (Linux) | Toradex Developer Center
Thanks @jeremias.tx this worked and there is an improvement.
I’ve increased memory using kernel arguments.
By the way kernel version as you asked is “5.4.129-5.4.0+git.ce72bea42c97”
Can you please tell me how can we check resource consumption and monitor them, I mean CMA memory buffers etc in torizoncore.