From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 0628915802C for ; Tue, 17 Dec 2024 10:46:46 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 86FE1E08CE; Tue, 17 Dec 2024 10:46:40 +0000 (UTC) Received: from mail-pj1-x1035.google.com (mail-pj1-x1035.google.com [IPv6:2607:f8b0:4864:20::1035]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 698E9E08B0 for ; Tue, 17 Dec 2024 10:46:39 +0000 (UTC) Received: by mail-pj1-x1035.google.com with SMTP id 98e67ed59e1d1-2ee8aa26415so4610635a91.1 for ; Tue, 17 Dec 2024 02:46:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1734432398; x=1735037198; darn=lists.gentoo.org; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=xIcscxoy50d/FzSob4ogx0HJ6Xuujaj6hvCGk5vJKec=; b=Pym+TQ7Bt4ewxXhBnshNGc/8QBWxcSOgfhTQwRiCY4oM1pDlk5b7PGk45XmymLONtI CTIKLernpjtYZdu1qXfaTw951d/ISTkk15ZKf/Vzc+5VAZkPn32sLvpHJA0TmC86ESMH VppAwUT60jDN19YIoygIfdAGPERFivXAVK1EH2Pc6Nbfklh4xPoEU86ZSfQmBzFwOA4T F5y2tbgGiwF3CkYrEszDkr1tQV6lG4lTfw0LwD9smzdtuXTR4fq33l4fRh7QLX3Emxn9 va+PJmRWb89prZ3YD6OhRCbSlcH7T3eV6r/izgVmVt9/sSTZokT+7ufn2NpmaLGrzilf 2VxQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734432398; x=1735037198; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=xIcscxoy50d/FzSob4ogx0HJ6Xuujaj6hvCGk5vJKec=; b=r87uksQcgYISQ8sZ2N4F8BblbSD3r+duqMxMKXF4YSmI4LsdHSI/A9wX3o6FMmk9i6 b1U1ga+IBo9pzSy58SR5TVnryBWW6doWfGdmVh3s5DK8e+OFa6Dv7AxOU/p437+LsoU4 oFIK5ssDX2IGV9fbqDhkLf0EQ8Vz/aJdh012JEU9zTWgLf+n99mq1DKR5jpLw4OUuwQx WRfNlPPHCmCRGtPvygxtBQ+JGvoA2WNm3mx4GvYoVBPr1v8J+fcku1CwAmOP+P+PLPUo 0QsLOwfZCcbKia9EoOPMjXefnarg9+YujIKlu1qJgeWj+g/ZotZznygyYqOxPmvQ5wNH mJGA== X-Gm-Message-State: AOJu0Ywmi/+lFzBG6DGqj9Qz6kfk81j5Krq6iKT87a8ARiEACinHYCr+ UimFNtfuZCbTl2/x3rJ3ANwwvFy+5CrMRC1H4c09CIA6Lb7czpgCbxA96ShJCoUy2jcpDXNQ/+Z Bs+agrpJ3tlaZE0NzPS2vGBOfhjx+pCcf X-Gm-Gg: ASbGncteo/uTjVIDvctO2CYsjGg8SNTO4Wjv3c8EMbaOIhi05dA8jKt3RT2FK+/xbq/ LT5q0JW1vUnIK/tZBiyC0aQS2VilrnxdNqxPADQ== X-Google-Smtp-Source: AGHT+IFzof9zSyihZsRWe/N5elWRCd8ejip0JCZKdanZxg7gJ47Hoz7agC6X55XM0fHSzrEyfOC5j7Ck83c/ZEPuEJM= X-Received: by 2002:a17:90b:5105:b0:2ee:cd83:8fe6 with SMTP id 98e67ed59e1d1-2f2901b80dcmr25219942a91.35.1734432398346; Tue, 17 Dec 2024 02:46:38 -0800 (PST) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 References: <20241217091825.39a0ef5c@coreI5.home> <20241217111640.321fc483@coreI5.home> In-Reply-To: <20241217111640.321fc483@coreI5.home> From: Jorge Almeida Date: Tue, 17 Dec 2024 10:46:29 +0000 Message-ID: Subject: Re: [gentoo-user] distccd offspring To: gentoo-user@lists.gentoo.org Content-Type: multipart/alternative; boundary="000000000000fd924106297502cb" X-Archives-Salt: cfb610e3-515f-4aea-b6cf-288f48e8167f X-Archives-Hash: 6cf8af70c6fbca983460a11ad4c07cdf --000000000000fd924106297502cb Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, 17 Dec 2024 at 10:17, netfab wrote: > Le 17/12/24 =C3=A0 11:02, Jorge Almeida a tapot=C3=A9 : > > On Tue, 17 Dec 2024 at 08:18, netfab wrote: > > > > > Le 16/12/24 =C3=A0 18:11, Jorge Almeida a tapot=C3=A9 : > > > > Any distcc user in the same boat? > > > > > > Yes. How many CPU cores do you have ? > > > > > > > 8 + 6 > > > Here is my assumption : in man distccd we can read : > > -j, --jobs JOBS > > Sets a limit on the number of jobs that can be accepted > > at any time. By default this is set to *two greater than > > the number of CPUs on the machine*, to allow for some processes > > being blocked on network IO. (Daemon mode only.) > > I think that the distccd daemon spawns one thread for each potential > accepted job. In your case, 8+6+2 =3D 16 > > In my case, I have 4 cores, and 6 distccd waiting threads. > > Do you have 16 threads below the main distccd process ? > Actually, I have 18 children of the main distccd process. But this seems to be consistent with the part of the manual you cited: 2*8 + 2 (the "8+6" I mentioned before was the number of cores of both client and server, to go into MAKEOPTS---as per the Wiki, I think) This explains the number of children. Why they exist while being idle is a matter of upstream decision, and I'll live with it. thanks Jorge Almeida --000000000000fd924106297502cb Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


On Tue, 17 Dec = 2024 at 10:17, netfab <netbox253@ne= tc.eu> wrote:
Le 17/12/24 =C3=A0 11:02, Jorge Almeida a tapot=C3=A9 :
> On Tue, 17 Dec 2024 at 08:18, netfab <netbox253@netc.eu> wrote:
>
> > Le 16/12/24 =C3=A0 18:11, Jorge Almeida a tapot=C3=A9 :
> > > Any distcc user in the same boat?
> >
> > Yes. How many CPU cores do you have ?
> >
>
> 8 + 6


Here is my assumption : in man distccd we can read :
> -j, --jobs JOBS
>=C2=A0 =C2=A0Sets=C2=A0 a=C2=A0 limit on the number of jobs that can be= accepted
>=C2=A0 =C2=A0at any time.=C2=A0 By default this is set to *two greater = than
>=C2=A0 =C2=A0the number of CPUs on the machine*, to allow for some proc= esses
>=C2=A0 =C2=A0being blocked on network IO.=C2=A0 (Daemon mode only.)

I think that the distccd daemon spawns one thread for each potential
accepted job. In your case, 8+6+2 =3D 16

In my case, I have 4 cores, and 6 distccd waiting threads.

Do you have 16 threads below the main distccd process ?

Actually, I have 18 children of the main=C2=A0=C2=A0distcc= d process. But this seems to be consistent with the part of the manual you = cited: 2*8=C2=A0+ 2 (the "8+6" I mentioned before was the number = of cores of both client and server, to go into MAKEOPTS---as per the Wiki, = I think)

This explains the number of children. Why= they exist while being idle is a matter of upstream decision, and I'll= live with it.

thanks

Jor= ge Almeida
--000000000000fd924106297502cb--