Intel® QuickAssist Technology (Intel® QAT)
For questions and discussions related to Intel® QuickAssist Technology (Intel® QAT).
36 Discussions

[QAT-1.5] userMemAlloc() fails during init

ffernando
Beginner
1,948 Views

Hi, 

 

We face the following error during init of QAT-1.5.

> dev_mem_alloc(): userMemAlloc failed

 

Is there an option to make QAT-1.5 use hugepages ? 

 

Linux: 5.4.0-146-generic

Driver: qat1.5.l.1.13.0-19

 

Thanks,

Prashanth

 

 

0 Kudos
6 Replies
BrusC_Intel
Employee
1,917 Views

Hello, ffernando.


Good day,


Thank you for posting on the Intel Community Support forum.


I received your ticket regarding that particular QAT error, and I will be reviewing this with you.


Please allow us to work on your inquiry and I will contact you back as soon as possible.


Regards,


Bruce C.

Intel Customer Support Technician


0 Kudos
BrusC_Intel
Employee
1,903 Views

Hello, ffernando.


Thank you for your patience.


Using huge pages with the QAT1.5 driver is not possible. This is a capability that was introduced in a later driver version (QAT1.7).


For memory allocation issues, you can follow the recommendation from the QAT1.5 Release Notes found here (refer to section 4.10): https://www.intel.com/content/www/us/en/content-details/710088/intel-qat-software-for-linux-release-notes-hw-version-1-5-l-1-13-0-19.html


Other QAT resources are available here: https://www.intel.com/content/www/us/en/developer/topic-technology/open/quick-assist-technology/resources.html 


An important note is that the QAT1.5 driver is a legacy driver, and support is limited as new versions have been released for newer hardware.


If you have additional questions, please let me know, and I will follow up on May 12th just in case.


Regards,


Bruce C.

Intel Customer Support Technician


0 Kudos
ffernando
Beginner
1,891 Views

Hi Bruce, 

Thanks for sharing the links. 

I set the /proc/sys/vm/max_map_count to 262144, but still see the issue. 

 

dmesg:

[ 9572.133288] Node 0 hugepages_total=512 hugepages_free=270 hugepages_surp=0 hugepages_size=2048kB
[ 9572.133290] 371107 total pagecache pages
[ 9572.133294] 154 pages in swap cache
[ 9572.133297] Swap cache stats: add 889, delete 735, find 59/92
[ 9572.133298] Free swap = 1413408kB
[ 9572.133300] Total swap = 1416748kB
[ 9572.133302] 1039868 pages RAM
[ 9572.133303] 0 pages HighMem/MovableOnly
[ 9572.133304] 91324 pages reserved
[ 9572.133306] 0 pages cma reserved
[ 9572.133307] 0 pages hwpoisoned
[ 9572.133311] [error]
[ 9572.133313] Unable to allocate memory mem_info->kmalloc_ptr
[ 9572.133315] [error]
[ 9572.133316] dev_mem_alloc(): userMemAlloc failed

 

0 Kudos
BrusC_Intel
Employee
1,875 Views

Hello, ffernando.


Allow us to review this and I will contact you back as soon as I can share a response or in case more information is required.


Regards,


Bruce C.

Intel Customer Support Technician


0 Kudos
BrusC_Intel
Employee
1,855 Views

Hello, ffernando.


Thank you for waiting.


With the QAT1.5 driver being a legacy driver, support is very limited, and our previous response was meant to be a recommendation, not really a solution, to the memory allocation problem.


The other approach you may try is to check your application and QAT configuration file to see if there are too many instances, as noted in the Release Notes document already shared. Other than that, there are no additional recommendations, information or comments we can share.


If we can help you with anything else, please let me know, but if that is not the case I will proceed to close this thread on May 17th.


Regards,


Bruce C.

Intel Customer Support Technician


0 Kudos
BrusC_Intel
Employee
1,792 Views

Hello, ffernando.


Good day,


This message is to inform you about the thread closure.


We previously shared that with the QAT1.5 driver being a legacy driver, support is very limited, and our previous response was meant to be a recommendation, and the other approach you may try is to check your application and QAT configuration file to see if there are too many instances, as noted in the Release Notes document already shared.


The thread will be closed right now, and it will no longer be monitored by Intel support, but if you require any type of assistance from Intel in the future, just open a new thread, or contact us using any of the available support methods:

- https://www.intel.com/content/www/us/en/support/contact-intel.html


Best regards,


Bruce C.

Intel Customer Support Technician


0 Kudos
Reply