From owner-freebsd-performance@FreeBSD.ORG Tue Oct 14 06:22:04 2014 Return-Path: Delivered-To: freebsd-performance@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id ABBD0BD6 for ; Tue, 14 Oct 2014 06:22:04 +0000 (UTC) Received: from jc-bell.com (jc-bell.com [199.233.228.118]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 839E7CAD for ; Tue, 14 Oct 2014 06:22:04 +0000 (UTC) Received: from [10.0.0.6] (c-71-201-200-75.hsd1.il.comcast.net [71.201.200.75]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: jim@jc-bell.com) by jc-bell.com (Postfix) with ESMTPSA id 9E6CEEDECB for ; Tue, 14 Oct 2014 01:12:27 -0500 (CDT) Message-ID: <543CBEB5.3020105@JC-Bell.com> Date: Tue, 14 Oct 2014 01:12:05 -0500 From: Jim Bell Organization: J. C. Bell & Associates, Inc. User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.1.2 MIME-Version: 1.0 To: freebsd-performance@freebsd.org Subject: ar performing abysmally Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 X-BeenThere: freebsd-performance@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Performance/tuning List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Oct 2014 06:22:04 -0000 Upgraded to FreeBSD-10/gcc48. One project puts a dozen object files in a static lib via ar, but now that takes a long time, and it's not CPU. “time ar -v -c -u -q ...” : 362.62 real 0.11 user 0.82 sys. “time ar -v -c -r -u -s ...”: 407.94 real 0.13 user 0.80 sys iostat's numbers don't look to impressive to me, but my ISP says they're normal. 'dd' writes to the disk plenty fast. I moved off the RAID-1 but it made no difference. I have 64G swap and it doesn't get touched. Truss shows it reading the input files and writing the output, but write times are all over the place. truss -D ... 0.000031869 write(3,...,10240) = 10240 (0x2800) 0.083054581 write(3,...,10240) = 10240 (0x2800) 0.000029723 write(3,...,10240) = 10240 (0x2800) 0.841429575 write(3,...,10240) = 10240 (0x2800) <-- seems pretty slow! 0.000015954 write(3,...,10240) = 10240 (0x2800) 0.000022723 write(3,...,10240) = 10240 (0x2800) Truss shows 800 write's that take over 0.7 sec, similar to the above. Where's my problem? What to try next? Is it even the disk? Thanks in Advance, -Jim