Skip to content

Is the runtime multi-threaded? #440

Closed Answered by nmoutschen
vladinator1000 asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @vladinator1000!

Short answer is that it depends on the amount of memory configure. On Lambda, you get an amount of CPU resources proportional to the amount of memory you configure, with a maximum of 6 vCPUs at 10GB. At 1769 MB of RAM, you'll get the equivalent of 1 full vCPU (you can use 1 vCPU-second per second your Lambda function is executing to run instructions), but this might be shared between 2 vCPUs.

If you're using Rust 1.59.0, you can use std::thread::available_parallelism to see what's a reasonable amount of parallelism you should use with the amount of memory you've configured.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by nmoutschen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants