From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.107.59.5 with SMTP id i5mr2144908ioa.31.1507935326503; Fri, 13 Oct 2017 15:55:26 -0700 (PDT) X-Received: by 10.157.85.5 with SMTP id l5mr89078oth.7.1507935326450; Fri, 13 Oct 2017 15:55:26 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!feeder.eternal-september.org!news.linkpendium.com!news.linkpendium.com!news.snarked.org!border2.nntp.dca1.giganews.com!nntp.giganews.com!l196no826542itl.0!news-out.google.com!u132ni1010ita.0!nntp.google.com!k70no822812itk.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Fri, 13 Oct 2017 15:55:26 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=24.139.61.217; posting-account=MIlOpQoAAAA_yqYBfgVMozuUm9-qt1C5 NNTP-Posting-Host: 24.139.61.217 References: User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <78126f7b-09ce-4fc5-8bdf-5da1dfd31703@googlegroups.com> Subject: Re: How many CPU cores? From: Kevin K Injection-Date: Fri, 13 Oct 2017 22:55:26 +0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Xref: news.eternal-september.org comp.lang.ada:48442 Date: 2017-10-13T15:55:26-07:00 List-Id: On Monday, October 2, 2017 at 5:07:36 PM UTC-5, Victor Porton wrote: > "make" in GNAT GPS supports "Multiprocessing". >=20 > How much processes should I use with my 4 cores i7 processor? >=20 > There are two threads per code due hyperthreading. So should I use 4*2=3D= 8=20 > "Multiprocessing" setting to compile quickly? >=20 > --=20 > Victor Porton - http://portonvictor.org Assuming sufficient memory, you will probably hit limits on disk access bef= ore cpu limits. So 8 is probably safe. If not enough disk throughput avai= lable, there will still be unused CPU cycles, and adding more threads proba= bly won't help. It depends too on how large of system you are compiling. = Individual packages are single threaded compiles, so more cores help only = if there are more packages that need to be compiled. And if in a test/modi= fy/build cycle, there probably won't be much advantage except when changing= specs.