From owner-freebsd-questions@FreeBSD.ORG Thu Nov 8 00:36:49 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 47A2616A418 for ; Thu, 8 Nov 2007 00:36:49 +0000 (UTC) (envelope-from cwhiteh@onetel.com) Received: from smtp1.bethere.co.uk (smtp1.betherenow.co.uk [87.194.0.68]) by mx1.freebsd.org (Postfix) with ESMTP id DA22413C4BA for ; Thu, 8 Nov 2007 00:36:48 +0000 (UTC) (envelope-from cwhiteh@onetel.com) Received: from amd64r7.config (87-194-3-32.bethere.co.uk [87.194.3.32]) by smtp1.bethere.co.uk (Postfix) with SMTP id DC31898051 for ; Thu, 8 Nov 2007 00:36:34 +0000 (GMT) Message-ID: <47325A12.5060803@onetel.com> Date: Thu, 08 Nov 2007 00:36:34 +0000 From: Chris Whitehouse User-Agent: Thunderbird 2.0.0.6 (X11/20071106) MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <472CB105.9020302@onetel.com> In-Reply-To: <472CB105.9020302@onetel.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: compile ports and base using both cores 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: Thu, 08 Nov 2007 00:36:49 -0000 Chris Whitehouse wrote: > Hi, > > Installing ports or upgrading the base system only uses around 50% cpu > utilization (measured with the top utility) on my dual core machine. Is > there some way I can get higher cpu usage? > > /usr/src/UPDATING says don't use make -j. I tried installing > openoffice.org-2 with make -j 2 but it failed at some stage saying it > couldn't find a directory. It works not using -j. > > I'm using 7.0-BETA1.5 i386 on an AMD 64 system. > > Thanks > > Chris > Hi again, I was wondering if anyone could give me some ideas about this. Btw I confess the subject line is not quite right, I think both cores are being used but cpu is only around 50% - or it is being measured so that it looks like 50% but is really more. If I make buildworld and compile a port at the same time then cpu usage really does go up to 100% While building world, repeatedly doing top -d 1 | grep -e make -e cc; echo # to make a blank line between outputs: 18067 root 1 8 0 4960K 3792K wait 1 0:00 5.64% make 18100 root 1 97 0 14628K 12780K CPU1 0 0:00 0.00% cc1 1318 root 1 8 0 1888K 816K wait 0 0:00 0.00% make 18067 root 1 8 0 4960K 3792K wait 1 0:00 5.64% make 18100 root 1 100 0 21820K 20172K CPU1 0 0:00 0.00% cc1 1318 root 1 8 0 1888K 816K wait 0 0:00 0.00% make 18067 root 1 8 0 4960K 3792K wait 1 0:00 5.13% make 18100 root 1 100 0 24916K 23220K CPU1 0 0:01 0.00% cc1 1318 root 1 8 0 1888K 816K wait 0 0:00 0.00% make 18100 root 1 103 0 26972K 24880K CPU1 0 0:01 82.00% cc1 18067 root 1 8 0 4960K 3792K wait 1 0:00 3.50% make 1318 root 1 8 0 1888K 816K wait 0 0:00 0.00% make 18100 root 1 107 0 29036K 26944K CPU1 0 0:02 82.00% cc1 18067 root 1 8 0 4960K 3792K wait 1 0:00 3.50% make 1318 root 1 8 0 1888K 816K wait 0 0:00 0.00% make 18100 root 1 105 0 32156K 29996K CPU1 0 0:02 177.00% cc1 18067 root 1 8 0 4960K 3792K wait 1 0:00 2.42% make 1318 root 1 8 0 1888K 816K wait 0 0:00 0.00% make 18067 root 1 8 0 4960K 3816K wait 0 0:00 2.42% make 18116 root 1 98 0 20796K 19084K CPU1 0 0:00 0.00% cc1 1318 root 1 8 0 1888K 816K wait 0 0:00 0.00% make 18067 root 1 8 0 4960K 3816K wait 0 0:00 2.42% make 18116 root 1 101 0 22852K 21388K CPU1 0 0:01 0.00% cc1 1318 root 1 8 0 1888K 816K wait 0 0:00 0.00% make 18116 root 1 102 0 25924K 24224K CPU0 1 0:01 80.00% cc1 18067 root 1 8 0 4960K 3816K wait 0 0:00 1.76% make 1318 root 1 8 0 1888K 816K wait 0 0:00 0.00% make 18116 root 1 105 0 29028K 27096K CPU1 1 0:01 80.00% cc1 18067 root 1 8 0 4960K 3816K wait 0 0:00 1.76% make 1318 root 1 8 0 1888K 816K wait 0 0:00 0.00% make 18116 root 1 108 0 31076K 29740K CPU1 0 0:02 80.00% cc1 18067 root 1 8 0 4960K 3816K wait 0 0:00 1.76% make 1318 root 1 8 0 1888K 816K wait 0 0:00 0.00% make 18116 root 1 107 0 34172K 33204K CPU0 1 0:02 91.74% cc1 18067 root 1 8 0 4960K 3816K wait 0 0:00 1.32% make 1318 root 1 8 0 1888K 816K wait 0 0:00 0.00% make 18116 root 1 110 0 37308K 36064K CPU1 0 0:02 91.74% cc1 18067 root 1 8 0 4960K 3816K wait 0 0:00 1.32% make 1318 root 1 8 0 1888K 816K wait 0 0:00 0.00% make 18067 root 1 8 0 4960K 3832K wait 0 0:00 0.99% make 18134 root 1 96 0 14644K 12904K CPU0 1 0:00 0.00% cc1 1318 root 1 8 0 1888K 816K wait 0 0:00 0.00% make 18067 root 1 8 0 4960K 3832K wait 0 0:00 0.99% make 18134 root 1 99 0 19772K 18476K CPU1 1 0:00 0.00% cc1 1318 root 1 8 0 1888K 816K wait 0 0:00 0.00% make 18067 root 1 8 0 4960K 3852K wait 1 0:00 0.99% make 1318 root 1 8 0 1888K 816K wait 0 0:00 0.00% make 14892 root 1 8 0 1888K 832K wait 0 0:00 0.00% make 18067 root 1 8 0 4960K 3852K wait 1 0:00 0.74% make 18142 root 1 98 0 18740K 16796K CPU1 1 0:00 0.00% cc1 1318 root 1 8 0 1888K 816K wait 0 0:00 0.00% make 18067 root 1 8 0 4960K 3852K wait 1 0:00 0.74% make 18142 root 1 101 0 20796K 19624K CPU1 1 0:01 0.00% cc1 1318 root 1 8 0 1888K 816K wait 0 0:00 0.00% make thanks Chris