Build Status

The next generation of cloud hosting is known as serverless or function-as-a-service (Faas). The popularity of these easily deployable and infinitely scalable functions has skyrocketed since AWS announced their Lambda service in 2014. One primary concern regarding the performance of these functions is the effect of “cold starts”. A cold start is the time it takes to boot a new container when the platform needs to increase its capacity for that function.

We investigate the possibility of restoring function containers as an alternative to starting new containers.

Our method focuses on Linux process primitives. We store and modify state such as raw memory and registers in order to reset the process to the way it was before the user’s function was loaded. We discuss how to ensure temporal isolation in order to provide security guarantees in such a system. We find that it is possible to restore container processes in a variety of runtimes. Using this approach can decrease the effect of cold starts by up to 20x and increase the overall throughput of such systems.

The full report can be found here

Get started on minikube

 minikube start \
    --container-runtime=containerd \
    --network-plugin=cni \
    --enable-default-cni \
    --cri-socket=/tmp/refunction.sock \
    --extra-config=kubelet.container-runtime=remote \
    --extra-config=kubelet.container-runtime-endpoint=unix:///tmp/refunction.sock \


$ minikube ssh
$ curl -o cri && chmod +x cri
$ sudo ./cri


Reusing containers for faster serverless function execution - Masters Project @ Imperial College

Refunction Info

⭐ Stars 10
🔗 Source Code
🕒 Last Update a year ago
🕒 Created 3 years ago
🐞 Open Issues 1
➗ Star-Issue Ratio 10
😎 Author ostenbom