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?

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.