[vbox-dev] Updating network interfaces list speed-up

a.urakov at drweb.com a.urakov at drweb.com
Wed Feb 25 13:16:23 UTC 2015


We would like to contribute to VirtualBox under MIT license. We want to 
suggest our changes for multiple VMs starting speed-up.

The basic idea is to take out getting of host interfaces from write lock 
on host object. When many VMs are starting at the same time then 
/FindHostNetworkInterfaceByName/ is called for every machine and it 
updates network interfaces. So if umount of VMs is large enough then 
execution time of this function greatly increases due to lock wait.

There are two /VBoxSVC/ logs in attach: before applying our changes and 
after it. In every case we started 80 VMs at the same time. Statistic of 
/FindHostNetworkInterfaceByName/ execution time before changes is:

Min: 0.38 s (nspr-31)
Med: 14.13 s (nspr-82)
Max: 37.70 s (nspr-188)
Avg: 15.07 s

Statistic after changes is:

Min: 1.12 s (nspr-85)
Med: 6.56 s (nspr-228)
Max: 17.27 s (nspr-7)
Avg: 5.82 s


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.virtualbox.org/pipermail/vbox-dev/attachments/20150225/d1b37ecc/attachment-0001.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: after_2015-02-25-10-58-19.074-VBoxSVC-23926.log
Type: text/x-log
Size: 10164 bytes
Desc: not available
Url : http://www.virtualbox.org/pipermail/vbox-dev/attachments/20150225/d1b37ecc/attachment-0003.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: before_2015-02-25-10-37-33.014-VBoxSVC-1565.log
Type: text/x-log
Size: 9792 bytes
Desc: not available
Url : http://www.virtualbox.org/pipermail/vbox-dev/attachments/20150225/d1b37ecc/attachment-0004.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: HostImpl.patch
Type: text/x-patch
Size: 6651 bytes
Desc: not available
Url : http://www.virtualbox.org/pipermail/vbox-dev/attachments/20150225/d1b37ecc/attachment-0005.bin 

More information about the vbox-dev mailing list