Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Review minimum hardware specs #1381

Open
tonytheodore opened this issue Jun 10, 2016 · 10 comments
Open

Review minimum hardware specs #1381

tonytheodore opened this issue Jun 10, 2016 · 10 comments

Comments

@tonytheodore
Copy link
Member

@tonytheodore tonytheodore commented Jun 10, 2016

http://mxe.cc/#requirements

It's very hard to quantify minimums, but I've found 8GB memory (with 12GB swap) and 60GB storage to be "safe" for Linux VMs. (Note that both swap and disk are on dynamically expandable storage).

What specs are workable for both VMs and physical hardware?

@TimothyGu
Copy link
Member

@TimothyGu TimothyGu commented Jun 11, 2016

LOL none of my physical machines have that much RAM...

@starius
Copy link
Member

@starius starius commented Jun 11, 2016

I am building MXE on Google Cloud Platform using smallest possible VM instance (1 vCPU, 0.6 GB memory). I build using build-pkg. The platform provides a range of VMs. In future I want to build each commit/pull request on all supported distributions. We can speed up builds by splitting by target.

@starius
Copy link
Member

@starius starius commented Jun 11, 2016

1 vCPU, 0.6 GB memory machine failed while building gcc. Probably 0.6 GB is too low.

@starius
Copy link
Member

@starius starius commented Jun 12, 2016

build-pkg completed on machine with 6 vCores and 5.6 Gb RAM (min amount of RAM for machine with 6 vCores). Target: i686-w64-mingw32.static. Time of first pass: 8 hours. Disk usage: 20/60Gb.

@TimothyGu
Copy link
Member

@TimothyGu TimothyGu commented Jun 12, 2016

@starius, can you test the minimum RAM needed for 4 vCores since that's more common physically? ulimit should be able to help with RAM testing.

@starius
Copy link
Member

@starius starius commented Jun 12, 2016

Unfinished build using build-pkg on Jessie machine with 1 vCore and 2Gb RAM. Target x86_64-w64-mingw32.shared takes 15 hours to complete.

@starius
Copy link
Member

@starius starius commented Jun 12, 2016

@TimothyGu, there are following standard options:

setups

In addition, custom machine can be created. For 2 vcores, min memory is 1.8 Gb. For 4 vcores, min memory is 3.6 Gb. I am going to test builds on both of them without build-pkg.

@starius
Copy link
Member

@starius starius commented Jun 12, 2016

15 Gb of storage for one target is not sufficient. Rebuilding with 30 Gb.

Output of time before it failed on 4 vcpus:

real    418m41.043s
user    1036m36.011s
sys     77m23.822s
@starius
Copy link
Member

@starius starius commented Jun 12, 2016

2 vcores with 1.8 Gb RAM failed on building pcl with wrror message "virtual memory exhausted: Cannot allocate memory"

time output:

real    528m47.000s
user    785m54.319s
sys     59m45.180s
@starius
Copy link
Member

@starius starius commented Jun 13, 2016

4 vcores with 3,6 Gb - successful build of target i686-w64-mingw32.static without build-pkg.

real    475m38.539s
user    1081m41.348s
sys     81m25.769s

Disk utilization: 14/30 Gb.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.