My Authors
Read all threads
Done more performance analysis of the new Lambda-EFS feat. Some interesting findings, longer write-up to follow.

1st: mounting an EFS volume has no impact on Cold Start duration (as measured by InitDuration)

2nd: it is much FASTER and more predictable than S3

#serverless

/1
On the initDuration, on a relatively small sample set (~100) I didn't detect any noticeable difference between the control and EFS ("efs-test") functions.

/2
For read/write performance, it's clear to see that EFS is both faster and more predictable (i.e. lower SD) compared reading & writing from/to S3.

But something was weird - notice those big "jumps" between the tail latencies for EFS read latencies?

/3
So it seems the first read on a new container (as you can see in the change in the logStream path) is much higher.

Same for diff file sizes.

Is there some caching in place? The Node.js code is straight forward enough, so don't think the caching is happening there.

/4
So, what if the file is changed frequently?

I updated the test to read the '-1' suffix'd file on each iteration to see what happens to the read latencies.

And sure enough, the numbers quite different, a lot more "high" read latencies.

/5
But did you notice that the smaller the file, the more frequently we see a "high" (relative) read latency on the same container?

I theorize that the longer the write ops took (bigger file) the more likely the cache hit on next read. Maybe writes are streams to cache?

/6
But is the caching happening at the container level? Is that why the 1st read (during cold start) is always higher?

Still much I don't understand about how it works. Maybe someone else can shed some light? @hichaelmart @heitor_lessa @em__shea @sthulb

7/
Missing some Tweet in this thread? You can try to force a refresh.

Keep Current with Yan Cui

Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

Twitter may remove this content at anytime, convert it as a PDF, save and print for later use!

Try unrolling a thread yourself!

how to unroll video

1) Follow Thread Reader App on Twitter so you can easily mention us!

2) Go to a Twitter thread (series of Tweets by the same owner) and mention us with a keyword "unroll" @threadreaderapp unroll

You can practice here first or read more on our help page!

Follow Us on Twitter!

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3.00/month or $30.00/year) and get exclusive features!

Become Premium

Too expensive? Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal Become our Patreon

Thank you for your support!