comp.lang.ada
 help / color / mirror / Atom feed
From: Kevin K <kevink4@gmail.com>
Subject: Re: How many CPU cores?
Date: Fri, 13 Oct 2017 15:55:26 -0700 (PDT)
Date: 2017-10-13T15:55:26-07:00	[thread overview]
Message-ID: <78126f7b-09ce-4fc5-8bdf-5da1dfd31703@googlegroups.com> (raw)
In-Reply-To: <oqudb4$1e1b$1@gioia.aioe.org>

On Monday, October 2, 2017 at 5:07:36 PM UTC-5, Victor Porton wrote:
> "make" in GNAT GPS supports "Multiprocessing".
> 
> How much processes should I use with my 4 cores i7 processor?
> 
> There are two threads per code due hyperthreading. So should I use 4*2=8 
> "Multiprocessing" setting to compile quickly?
> 
> -- 
> Victor Porton - http://portonvictor.org

Assuming sufficient memory, you will probably hit limits on disk access before cpu limits.  So 8 is probably safe.  If not enough disk throughput available, there will still be unused CPU cycles, and adding more threads probably 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/modify/build cycle, there probably won't be much advantage except when changing specs.

  reply	other threads:[~2017-10-13 22:55 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-10-02 22:07 How many CPU cores? Victor Porton
2017-10-13 22:55 ` Kevin K [this message]
2017-10-14  5:29 ` Per Sandberg
2017-10-14 20:55 ` Tarjei Jensen
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox