Re: get-gauche.sh shouldn't use make -j without options
Shiro Kawai <[email protected]> Tue, 5 May 2026 19:02:48 -1000
| Newsgroups | gmane.lisp.scheme.gauche |
|---|---|
| Message-ID | <CALN0JNGxAR=JGWznBm3G5_E9tK1drF=F2EPrXq1z7s_ho6MDkg@mail.gmail.com> |
--===============2891207797978687741== Content-Type: multipart/alternative; boundary="000000000000f3871c06511f13e3" --000000000000f3871c06511f13e3 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Is nproc enough to prevent disruption? (I mean, should it be less than nproc to keep a few cores for other processes? I'm usually not bothered by this so I don't know.) On Mon, May 4, 2026 at 10:45=E2=80=AFPM Jens Thiele <[email protected]> wrote: > Hi, > > at least gnu make doesn't limit the parallelism if one uses -j without > options. =3D> you get very high system load building gauche and the music > sometimes stops playing ;-) > > Something like this helps here, but I didn't look into portability. > > diff --git a/get-gauche.sh b/get-gauche.sh > index f46e5c9..445635e 100755 > --- a/get-gauche.sh > +++ b/get-gauche.sh > @@ -418,7 +418,7 @@ function do_install { > ./configure "--prefix=3D$prefix" $configure_args > MAKE=3Dmake > if hash gmake 2>/dev/null; then MAKE=3Dgmake; fi > - $MAKE -j > + $MAKE -j $(nproc) > if [ "$skip_tests" !=3D yes ]; then > $MAKE -s check > fi > > > > _______________________________________________ > Gauche-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/gauche-devel > --000000000000f3871c06511f13e3 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div class=3D"gmail_default" style=3D"font-size:large">Is = nproc enough=C2=A0to prevent disruption?=C2=A0 (I mean, should it be less t= han nproc to keep a few cores for other processes?=C2=A0 I'm usually no= t bothered by this so I don't know.)</div><div class=3D"gmail_default" = style=3D"font-size:large"><br></div><div class=3D"gmail_default" style=3D"f= ont-size:large"><br></div></div><br><div class=3D"gmail_quote gmail_quote_c= ontainer"><div dir=3D"ltr" class=3D"gmail_attr">On Mon, May 4, 2026 at 10:4= 5=E2=80=AFPM Jens Thiele <<a href=3D"mailto:[email protected]">karme@karme.= de</a>> wrote:<br></div><blockquote class=3D"gmail_quote" style=3D"margi= n:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex= ">Hi,<br> <br> at least gnu make doesn't limit the parallelism if one uses -j without<= br> options. =3D> you get very high system load building gauche and the musi= c<br> sometimes stops playing ;-)<br> <br> Something like this helps here, but I didn't look into portability.<br> <br> diff --git a/get-gauche.sh b/get-gauche.sh<br> index f46e5c9..445635e 100755<br> --- a/get-gauche.sh<br> +++ b/get-gauche.sh<br> @@ -418,7 +418,7 @@ function do_install {<br> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0./configure "--prefix= =3D$prefix" $configure_args<br> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0MAKE=3Dmake<br> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0if hash gmake 2>/dev/nul= l; then MAKE=3Dgmake; fi<br> -=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 $MAKE -j<br> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 $MAKE -j $(nproc)<br> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0if [ "$skip_tests"= ; !=3D yes ]; then<br> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 $MAKE -s check<br> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0fi<br> <br> <br> <br> _______________________________________________<br> Gauche-devel mailing list<br> <a href=3D"mailto:[email protected]" target=3D"_blank">Gau= [email protected]</a><br> <a href=3D"https://lists.sourceforge.net/lists/listinfo/gauche-devel" rel= =3D"noreferrer" target=3D"_blank">https://lists.sourceforge.net/lists/listi= nfo/gauche-devel</a><br> </blockquote></div> --000000000000f3871c06511f13e3-- --===============2891207797978687741== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline --===============2891207797978687741== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Gauche-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/gauche-devel --===============2891207797978687741==--