rdkcentral / Dobby

The Dobby component is a wrapper around the opensource crun/runc containerization tool for managing and running containers.
Apache License 2.0
16 stars 42 forks source link

Improve container launch time #341

Open goruklu opened 1 month ago

goruklu commented 1 month ago

Dobby takes close to 1 second (700-900 msec) to launch a container. This impacts the app launch times. networking setup takes 300ms for example:

2024 Jul 26 15:55:44.325149 com.sky.as.apps_AZero[3155]:  Running networking plugin
2024 Jul 26 15:55:44.378436 com.sky.as.apps_AZero[3160]:  created veth pair ('veth4' <-> 'eth0')
2024 Jul 26 15:55:44.448585 com.sky.as.apps_AZero[3160]:  about to change namespace to '/proc/3154/ns/net'
2024 Jul 26 15:55:44.489988 com.sky.as.apps_AZero[3160]:  setting link address to '100.64.11.6/24 inet dev 0 scope nowhere'
2024 Jul 26 15:55:44.490812 com.sky.as.apps_AZero[3160]:  setting link address to '2080:d0bb:1e::6440:b06/64 inet6 dev 0 scope nowhere'
2024 Jul 26 15:55:44.491460 com.sky.as.apps_AZero[3160]:  setting link address to '127.0.0.1/8 inet dev 0 scope nowhere'
2024 Jul 26 15:55:44.568957 com.sky.as.apps_AZero[3160]:  adding route 'inet default table main via 100.64.11.1 dev 3 '
2024 Jul 26 15:55:44.569314 com.sky.as.apps_AZero[3160]:  adding route 'inet 127.0.0.0/8 table main via 0.0.0.0 dev 1 '
2024 Jul 26 15:55:44.569625 com.sky.as.apps_AZero[3160]:  adding route 'inet6 default table main via 2080:d0bb:1e::6440:b01 dev 3 '
2024 Jul 26 15:55:44.630240 com.sky.as.apps_AZero[3155]:  Plugin networking has createRuntime hook run successfully