What is the normal duration for first "make all" in Eclipse?

ahue32
Posts: 16
Joined: Mon Nov 06, 2017 10:09 am

What is the normal duration for first "make all" in Eclipse?

Postby ahue32 » Fri Dec 15, 2017 10:35 am

I am just starting using Eclipse with the ESP IDF. Following the steps inthe tutorial and Neil Kolbans Tutorial I tried to "make all" the gatt_client example for the first time. Building this took 1h:20min. Is this normal? The CPU was not working on full capacity, so I don't think it is my computer that is causing this quite long build time.

User avatar
ESP_krzychb
Posts: 400
Joined: Sat Oct 01, 2016 9:05 am
Contact:

Re: What is the normal duration for first "make all" in Eclipse?

Postby ESP_krzychb » Fri Dec 15, 2017 10:50 am

ahue32 wrote:I tried to "make all" the gatt_client example for the first time. Building this took 1h:20min. Is this normal?
This build time is out of range for a typical PC. Basing on my experience, on Linux build takes below one minute, on Windows - couple of minutes. I have about 5 years old PCs loaded with Ubuntu 16.04 and Windows 7. I do not use virtualization.

User avatar
loboris
Posts: 514
Joined: Wed Dec 21, 2016 7:40 pm

Re: What is the normal duration for first "make all" in Eclipse?

Postby loboris » Fri Dec 15, 2017 11:49 am

If running on PC with good processor the build process usually takes less than 30 seconds.
For example, on my system (i7 processor, 16GB RAM, Ubuntu 17.10) building any of the examples (after make clean) takes less than 10 seconds if building with -j8 option. Building the very large application which produces ~2MB binary takes 25 seconds.

ahue32
Posts: 16
Joined: Mon Nov 06, 2017 10:09 am

Re: What is the normal duration for first "make all" in Eclipse?

Postby ahue32 » Fri Dec 15, 2017 12:01 pm

Do you know any factors that may contribute to this abnormal build time? CPU is running beneath 10% capacity.

chegewara
Posts: 2376
Joined: Wed Jun 14, 2017 9:00 pm

Re: What is the normal duration for first "make all" in Eclipse?

Postby chegewara » Fri Dec 15, 2017 7:07 pm

You can use -j flag to use multithreading. Im running ubuntu 14 in vm with 2 cores, but ive found that -j15 or even -j20 works much faster than suggested -j2 for 2 cores environment.

ESP_Angus
Posts: 2344
Joined: Sun May 08, 2016 4:11 am

Re: What is the normal duration for first "make all" in Eclipse?

Postby ESP_Angus » Sun Dec 17, 2017 10:40 pm

ahue32 wrote:Do you know any factors that may contribute to this abnormal build time? CPU is running beneath 10% capacity.
What OS are you using?

If you're on Windows, Windows Defender and other anti-virus programs can make the compilation process quite slow. Disabling live scanning for the IDF & MSYS32 directories can speed things up significantly.

1h20m sounds very abnormal, though, the delays I've seen from anti-virus are more like an additional minute or so.


Angus

Who is online

Users browsing this forum: cdollar, Google [Bot] and 126 guests