Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 08 Nov 2007 00:36:34 +0000
From:      Chris Whitehouse <cwhiteh@onetel.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: compile ports and base using both cores
Message-ID:  <47325A12.5060803@onetel.com>
In-Reply-To: <472CB105.9020302@onetel.com>
References:  <472CB105.9020302@onetel.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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






Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?47325A12.5060803>