Parallel compilation on a Linux machine
I tried to use make -j 4 to compile FS git on my AMD64 PhenomII X3 machine. The compilation doesn't seem to fully utilize all the 3 CPU cores. As a matter of fact, it takes almost the same amount of time (about 55 minutes) to compile FS git with only -j 4 switch. So, does anyone here know how to make compile FS git in parallel to make use of all CPU cores? This way, I don't have to spend about an hour just to compile FS git. ----- don't and stop are the ONLY two 4-letter words considered offensive to men, but not when used together. -- View this message in context: http://freeswitch-users.2379917.n2.nabble.com/Parallel-compilation-on-a-Linu... Sent from the freeswitch-users mailing list archive at Nabble.com.
How many modules are you compiling at once anyways? FS git never seem to take more than approx. 15-20 minutes when it's being compiled on my AMD Athlon II Dual Core machine. May I ask how much RAM do you have on your box? On Wed, Feb 16, 2011 at 7:29 PM, mazilo <Nabble@slickdeals.endjunk.com> wrote:
I tried to use make -j 4 to compile FS git on my AMD64 PhenomII X3 machine. The compilation doesn't seem to fully utilize all the 3 CPU cores. As a matter of fact, it takes almost the same amount of time (about 55 minutes) to compile FS git with only -j 4 switch. So, does anyone here know how to make compile FS git in parallel to make use of all CPU cores? This way, I don't have to spend about an hour just to compile FS git.
----- don't and stop are the ONLY two 4-letter words considered offensive to men, but not when used together. -- View this message in context: http://freeswitch-users.2379917.n2.nabble.com/Parallel-compilation-on-a-Linu... Sent from the freeswitch-users mailing list archive at Nabble.com.
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
curriegrad2004 wrote:
How many modules are you compiling at once anyways? Almost all modules.
FS git never seem to take more than approx. 15-20 minutes when it's being compiled on my AMD Athlon II Dual Core machine. May I ask how much RAM do you have on your box? 2GB RAM with no X11 windows running. ----- don't and stop are the ONLY two 4-letter words considered offensive to men, but not when used together. -- View this message in context: http://freeswitch-users.2379917.n2.nabble.com/Parallel-compilation-on-a-Linu... Sent from the freeswitch-users mailing list archive at Nabble.com.
Similar configuration here, but all performed under a Fedora 13 x86 VM running on VirtualBox with the host running on Windows 7. Guest has 2GB of RAM allocated to it and no GUI installed at all. On Thu, Feb 17, 2011 at 4:05 AM, mazilo <Nabble@slickdeals.endjunk.com> wrote:
curriegrad2004 wrote:
How many modules are you compiling at once anyways? Almost all modules.
FS git never seem to take more than approx. 15-20 minutes when it's being compiled on my AMD Athlon II Dual Core machine. May I ask how much RAM do you have on your box? 2GB RAM with no X11 windows running.
----- don't and stop are the ONLY two 4-letter words considered offensive to men, but not when used together. -- View this message in context: http://freeswitch-users.2379917.n2.nabble.com/Parallel-compilation-on-a-Linu... Sent from the freeswitch-users mailing list archive at Nabble.com.
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
curriegrad2004 wrote:
Similar configuration here, but all performed under a Fedora 13 x86 VM running on VirtualBox with the host running on Windows 7. Guest has 2GB of RAM allocated to it and no GUI installed at all. Interesting. You do a compilation through a VM running on a Win7 and it takes about 20minutes. Does the compilation use both CPU? Mine is a straight AMD64 PhenomII X3 running on an OpenSuSE v11.3 and it takes almost an hour long to compile. Perhaps, it has something to do with cross compilation.
----- FreeSWITCH hosted on a Seagate DockStar with OpenWRT. -- View this message in context: http://freeswitch-users.2379917.n2.nabble.com/Parallel-compilation-on-a-Linu... Sent from the freeswitch-users mailing list archive at Nabble.com.
Tony might have to chime in here... But does the turbo-build.sh script still work right? K On 2/17/11 11:45 AM, "mazilo" <Nabble@slickdeals.endjunk.com> wrote:
curriegrad2004 wrote:
Similar configuration here, but all performed under a Fedora 13 x86 VM running on VirtualBox with the host running on Windows 7. Guest has 2GB of RAM allocated to it and no GUI installed at all. Interesting. You do a compilation through a VM running on a Win7 and it takes about 20minutes. Does the compilation use both CPU? Mine is a straight AMD64 PhenomII X3 running on an OpenSuSE v11.3 and it takes almost an hour long to compile. Perhaps, it has something to do with cross compilation.
----- FreeSWITCH hosted on a Seagate DockStar with OpenWRT.
It's only configured to use one core, same result too when I used CentOS 5.5 x64 on the same machine. The host is running on x64 if anything helps. Maybe is it the fact that you forgot to disable cool n' quiet or CPU scaling in the BIOS? For me I'm pretty sure I flipped off CPU Scaling/cool n' quiet on my machine. On Thu, Feb 17, 2011 at 9:45 AM, mazilo <Nabble@slickdeals.endjunk.com> wrote:
curriegrad2004 wrote:
Similar configuration here, but all performed under a Fedora 13 x86 VM running on VirtualBox with the host running on Windows 7. Guest has 2GB of RAM allocated to it and no GUI installed at all. Interesting. You do a compilation through a VM running on a Win7 and it takes about 20minutes. Does the compilation use both CPU? Mine is a straight AMD64 PhenomII X3 running on an OpenSuSE v11.3 and it takes almost an hour long to compile. Perhaps, it has something to do with cross compilation.
----- FreeSWITCH hosted on a Seagate DockStar with OpenWRT. -- View this message in context: http://freeswitch-users.2379917.n2.nabble.com/Parallel-compilation-on-a-Linu... Sent from the freeswitch-users mailing list archive at Nabble.com.
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
curriegrad2004 wrote:
It's only configured to use one core, same result too when I used CentOS 5.5 x64 on the same machine. The host is running on x64 if anything helps. Maybe is it the fact that you forgot to disable cool n' quiet or CPU scaling in the BIOS? For me I'm pretty sure I flipped off CPU Scaling/cool n' quiet on my machine.
Good point. But, when I cross compile Linux kernel with -j switch, the compilation only takes a little less than two minutes. Without the -j switch, the compilation takes more than 10 minutes, IIRC. ----- FreeSWITCH hosted on a Seagate DockStar with OpenWRT. -- View this message in context: http://freeswitch-users.2379917.n2.nabble.com/Parallel-compilation-on-a-Linu... Sent from the freeswitch-users mailing list archive at Nabble.com.
participants (3)
-
curriegrad2004
-
Ken Rice
-
mazilo