How long does it take to bring up a Ling instance?

The startup latency is the primary optimisation target for Erlang on Xen. The preliminary measurements presented below hint that Ling starts approximately 400x faster than Linux+BEAM combo.

On average, only 49ms passes between two moments when the Ling guest kernel is entered and the first Erlang instruction is executed by the virtual machine. The corresponding time for the traditional Linux+BEAM combination exceeds 20s.

Testing procedure

The startup latency was measured 10 times for both Ling and Linux+BEAM. The highest value was discarded in both cases. The remaining 9 values were averaged. The raw latency data is presented in the table below. All values are in milliseconds.

Run Linux+BEAM Ling
1 75,216 77
2 29,696 55
3 19,198 39
4 16,843 24
5 26,128 60
6 16,543 28
7 18,255 48
8 27,496 944
9 16,303 69
10 16,962 42
Average 20,825 49

The Xen guest image for Linux+BEAM was created using Suse Studio ( The minimal (JeOS) Linux configuration was selected. Erlang OTP R15B01 was added to the image. The startup time of the instance was obtained from the output of 'dmesg' command.

The specifications of the testing platform:

  • CPU: Intel g530 2.8GHz, 64-bit
  • RAM: 2G
  • Hypervisor: Xen 4.1.2
  • OS: OpenSUSE 12.1 (3.1.10-1.16-xen)


The Linux+BEAM Xen image was not optimized for the fast start except choosing a "Just Enough Operating System" configuration. Other Linux distributions may start faster than OpenSUSE. However, it is unlikely that an optimized Linux+BEAM image will show latency similar to Erlang on Xen.

Most of the startup latency for Ling is related to preparation of the memory mapping. Optimizations in the area may result in further reductions of the latency.

This page will be updated regularly, when new latency data become available. You are welcome to build a Xen image for your application and check how fast it starts.