[vbox-dev] [PATCH] Performance improvement of vboxsf

Frank Mehnert frank.mehnert at oracle.com
Fri Jul 31 13:28:18 GMT 2015


Hi Tatuya

On Friday 31 July 2015 21:59:42 tatuya karino wrote:
> I investigated cause of the low performance of the find command in the
> shared folder on a Linux guest.
> I created a patch that returns the correct d_type in
> file_operations.iterator.
> With this fix, `find /path/to/shared` gets significant performance
> improvement.
> I tested this code in a Windows 7 and Mac OS X Yosemite hosts.
> 
> This patch is provided under the MIT license.
> 
> // before applying this patch
> vagrant at debian-jessie:/vagrant/large-dir$ time find . > /dev/null
> 
> real  0m10.422s
> user  0m0.060s
> sys 0m5.068s
> 
> // after applying this patch
> vagrant at debian-jessie:/vagrant/large-dir$ time find . > /dev/null
> 
> real  0m1.885s
> user  0m0.036s
> sys 0m0.644s

thank you for this contribution! We will verify the patch. I guess this
optimization will mainly improve stat()-related applications (like 'find')
but this optimization still makes a lot of sense.

Thanks,

Frank
-- 
Dr.-Ing. Frank Mehnert | Software Development Director, VirtualBox
ORACLE Deutschland B.V. & Co. KG | Werkstr. 24 | 71384 Weinstadt, Germany

ORACLE Deutschland B.V. & Co. KG
Hauptverwaltung: Riesstraße 25, D-80992 München
Registergericht: Amtsgericht München, HRA 95603

Komplementärin: ORACLE Deutschland Verwaltung B.V.
Hertogswetering 163/167, 3543 AS Utrecht, Niederlande
Handelsregister der Handelskammer Midden-Niederlande, Nr. 30143697
Geschäftsführer: Alexander van der Ven, Astrid Kepper, Val Maher




More information about the vbox-dev mailing list