Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AWS Lambda : OpenBLAS WARNING - could not determine the L2 cache size on this system, assuming 256k - While using Google Custom Search API

I deployed the Google Custom Search API as AWS lambda function for my project. It uses the 3GB (full memory provided by lambda) and task got terminated.

It throws a warning :

"OpenBLAS WARNING - could not determine the L2 cache size on this system, assuming 256k" 

I don't know why its consuming more memory?

like image 923
Karthik Subramaniyam Avatar asked Jul 18 '19 05:07

Karthik Subramaniyam


People also ask

What is OpenBLAS warning?

If the only error that you're seeing is the OpenBLAS warning, most likely the app is working well. After debugging this problem for several hours, I found that as Dash and Pandas consume a lot of memory, the F2 instance is not able to handle the web app properly and fails due to lack of RAM memory.

Does AWS lambda support pandas?

AWS Lambda does not include Pandas/NumPy Python libraries by default.


1 Answers

This warning is just a warning, and has nothing to do with your problems.

BLAS is a highly optimised library, aiming to get near-perfect performance on all hardware. AWS Lambdas are supposed to run in a more abstract environment than most, and the low-level details of what CPU it's running on are not available to your code. Therefore OpenBLAS just guesses.

The only impact it would have is slightly reduced performance of certain mathematical operations, if the guess were incorrect.

like image 181
OrangeDog Avatar answered Sep 21 '22 02:09

OrangeDog