From owner-freebsd-questions@FreeBSD.ORG Wed Feb 7 21:49:37 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 8872116A406 for ; Wed, 7 Feb 2007 21:49:37 +0000 (UTC) (envelope-from kris@obsecurity.org) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.freebsd.org (Postfix) with ESMTP id 7435D13C474 for ; Wed, 7 Feb 2007 21:49:37 +0000 (UTC) (envelope-from kris@obsecurity.org) Received: from obsecurity.dyndns.org (elvis.mu.org [192.203.228.196]) by elvis.mu.org (Postfix) with ESMTP id 5A2EE1A3C19; Wed, 7 Feb 2007 13:49:37 -0800 (PST) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id C2610516C4; Wed, 7 Feb 2007 16:49:36 -0500 (EST) Date: Wed, 7 Feb 2007 16:49:36 -0500 From: Kris Kennaway To: Bill Moran Message-ID: <20070207214936.GA89892@xor.obsecurity.org> References: <80859145824777@lycos-europe.com> <20070207164442.219b54c1.wmoran@collaborativefusion.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="EeQfGwPcQSOJBaQU" Content-Disposition: inline In-Reply-To: <20070207164442.219b54c1.wmoran@collaborativefusion.com> User-Agent: Mutt/1.4.2.2i Cc: freebsd-questions@freebsd.org, Daniel Tourde Subject: Re: Intel Core Duo. SMP kernel but still only 50% load while using make on ports... X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Feb 2007 21:49:37 -0000 --EeQfGwPcQSOJBaQU Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Feb 07, 2007 at 04:44:42PM -0500, Bill Moran wrote: > In response to "Daniel Tourde" : > >=20 > > Hello, > > I have at my disposal an Inspiron 9400 with an Intel Core FreeBSD= 6.2 > > is installed and rebuilt to fit the processor. The kerne l is in SMP = mode. > > I noticed something strange: When I compile using ma in the ports > > tree, I only have 50% load. CPU1 is used at CPU0 is idle... >=20 > How do you know this? >=20 > > I tried make -j2 but it did not work, Any idea? >=20 > -j2 does not guarantee that you'll use both CPUs. It's entirely possible > that the IO is slow enough that both of the processes are waiting on disk > and only able to push the overall system usage to 50%. Try make -j99. make -j in the ports tree is not going to compile the source in parallel, it is going to try and run the port targets in parallel (but they cannot be parallelized so nothing special will happen). In theory it might work on some ports to pass in MAKE_ARGS=3D-j2, but a huge number of ports cannot be safely be compiled in parallel (i.e. the build will fail) because their developers have not added support for this. Kris --EeQfGwPcQSOJBaQU Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (FreeBSD) iD8DBQFFyklwWry0BWjoQKURArI9AKC/QpqJaVnVuADfsvrei/3RY32AAgCg/b85 G+DtsIr88mM24FEnCO9pIPQ= =TFWS -----END PGP SIGNATURE----- --EeQfGwPcQSOJBaQU--