public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Jorge Almeida <jjalmeida@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] distccd offspring
Date: Tue, 17 Dec 2024 10:46:29 +0000	[thread overview]
Message-ID: <CAKpSnp+KsFDuNXMZJBatjfMcp8X0VSaq_4ihAOQTHT==-umhaQ@mail.gmail.com> (raw)
In-Reply-To: <20241217111640.321fc483@coreI5.home>

[-- Attachment #1: Type: text/plain, Size: 1384 bytes --]

On Tue, 17 Dec 2024 at 10:17, netfab <netbox253@netc.eu> wrote:

> Le 17/12/24 à 11:02, Jorge Almeida a tapoté :
> > On Tue, 17 Dec 2024 at 08:18, netfab <netbox253@netc.eu> wrote:
> >
> > > Le 16/12/24 à 18:11, Jorge Almeida a tapoté :
> > > > 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 = 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

[-- Attachment #2: Type: text/html, Size: 1994 bytes --]

  reply	other threads:[~2024-12-17 10:46 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-12-16 17:11 [gentoo-user] distccd offspring Jorge Almeida
2024-12-17  8:18 ` netfab
2024-12-17 10:02   ` Jorge Almeida
2024-12-17 10:16     ` netfab
2024-12-17 10:46       ` Jorge Almeida [this message]
2024-12-17  8:26 ` William Kenworthy
2024-12-17  8:34   ` Alexandru N. Barloiu
2024-12-17 10:08     ` Jorge Almeida

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAKpSnp+KsFDuNXMZJBatjfMcp8X0VSaq_4ihAOQTHT==-umhaQ@mail.gmail.com' \
    --to=jjalmeida@gmail.com \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox