Re: Distcc pump mode

yudhistir reddy <[email protected]> Thu, 13 Mar 2014 19:41:03 +0530
Newsgroups gmane.comp.compilers.distcc
Message-ID <CA+KcdApEpYER73Ndm2krfnxDP4o=pToco=iafnUwEyfaESeruQ@mail.gmail.com>
--===============4402633236132440408==
Content-Type: multipart/alternative; boundary=001a1137ef8e05b8eb04f47d8602

--001a1137ef8e05b8eb04f47d8602
Content-Type: text/plain; charset=ISO-8859-1

can you pls explain more on this

*cpp*: Enables distcc-pump mode for this host. Note: the build command must
be wrapped in the pump script in order to start the include server.

normal pump mode command i use :

pump mk kernel -j30 WITH_DISTCC=yes
or
eval `pump --startup`
mk kernel -j30 WITH_DISTCC=yes
pump --shutdown

Regards
Yudhistir



On Thu, Mar 13, 2014 at 6:59 PM, yudhistir reddy
<[email protected]>wrote:

> # May need to override this (eg. for logging)
> exec_cmd() {
>     exec "$@"
> }
>
> # This is my official name
> MYNAME=mk
>
> Mydir=`dirname $0`
>
> # for customization
> unset mk_cmd_hooks mk_setup_hooks mk_finish_hooks
>
> # override this for more complex requirements
> mk_target_machine() {
>     MACHINE=$1
>     export MACHINE
> }
>
> . $Mydir/sb-env.sh
>
> # for backwards compatability
> mk_cmd_hook() { :; }
> add_hooks mk_cmd_hooks mk_cmd_hook
>
> run_hooks mk_setup_hooks
> run_hooks mk_cmd_hooks
> run_hooks mk_cmd_hooks_lifo LIFO
> run_hooks mk_finish_hooks
>
> # we generally cannot afford to consume the command line
> # since virtually any option might be for $cmd
> # but we'll make an exception for these
> while :
> do
>     case "$1" in
>     --) shift; break;;          # stop trying to interpret anything
>     --doc) __doc;;              # does not return
>     --help) __help;;            # does not return
>     --machine) mk_target_machine $2; shift 2;;
>     *) break;;
>     esac
> done
>
> case $Myname in
> mk|mk-*|*make)
>         nice=${nice:-nice}
>         cmd=${cmd:-${REAL_MAKE:-/usr/bin/make}};;
> *)      cmd=${cmd:-$Myname.real};;
> esac
> # at last! do some work
> exec_cmd $nice $cmd "$@"
>
>
> On Thu, Mar 13, 2014 at 5:31 PM, Vanush <[email protected]> wrote:
>
>> On Thu, Mar 13, 2014 at 05:23:14PM +0530, yudhistir reddy wrote:
>> > Sorry for that , that was silly mistake by me .
>> >
>> > Here is the use case , i did :
>> >
>> > 1. eval `pump --startup`
>> > checked pump mode variables , i can see INCLUDE_SERVER_PORT set to
>> > /tmp/distcc-pump.LIlIcs/socket
>> >
>> >
>> > 2. started build
>> > mk kernel -j30 WITH_DISTCC=yes
>> > Build finished with pump mode  ( But actually it is turing back to
>> Normal
>> > mode ) .
>> > I see the warning messages in distcclog as like below
>>
>> can you show us your "mk" wrapper?
>>
>> Misha
>>
>>
>> --
>> Vanush "Misha" Paturyan
>> Senior Technical Officer
>> Room 1.37
>> Computer Science Department
>> NUI Maynooth
>>
>
>

--001a1137ef8e05b8eb04f47d8602
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div>can you pls explain more on this <br><br><b><span sty=
le=3D"font-size:12pt;font-family:&quot;Times New Roman&quot;,&quot;serif&qu=
ot;">cpp</span></b><span style=3D"font-size:12pt;font-family:&quot;Times Ne=
w Roman&quot;,&quot;serif&quot;">: Enables
distcc-pump mode for this host. Note: the build command must be wrapped in =
the pump
script in order to start the include server.<br><br></span></div><div><span=
 style=3D"font-size:12pt;font-family:&quot;Times New Roman&quot;,&quot;seri=
f&quot;">normal pump mode command i use :<br><br></span></div><div><span st=
yle=3D"font-size:12pt;font-family:&quot;Times New Roman&quot;,&quot;serif&q=
uot;">pump mk kernel -j30 WITH_DISTCC=3Dyes<br>
</span></div><div><span style=3D"font-size:12pt;font-family:&quot;Times New=
 Roman&quot;,&quot;serif&quot;">or<br></span></div><div><span style=3D"font=
-size:12pt;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;">eval =
`pump --startup`<br>
</span><span style=3D"font-size:12pt;font-family:&quot;Times New Roman&quot=
;,&quot;serif&quot;">mk kernel -j30 WITH_DISTCC=3Dyes</span></div><div><spa=
n style=3D"font-size:12pt;font-family:&quot;Times New Roman&quot;,&quot;ser=
if&quot;">pump --shutdown<br>
<br></span></div><div><span style=3D"font-size:12pt;font-family:&quot;Times=
 New Roman&quot;,&quot;serif&quot;"></span></div><div><span style=3D"font-s=
ize:12pt;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;">Regards=
<br>
</span></div><div><span style=3D"font-size:12pt;font-family:&quot;Times New=
 Roman&quot;,&quot;serif&quot;">Yudhistir<br></span></div><span style=3D"fo=
nt-size:12pt;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;"></s=
pan><br>
</div><div class=3D"gmail_extra"><br><br><div class=3D"gmail_quote">On Thu,=
 Mar 13, 2014 at 6:59 PM, yudhistir reddy <span dir=3D"ltr">&lt;<a href=3D"=
mailto:[email protected]" target=3D"_blank">[email protected]=
om</a>&gt;</span> wrote:<br>
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex"><div dir=3D"ltr"># May need to override this=
 (eg. for logging)<br>exec_cmd() {<br>=A0=A0=A0 exec &quot;$@&quot;<br>}<br=
><br># This is my official name<br>
MYNAME=3Dmk<br><br>Mydir=3D`dirname $0`<br><br># for customization<br>unset=
 mk_cmd_hooks mk_setup_hooks mk_finish_hooks<br>

<br># override this for more complex requirements<br>mk_target_machine() {<=
br>=A0=A0=A0 MACHINE=3D$1<br>=A0=A0=A0 export MACHINE<br>}<br><br>. $Mydir/=
sb-env.sh<br><br># for backwards compatability<br>mk_cmd_hook() { :; }<br>a=
dd_hooks mk_cmd_hooks mk_cmd_hook<br>


<br>run_hooks mk_setup_hooks<br>run_hooks mk_cmd_hooks<br>run_hooks mk_cmd_=
hooks_lifo LIFO<br>run_hooks mk_finish_hooks<br><br># we generally cannot a=
fford to consume the command line<br># since virtually any option might be =
for $cmd<br>


# but we&#39;ll make an exception for these<br>while :<br>do<br>=A0=A0=A0 c=
ase &quot;$1&quot; in<br>=A0=A0=A0 --) shift; break;;=A0=A0=A0=A0=A0=A0=A0=
=A0=A0 # stop trying to interpret anything<br>=A0=A0=A0 --doc) __doc;;=A0=
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 # does not return<br>=A0=A0=A0 --help)=
 __help;;=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 # does not return<br>


=A0=A0=A0 --machine) mk_target_machine $2; shift 2;;<br>=A0=A0=A0 *) break;=
;<br>=A0=A0=A0 esac<br>done<br><br>case $Myname in<br>mk|mk-*|*make)<br>=A0=
=A0=A0=A0=A0=A0=A0 nice=3D${nice:-nice}<br>=A0=A0=A0=A0=A0=A0=A0 cmd=3D${cm=
d:-${REAL_MAKE:-/usr/bin/make}};;<br>*)=A0=A0=A0=A0=A0 cmd=3D${cmd:-$Myname=
.real};;<br>


esac<br># at last! do some work<br>exec_cmd $nice $cmd &quot;$@&quot;<br></=
div><div class=3D"HOEnZb"><div class=3D"h5"><div class=3D"gmail_extra"><br>=
<br><div class=3D"gmail_quote">On Thu, Mar 13, 2014 at 5:31 PM, Vanush <spa=
n dir=3D"ltr">&lt;<a href=3D"mailto:[email protected]" target=3D"_blank">mis=
[email protected]</a>&gt;</span> wrote:<br>

<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex"><div>On Thu, Mar 13, 2014 at 05:23:14PM +053=
0, yudhistir reddy wrote:<br>
&gt; Sorry for that , that was silly mistake by me .<br>
&gt;<br>
&gt; Here is the use case , i did :<br>
&gt;<br>
&gt; 1. eval `pump --startup`<br>
&gt; checked pump mode variables , i can see INCLUDE_SERVER_PORT set to<br>
&gt; /tmp/distcc-pump.LIlIcs/socket<br>
&gt;<br>
&gt;<br>
&gt; 2. started build<br>
&gt; mk kernel -j30 WITH_DISTCC=3Dyes<br>
&gt; Build finished with pump mode =A0( But actually it is turing back to N=
ormal<br>
&gt; mode ) .<br>
&gt; I see the warning messages in distcclog as like below<br>
<br>
</div>can you show us your &quot;mk&quot; wrapper?<br>
<br>
Misha<br>
<div><div><br>
<br>
--<br>
Vanush &quot;Misha&quot; Paturyan<br>
Senior Technical Officer<br>
Room 1.37<br>
Computer Science Department<br>
NUI Maynooth<br>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>

--001a1137ef8e05b8eb04f47d8602--

--===============4402633236132440408==
Content-Type: text/plain; charset="us-ascii"
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
--===============4402633236132440408==--