Why does increasing RAM decrease the lambda execution time?

0

Hey,

So I have come across this article that explains how increasing memory increases compute power. My code utilizes less than 2000 MB of RAM (1800 to be specific), however, the time to execute the code is around 8.3 seconds for 2GB of memory configured.

When I increase the memory to 4 GB the time reduces to 4 seconds. Now, I understand the concept that you pay for what you use. And for 4GB I am paying double than 2GB while I don't really need the RAM.

So the issue here is why is increasing RAM the only way to increase compute power?

feita há 6 meses155 visualizações
1 Resposta
3
Resposta aceita

I do not have an absolute answer for you, but one possible answer is the goal of keeping the service as simple as possible. The fewer the knobs, the better.

BTW, You get a full core at ~1.8 GB RAM. If your performance becomes better when you go above that number, it probably means that you are utilizing multiple threads in your function, otherwise, it would probably not cause better performance.

profile pictureAWS
ESPECIALISTA
Uri
respondido há 6 meses
profile picture
ESPECIALISTA
avaliado há 6 meses
profile picture
ESPECIALISTA
avaliado há 6 meses
profile pictureAWS
ESPECIALISTA
avaliado há 6 meses

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas