Skip to content

Windows/VirtualBox performance #557

@jakobzierk

Description

@jakobzierk

Dear Marcel and all,

thank you for your great project! I'm just exploring MP-SPDZ using Windows/VirtualBox and made the following observations, which I'd like you to consider to share (Readme or Troubleshooting), as they cost me quite some time and might help others.

Performance is by default abysmal:
AVX/AVX2 instructions are by default deactivated (see e.g. here) causing significant performance loss, deactivate Hyper-V/Hypervisor using:

bcdedit /set hypervisorlaunchtype off
DISM /Online /Disable-Feature:Microsoft-Hyper-V

Activate AVX/AVX2:

c:\Program Files\Oracle\VirtualBox>VBoxManage setextradata "<YOUR VM NAME>" VBoxInternal/CPUM/IsaExts/AVX 1
c:\Program Files\Oracle\VirtualBox>VBoxManage setextradata "<YOUR VM NAME>" VBoxInternal/CPUM/IsaExts/AVX2 1

Still, the default releases are slow under VirtualBox, compile them yourself:

sudo apt-get update
sudo apt-get install automake build-essential git libboost-dev libboost-thread-dev libntl-dev libsodium-dev libssl-dev libtool m4 python3 texinfo yasm
git clone https://github.com/data61/MP-SPDZ.git
cd MP-SPDZ
make tldr

Thanks
Jakob

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions