Re: Alternatives to -j parallel
Ćukasz Tasz <[email protected]> Tue, 6 Sep 2016 10:42:22 +0200
| Newsgroups | gmane.comp.compilers.distcc |
|---|---|
| Message-ID | <CAGRr-NjCFw7cGvyDWgMc_pKuihzk3Yvpg6TLmqBUUgjnJGkO1g@mail.gmail.com> |
--===============7850367952649560119== Content-Type: multipart/alternative; boundary=001a114066644f571d053bd2c8da --001a114066644f571d053bd2c8da Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Could you please describe more what you would like to achieve? -j does net decide it compilation will be done with distcc or not, -j must take into consideration how many distcc agent you have. you have two dimensions, one is if distcc should be used, and second is about parallelism. first dimension is controlled in build system, second can be controlled by build system, a but also may be limited by distcc. localslots and localslots_cpp controls parallelism from distcc point of view. regards Lukasz =C5=81ukasz Tasz RTKW 2016-09-06 4:11 GMT+02:00 Richard Beare <[email protected]>: > Hi, > I'm having a few problems using distcc for a large project on the circleC= I > infrastructure, which has 4GB limits for the compilation hosts. > > Occasionally I see this limit being exceeded when 2 link jobs run on the > main server at the same time. This happens despite the --localslots=3D1 a= nd > localhost/1 settings in the distcc hosts file. > > I suspect the problem is that the large and complex cmake project that is > being built has its own link mechanism. So my question is whether there i= s > an alternative way to pass the parallel option to distcc besides make -jN= ? > This would allow the other compile steps that might not be under distcc > control to run serially on the local host. > > Thanks > > __ > distcc mailing list http://distcc.samba.org/ > To unsubscribe or change options: > https://lists.samba.org/mailman/listinfo/distcc > --001a114066644f571d053bd2c8da Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div><div><div><div><div><div>Could you please describe mo= re what you would like to achieve?<br></div>-j does net decide it compilati= on will be done with distcc or not, <br></div>-j must take into considerati= on how many distcc agent you have.<br><br></div>you have two dimensions, on= e is if distcc should be used, and second is about parallelism. <br></div><= div>first dimension is controlled in build system, second can be controlled= by build system, a but also may be limited by distcc. <br></div><div><br><= /div>localslots and localslots_cpp controls parallelism from distcc point o= f view.<br><br></div>regards<br></div>Lukasz<br></div><div class=3D"gmail_e= xtra"><br clear=3D"all"><div><div class=3D"gmail_signature" data-smartmail= =3D"gmail_signature"><div dir=3D"ltr"><div>=C5=81ukasz Tasz<br></div><div>R= TKW<br></div></div></div></div> <br><div class=3D"gmail_quote">2016-09-06 4:11 GMT+02:00 Richard Beare <spa= n dir=3D"ltr"><<a href=3D"mailto:[email protected]" target=3D"_bla= nk">[email protected]</a>></span>:<br><blockquote class=3D"gmail_q= uote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1e= x"><div dir=3D"ltr">Hi,<div>I'm having a few problems using distcc for = a large project on the circleCI infrastructure, which has 4GB limits for th= e compilation hosts.</div><div><br></div><div>Occasionally I see this limit= being exceeded when 2 link jobs run on the main server at the same time. T= his happens despite the --localslots=3D1 and localhost/1 settings in the di= stcc hosts file.</div><div><br></div><div>I suspect the problem is that the= large and complex cmake project that is being built has its own link mecha= nism. So my question is whether there is an alternative way to pass the par= allel option to distcc besides make -jN? This would allow the other compile= steps that might not be under distcc control to run serially on the local = host.</div><div><br></div><div>Thanks</div></div> <br>__<br> distcc mailing list=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 <a href=3D"htt= p://distcc.samba.org/" rel=3D"noreferrer" target=3D"_blank">http://distcc.s= amba.org/</a><br> To unsubscribe or change options:<br> <a href=3D"https://lists.samba.org/mailman/listinfo/distcc" rel=3D"noreferr= er" target=3D"_blank">https://lists.samba.org/<wbr>mailman/listinfo/distcc<= /a><br></blockquote></div><br></div> --001a114066644f571d053bd2c8da-- --===============7850367952649560119== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline __ distcc mailing list http://distcc.samba.org/ To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/distcc --===============7850367952649560119==--