Slow make compile time with bamboo
Asked by Ting Hui:

Hi, I am experiencing really slow compile time from bamboo build, about every 3 minutes for each make compile command to finish.

```
build	01-May-2015 13:34:23	     [exec] `libProtobuf.so' -> `D:/bamboo-agent-1/xml-data/build-dir/HSQ-HSQEAETEST-COMBLD/FWShared/svn-ext/ThirdParty/Protobuf/../../../../Deploy/abbott/lib/libProtobuf.so'build	01-May-2015 13:37:16	     [exec] `libProtobuf.so' -> `D:/bamboo-agent-1/xml-data/build-dir/HSQ-HSQEAETEST-COMBLD/FWShared/svn-ext/ThirdParty/Protobuf/../../../../HSQEmbedded/Deploy/abbott/lib/libProtobuf.so'build	01-May-2015 13:37:16	     [exec] C:/QNX650/host/win32/x86/usr/bin/rm -f  D:/bamboo-agent-1/xml-data/build-dir/HSQ-HSQEAETEST-COMBLD/FWShared/svn-ext/ThirdParty/Protobuf/x86/so-g/libProtobufS.abuild	01-May-2015 13:40:09	     [exec] C:/QNX650/host/win32/x86/usr/bin/qcc -Vgcc_ntox86 -a  D:/bamboo-agent-1/xml-data/build-dir/HSQ-HSQEAETEST-COMBLD/FWShared/svn-ext/ThirdParty/Protobuf/x86/so-g/libProtobufS.a coded_stream.o common.o descriptor.o descriptor.pb.o descriptor_database.o dynamic_message.o extension_set.o extension_set_heavy.o generated_message_reflection.o generated_message_util.o gzip_stream.o hash.o importer.o message.o message_lite.o once.o parser.o printer.o reflection_ops.o repeated_field.o service.o structurally_valid.o strutil.o substitute.o text_format.o tokenizer.o unknown_field_set.o wire_format.o wire_format_lite.o zero_copy_stream.o zero_copy_stream_impl.o zero_copy_stream_impl_lite.o     -g  build	01-May-2015 13:40:09	     [exec] C:\QNX650\host\win32\x86\usr\bin\ntox86-ar: creating D:/bamboo-agent-1/xml-data/build-dir/HSQ-HSQEAETEST-COMBLD/FWShared/svn-ext/ThirdParty/Protobuf/x86/so-g/libProtobufS.abuild	01-May-2015 13:43:02	     [exec] `libProtobuf.so' -> `D:/bamboo-agent-1/xml-data/build-dir/HSQ-HSQEAETEST-COMBLD/FWShared/svn-ext/ThirdParty/Protobuf/../../../../Deploy/abbott/lib/libProtobuf.so'build	01-May-2015 13:45:55	     [exec] `libProtobuf.so' -> `D:/bamboo-agent-1/xml-data/build-dir/HSQ-HSQEAETEST-COMBLD/FWShared/svn-ext/ThirdParty/Protobuf/../../../../HSQEmbedded/Deploy/abbott/lib/libProtobuf.so'build	01-May-2015 13:48:49	     [exec] `libProtobuf.so' -> `D:/bamboo-agent-1/xml-data/build-dir/HSQ-HSQEAETEST-COMBLD/FWShared/svn-ext/ThirdParty/Protobuf/../../../../Deploy/abbott/lib/libProtobuf.so'build	01-May-2015 13:51:42	     [exec] `libProtobuf.so' -> `D:/bamboo-agent-1/xml-data/build-dir/HSQ-HSQEAETEST-COMBLD/FWShared/svn-ext/ThirdParty/Protobuf/../../../../HSQEmbedded/Deploy/abbott/lib/libProtobuf.so'
```

In task manager, I can see there are 7 make threads process, but only one is moving, the other threads do nothing but being idle. Usually, the make threads should come and go and usually move fast. But at some point, it started acting up. It only happens building from the bamboo, from command line, the make runs normal and fast, like \~1 second for each make command. Have anyone seen this kind of problem before with bamboo? Thanks.


Answers:
author: Scott Butcher
body: Reviving an old thread...

I have this problem as well. Bamboo seems to delay when calling any MinGW related executables. Our make scripts make a lot of calls to C:\\MinGW\\msys\\1.0\\bin\\rm.exe, each one of which takes 7-20 seconds to complete. Through the course of a make that involves a couple thousand operations, it pushes my build time to \~50 minutes. The rm command takes \< 1 second from the command line and the build takes \< 5 minutes from the command line.


Tags: bamboo-administration